summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Plass <mplass@google.com>2020-01-17 16:56:49 -0800
committerMichael Plass <mplass@google.com>2020-05-30 18:38:21 +0000
commit330a7ccd895b4047323d4b633e36489daf1f8f4c (patch)
tree1b6469c34507c367b990e5870947fdcb11919c2e /tests
parent7c8441932eae9212fae6157d3ca07b480254cee1 (diff)
Remove WifiScoreCard entries when forgetting a network
Bug: 146460486 Test: atest FrameworksWifiTests FrameworksWifiApiTests Test: Manual - Check that the entries for wifi networks are removed as those networks are forgotten. adb pull /data/user_de/0/com.android.networkstack/databases/IpMemoryStore.db sqlite3 IpMemoryStore.db .dump Change-Id: I2fee17aa4cfcd2afbd3e7d36937e2bf8ae4f3313
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