summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOscar Shu <xshu@google.com>2019-12-03 02:09:43 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-12-03 02:09:43 +0000
commit23b40bd2cc909950103cc55cffacc9142f584751 (patch)
tree8a6be7aa88a205b9f16665f7b605c5cd419ec440 /tests
parent9f425fafcb6ea743914ce0cd583cf9afe0a60c8e (diff)
parenta529fb6e954c507ac5ccd53e4cf57befc7886b70 (diff)
Merge "Limit watchdog check to device related failures"
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/BssidBlocklistMonitorTest.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/BssidBlocklistMonitorTest.java b/tests/wifitests/src/com/android/server/wifi/BssidBlocklistMonitorTest.java
index 3d397a241..7f72269bd 100644
--- a/tests/wifitests/src/com/android/server/wifi/BssidBlocklistMonitorTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/BssidBlocklistMonitorTest.java
@@ -396,7 +396,8 @@ public class BssidBlocklistMonitorTest {
/**
* Verify that a BSSID is not added to blocklist as long as
- * mWifiLastResortWatchdog.shouldIgnoreBssidUpdate is returning true.
+ * mWifiLastResortWatchdog.shouldIgnoreBssidUpdate is returning true, for failure reasons
+ * that are also being tracked by the watchdog.
*/
@Test
public void testWatchdogIsGivenChanceToTrigger() {
@@ -414,6 +415,17 @@ public class BssidBlocklistMonitorTest {
}
/**
+ * Verify that non device related errors, and errors that are not monitored by the watchdog
+ * bypasses the watchdog check.
+ */
+ @Test
+ public void testUnrelatedErrorsBypassWatchdogCheck() {
+ when(mWifiLastResortWatchdog.shouldIgnoreBssidUpdate(anyString())).thenReturn(true);
+ verifyAddTestBssidToBlocklist();
+ verify(mWifiLastResortWatchdog, never()).shouldIgnoreBssidUpdate(anyString());
+ }
+
+ /**
* Verify that we are correctly filtering by SSID when sending a blocklist down to firmware.
*/
@Test