summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Plass <mplass@google.com>2020-06-01 17:27:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-06-01 17:27:26 +0000
commit590b4f71df5ffb5ef17da48e9d73b919de85b002 (patch)
treecc47505ece3452558fa15770b684a1d9d4cc3c1c /tests
parented72be5adfa4dde205917312dfdd240b470882b3 (diff)
parent330a7ccd895b4047323d4b633e36489daf1f8f4c (diff)
Merge "Remove WifiScoreCard entries when forgetting a network" into rvc-dev
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiHealthMonitorTest.java17
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiScoreCardTest.java15
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiHealthMonitorTest.java b/tests/wifitests/src/com/android/server/wifi/WifiHealthMonitorTest.java
index 0660e5eec..4e0b5b75e 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiHealthMonitorTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiHealthMonitorTest.java
@@ -332,6 +332,14 @@ public class WifiHealthMonitorTest extends WifiBaseTest {
mKeys.add(key);
mBlobs.add(value);
}
+
+ @Override
+ public void setCluster(String key, String cluster) {
+ }
+
+ @Override
+ public void removeCluster(String cluster) {
+ }
});
mBlobListeners.get(0).onBlobRetrieved(serialized);
@@ -688,11 +696,20 @@ public class WifiHealthMonitorTest extends WifiBaseTest {
public void read(String key, String name, WifiScoreCard.BlobListener listener) {
mBlobListeners.add(listener);
}
+
@Override
public void write(String key, String name, byte[] value) {
mKeys.add(key);
mBlobs.add(value);
}
+
+ @Override
+ public void setCluster(String key, String cluster) {
+ }
+
+ @Override
+ public void removeCluster(String cluster) {
+ }
});
mBlobListeners.get(0).onBlobRetrieved(serialized);
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiScoreCardTest.java b/tests/wifitests/src/com/android/server/wifi/WifiScoreCardTest.java
index e5525c4c7..1ad767c6e 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiScoreCardTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiScoreCardTest.java
@@ -688,6 +688,14 @@ public class WifiScoreCardTest extends WifiBaseTest {
public void write(String key, String name, byte[] value) {
// ignore for now
}
+ @Override
+ public void setCluster(String key, String cluster) {
+ // ignore for now
+ }
+ @Override
+ public void removeCluster(String cluster) {
+ // ignore for now
+ }
});
// Now make some changes
@@ -724,6 +732,13 @@ public class WifiScoreCardTest extends WifiBaseTest {
mKeys.add(key);
mBlobs.add(value);
}
+ @Override
+ public void setCluster(String key, String cluster) {
+ }
+ @Override
+ public void removeCluster(String cluster) {
+ // ignore for now
+ }
});
// Make some changes