diff options
author | Roshan Pius <rpius@google.com> | 2018-06-29 14:15:39 -0700 |
---|---|---|
committer | Michael Plass <mplass@google.com> | 2018-07-02 13:42:49 -0700 |
commit | ec11640ccf9b3163cb5792bdb4756789326fe595 (patch) | |
tree | 9d2af39810fade569c9cf4106f6aae57dd388420 /tests | |
parent | 48a84dc779539d4b79fd1e13409eee5b5881de5d (diff) |
WifiController - turn off hotspot in ECM
Bug: 110918088
Test: unit tests
Test: manually verify hotspot is taken down when in ECM
Change-Id: I00830e179c38cefc43c2888de5f2d7b5e871fe60
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiControllerTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiControllerTest.java b/tests/wifitests/src/com/android/server/wifi/WifiControllerTest.java index b1db3aab3..dd273ed73 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiControllerTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiControllerTest.java @@ -311,6 +311,7 @@ public class WifiControllerTest { mLooper.dispatchAll(); verify(mActiveModeWarden, never()).shutdownWifi(); + verify(mActiveModeWarden).stopSoftAPMode(); } /** @@ -363,7 +364,7 @@ public class WifiControllerTest { /** * When Ecm mode is disabled, we should not shut down scan mode if we get an emergency mode - * changed update + * changed update, but we should turn off soft AP */ @Test public void testEcmOffInScanMode() throws Exception { @@ -381,6 +382,7 @@ public class WifiControllerTest { mLooper.dispatchAll(); verify(mActiveModeWarden, never()).shutdownWifi(); + verify(mActiveModeWarden).stopSoftAPMode(); } /** @@ -432,7 +434,7 @@ public class WifiControllerTest { } /** - * When Ecm mode is disabled, we should not shut down softap mode if we get an emergency mode + * When Ecm mode is disabled, we should shut down softap mode if we get an emergency mode * changed update */ @Test @@ -448,7 +450,7 @@ public class WifiControllerTest { mWifiController.sendMessage(CMD_EMERGENCY_MODE_CHANGED, 1); mLooper.dispatchAll(); - verify(mActiveModeWarden, never()).shutdownWifi(); + verify(mActiveModeWarden).stopSoftAPMode(); } /** |