summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java b/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java
index e574427e8..bf0de0456 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiMetricsTest.java
@@ -2768,6 +2768,7 @@ public class WifiMetricsTest {
mWifiMetrics.incrementWifiUsabilityScoreCount(3, 56, 15);
mWifiMetrics.logLinkProbeFailure(nextRandInt(), nextRandInt(), nextRandInt(),
nextRandInt(), nextRandInt());
+ mWifiMetrics.enterDeviceMobilityState(DEVICE_MOBILITY_STATE_HIGH_MVMT);
mWifiMetrics.updateWifiUsabilityStatsEntries(info, stats2);
mWifiMetrics.addToWifiUsabilityStatsList(WifiUsabilityStats.LABEL_BAD,
@@ -2817,6 +2818,9 @@ public class WifiMetricsTest {
mDecodedProto.wifiUsabilityStatsList[0].stats[0].cellularSignalStrengthDb);
assertEquals(isSameRegisteredCell,
mDecodedProto.wifiUsabilityStatsList[0].stats[0].isSameRegisteredCell);
+ assertEquals(DEVICE_MOBILITY_STATE_HIGH_MVMT, mDecodedProto.wifiUsabilityStatsList[1]
+ .stats[mDecodedProto.wifiUsabilityStatsList[1].stats.length - 1]
+ .deviceMobilityState);
}
/**