diff options
author | Rebecca Silberstein <silberst@google.com> | 2017-01-13 17:07:52 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-01-13 17:07:53 +0000 |
commit | aba0ba2f764a87e0ac7708bdb13f1e1e51fd0ace (patch) | |
tree | ead6503fd5803db7e5ac3a3009db124d4b949054 /tests | |
parent | f91694ff0b589d5b9fbe55b5da1b80642990321a (diff) | |
parent | f826a412709e7e30bd993440fa8174596cc384e7 (diff) |
Merge "WifiStateMachine: remove service dependence"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java b/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java index 349f26983..5fb6513f4 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiStateMachineTest.java @@ -837,7 +837,7 @@ public class WifiStateMachineTest { @Test public void normalLogRecSizeIsUsedByDefault() { for (int i = 0; i < WifiStateMachine.NUM_LOG_RECS_NORMAL * 2; i++) { - mWsm.sendMessage(WifiStateMachine.CMD_BOOT_COMPLETED); + mWsm.sendMessage(WifiStateMachine.CMD_DISCONNECT); } mLooper.dispatchAll(); assertEquals(WifiStateMachine.NUM_LOG_RECS_NORMAL, mWsm.getLogRecSize()); @@ -851,7 +851,7 @@ public class WifiStateMachineTest { assertTrue(LOG_REC_LIMIT_IN_VERBOSE_MODE > WifiStateMachine.NUM_LOG_RECS_NORMAL); mWsm.enableVerboseLogging(1); for (int i = 0; i < LOG_REC_LIMIT_IN_VERBOSE_MODE * 2; i++) { - mWsm.sendMessage(WifiStateMachine.CMD_BOOT_COMPLETED); + mWsm.sendMessage(WifiStateMachine.CMD_DISCONNECT); } mLooper.dispatchAll(); assertEquals(LOG_REC_LIMIT_IN_VERBOSE_MODE, mWsm.getLogRecSize()); @@ -865,7 +865,7 @@ public class WifiStateMachineTest { public void disablingVerboseLoggingClearsRecordsAndDecreasesLogRecSize() { mWsm.enableVerboseLogging(1); for (int i = 0; i < LOG_REC_LIMIT_IN_VERBOSE_MODE; i++) { - mWsm.sendMessage(WifiStateMachine.CMD_BOOT_COMPLETED); + mWsm.sendMessage(WifiStateMachine.CMD_DISCONNECT); } mLooper.dispatchAll(); assertEquals(LOG_REC_LIMIT_IN_VERBOSE_MODE, mWsm.getLogRecSize()); @@ -873,7 +873,7 @@ public class WifiStateMachineTest { mWsm.enableVerboseLogging(0); assertEquals(0, mWsm.getLogRecSize()); for (int i = 0; i < LOG_REC_LIMIT_IN_VERBOSE_MODE; i++) { - mWsm.sendMessage(WifiStateMachine.CMD_BOOT_COMPLETED); + mWsm.sendMessage(WifiStateMachine.CMD_DISCONNECT); } mLooper.dispatchAll(); assertEquals(WifiStateMachine.NUM_LOG_RECS_NORMAL, mWsm.getLogRecSize()); |