diff options
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiStateTrackerTest.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiStateTrackerTest.java b/tests/wifitests/src/com/android/server/wifi/WifiStateTrackerTest.java index 1f2af10ab..b6c8b8d5c 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiStateTrackerTest.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiStateTrackerTest.java @@ -18,8 +18,8 @@ package com.android.server.wifi; import com.android.internal.app.IBatteryStats; +import static org.mockito.Mockito.any; import static org.mockito.Mockito.anyInt; -import static org.mockito.Mockito.anyString; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; @@ -53,7 +53,6 @@ public class WifiStateTrackerTest { * Ensure BatteryStats's noteWifiState() is called when the method * updateState() is invoked on WifiStateTracker for relevant states. */ - @DisabledForUpdateToAnyMatcher @Test public void testBatteryStatsUpdated() throws Exception { int[] relevantStates = new int[] { WifiStateTracker.SCAN_MODE, @@ -62,7 +61,7 @@ public class WifiStateTrackerTest { for (int i = 0; i < relevantStates.length; i++) { mWifiStateTracker.updateState(relevantStates[i]); } - verify(mBatteryStats, times(relevantStates.length)).noteWifiState(anyInt(), anyString()); + verify(mBatteryStats, times(relevantStates.length)).noteWifiState(anyInt(), any()); } /** @@ -76,6 +75,6 @@ public class WifiStateTrackerTest { for (int i = 0; i < irrelevantStates.length; i++) { mWifiStateTracker.updateState(irrelevantStates[i]); } - verify(mBatteryStats, times(0)).noteWifiState(anyInt(), anyString()); + verify(mBatteryStats, times(0)).noteWifiState(anyInt(), any()); } } |