diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-02-04 01:16:34 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-02-04 01:16:34 +0000 |
commit | 147adcf0d7bbedb95be8b6a49db628e2d7003d5c (patch) | |
tree | 0adc288eb117c71d22082f2bb7c542152734cd39 /tests | |
parent | 77eff3bb24cf5296972c94aabf5696b3b5da8678 (diff) | |
parent | b4419d876beda78c29836726e43d80203b4a656c (diff) |
Merge "WifiSupplicantHal: Rename to StaSupplicantIfaceHal"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/SupplicantStaIfaceHalTest.java (renamed from tests/wifitests/src/com/android/server/wifi/WifiSupplicantHalTest.java) | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiSupplicantHalTest.java b/tests/wifitests/src/com/android/server/wifi/SupplicantStaIfaceHalTest.java index e360c18a4..6645a8d5e 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiSupplicantHalTest.java +++ b/tests/wifitests/src/com/android/server/wifi/SupplicantStaIfaceHalTest.java @@ -49,11 +49,11 @@ import org.mockito.MockitoAnnotations; import java.util.ArrayList; /** - * Unit tests for WifiSupplicantHal + * Unit tests for SupplicantStaIfaceHal */ -public class WifiSupplicantHalTest { - private static final String TAG = "WifiSupplicantHalTest"; - private WifiSupplicantHal mDut; +public class SupplicantStaIfaceHalTest { + private static final String TAG = "SupplicantStaIfaceHalTest"; + private SupplicantStaIfaceHal mDut; @Mock IServiceManager mServiceManagerMock; @Mock ISupplicant mISupplicantMock; @Mock ISupplicantIface mISupplicantIfaceMock; @@ -72,8 +72,8 @@ public class WifiSupplicantHalTest { private TestLooper mTestLooper; private InOrder mInOrder; - private class WifiSupplicantHalSpy extends WifiSupplicantHal { - WifiSupplicantHalSpy(HandlerThread handlerThread) { + private class SupplicantStaIfaceHalSpy extends SupplicantStaIfaceHal { + SupplicantStaIfaceHalSpy(HandlerThread handlerThread) { super(handlerThread); } @Override @@ -109,11 +109,11 @@ public class WifiSupplicantHalTest { when(mServiceManagerMock.registerForNotifications(anyString(), anyString(), any(IServiceNotification.Stub.class))).thenReturn(true); when(mHandlerThread.getLooper()).thenReturn(mTestLooper.getLooper()); - mDut = new WifiSupplicantHalSpy(mHandlerThread); + mDut = new SupplicantStaIfaceHalSpy(mHandlerThread); } /** - * Sunny day scenario for WifiSupplicantHal initialization + * Sunny day scenario for SupplicantStaIfaceHal initialization * Asserts successful initialization */ @Test @@ -176,7 +176,7 @@ public class WifiSupplicantHalTest { } mInOrder = inOrder(mServiceManagerMock, mISupplicantMock); - // Initialize WifiSupplicantHal, should call serviceManager.registerForNotifications + // Initialize SupplicantStaIfaceHal, should call serviceManager.registerForNotifications assertTrue(mDut.initialize()); // verify: service manager initialization sequence mInOrder.verify(mServiceManagerMock).linkToDeath(any(IHwBinder.DeathRecipient.class), |