Merge "Hold wifi and mobile interfaces since boot in NetworkStatsService"

This commit is contained in:
Aaron Huang
2022-06-07 07:36:26 +00:00
committed by Gerrit Code Review
3 changed files with 70 additions and 15 deletions

View File

@@ -1135,9 +1135,12 @@ public class NetworkStatsServiceTest extends NetworkStatsBaseTest {
assertEquals(3, stats.size());
entry1.operations = 1;
entry1.iface = null;
assertEquals(entry1, stats.getValues(0, null));
entry2.operations = 1;
entry2.iface = null;
assertEquals(entry2, stats.getValues(1, null));
entry3.iface = null;
assertEquals(entry3, stats.getValues(2, null));
}