summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiControllerTest.java8
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();
}
/**