diff options
author | Roshan Pius <rpius@google.com> | 2019-10-25 12:35:58 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2019-10-26 14:47:18 -0700 |
commit | bda99994b4efd25d0b59af53ee10cceedc2b061c (patch) | |
tree | e929b2a5e5cce404a8352197e875398f5e2ca7b8 /tests | |
parent | c8305dfa608b0e03e20a780dac0ff85945ef72b7 (diff) |
ActiveModeWarden: Remove redundant SoftApCallback
Bug: 139157226
Test: atest com.android.server.wifi
Change-Id: I3b31a5e2b1b054c6931e1c00d1f0a7a49e3fb201
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/ActiveModeWardenTest.java | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/ActiveModeWardenTest.java b/tests/wifitests/src/com/android/server/wifi/ActiveModeWardenTest.java index 8510807a8..f332ce272 100644 --- a/tests/wifitests/src/com/android/server/wifi/ActiveModeWardenTest.java +++ b/tests/wifitests/src/com/android/server/wifi/ActiveModeWardenTest.java @@ -644,23 +644,6 @@ public class ActiveModeWardenTest extends WifiBaseTest { } /** - * Verifies that triggering a state change update will not crash if the callback to - * WifiServiceImpl is null. - */ - @Test - public void testNullCallbackToWifiServiceImplForStateChange() throws Exception { - //set the callback to null - mActiveModeWarden.registerSoftApCallback(null); - - enterSoftApActiveMode(); - - mSoftApManagerCallback.onStateChanged(WifiManager.WIFI_AP_STATE_DISABLING, 0); - mLooper.dispatchAll(); - - verify(mSoftApStateMachineCallback, never()).onStateChanged(anyInt(), anyInt()); - } - - /** * Verifies that NumClientsChanged event is being passed from SoftApManager to WifiServiceImpl */ @Test @@ -674,23 +657,6 @@ public class ActiveModeWardenTest extends WifiBaseTest { } /** - * Verifies that triggering a number of clients changed update will not crash if the callback to - * WifiServiceImpl is null. - */ - @Test - public void testNullCallbackToWifiServiceImplForConnectedClientsChanged() throws Exception { - final List<WifiClient> testClients = new ArrayList(); - - //set the callback to null - mActiveModeWarden.registerSoftApCallback(null); - - enterSoftApActiveMode(); - mSoftApManagerCallback.onConnectedClientsChanged(testClients); - - verify(mSoftApStateMachineCallback, never()).onConnectedClientsChanged(any()); - } - - /** * Test that we remain in the active state when we get a state change update that scan mode is * active. */ |