diff options
author | Rebecca Silberstein <silberst@google.com> | 2017-03-30 01:41:11 -0700 |
---|---|---|
committer | Rebecca Silberstein <silberst@google.com> | 2017-03-30 01:41:11 -0700 |
commit | 11528d03ae12c726ee7e918b3d521247bf8207b1 (patch) | |
tree | 145d696f312d0d8fae7d6f1bd50b114bde4d1cc7 /tests | |
parent | 32575fa7a506bf05edb20a37e59d42af981a0a13 (diff) |
WifiStateMachinePrimeTest: update any matcher
Passing a null WifiConfiguration to start softap mode is a valid option.
The tests need to be updated to reflect this since mockito was updated.
Bug: 36658081
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Ia1633375b57703edcad3d34954b636c475c8a8e6
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiStateMachinePrimeTest.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiStateMachinePrimeTest.java b/tests/wifitests/src/com/android/server/wifi/WifiStateMachinePrimeTest.java index 398be0cf0..49c7d18d6 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiStateMachinePrimeTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiStateMachinePrimeTest.java @@ -114,7 +114,7 @@ public class WifiStateMachinePrimeTest { }).when(mWifiInjector).makeSoftApManager(any(INetworkManagementService.class), any(SoftApManager.Listener.class), any(IApInterface.class), - any(WifiConfiguration.class)); + any()); mWifiStateMachinePrime.enterSoftAPMode(wifiConfig); mLooper.dispatchAll(); Log.e("WifiStateMachinePrimeTest", "check fromState: " + fromState); @@ -143,7 +143,6 @@ public class WifiStateMachinePrimeTest { * Test that WifiStateMachinePrime properly enters the SoftApModeActiveState from the * WifiDisabled state. */ - @DisabledForUpdateToAnyMatcher @Test public void testEnterSoftApModeFromDisabled() throws Exception { enterSoftApActiveMode(); @@ -154,7 +153,6 @@ public class WifiStateMachinePrimeTest { * Expectations: When going from one state to another, any interfaces that are still up are torn * down. */ - @DisabledForUpdateToAnyMatcher @Test public void testEnterSoftApModeFromDifferentState() throws Exception { when(mWifiInjector.makeWificond()).thenReturn(mWificond); @@ -167,7 +165,6 @@ public class WifiStateMachinePrimeTest { /** * Test that we can disable wifi fully from the SoftApModeActiveState. */ - @DisabledForUpdateToAnyMatcher @Test public void testDisableWifiFromSoftApModeActiveState() throws Exception { enterSoftApActiveMode(); @@ -201,7 +198,6 @@ public class WifiStateMachinePrimeTest { * Expectation: When switching out of SoftApModeActiveState we stop the SoftApManager and tear * down existing interfaces. */ - @DisabledForUpdateToAnyMatcher @Test public void testSwitchModeWhenSoftApActiveMode() throws Exception { enterSoftApActiveMode(); @@ -247,7 +243,6 @@ public class WifiStateMachinePrimeTest { * Expectations: We should exit the current SoftApModeState and re-enter before successfully * entering the SoftApModeActiveState. */ - @DisabledForUpdateToAnyMatcher @Test public void testEnterSoftApModeActiveWhenAlreadyInSoftApMode() throws Exception { when(mWifiInjector.makeWificond()).thenReturn(mWificond); @@ -264,7 +259,6 @@ public class WifiStateMachinePrimeTest { * SoftApModeActiveState. * Expectations: We should exit the SoftApModeActiveState and stop the SoftApManager. */ - @DisabledForUpdateToAnyMatcher @Test public void testSoftApFailureWhenActive() throws Exception { enterSoftApActiveMode(); @@ -280,7 +274,6 @@ public class WifiStateMachinePrimeTest { * SoftApModeActiveState. * Expectations: We should exit the SoftApModeActiveState and stop the SoftApManager. */ - @DisabledForUpdateToAnyMatcher @Test public void testSoftApDisabledWhenActive() throws Exception { enterSoftApActiveMode(); @@ -312,7 +305,6 @@ public class WifiStateMachinePrimeTest { * * Expectations: WifiInjector should be called with a null config. */ - @DisabledForUpdateToAnyMatcher @Test public void testNullConfigIsPassedToWifiInjector() throws Exception { enterSoftApActiveMode(null); |