Merge changes I71988117,Ia70379a3
* changes: Move app uid stats map dump to NetworkStatsService Move uid counter set map dump to NetworkStatsService
This commit is contained in:
@@ -2343,4 +2343,23 @@ public class NetworkStatsServiceTest extends NetworkStatsBaseTest {
|
||||
assertDumpContains(dump, "cookie=2002 tag=0x1 uid=1002");
|
||||
assertDumpContains(dump, "cookie=3002 tag=0x2 uid=1002");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDumpUidCounterSetMap() throws ErrnoException {
|
||||
initBpfMapsWithTagData(UID_BLUE);
|
||||
|
||||
final String dump = getDump();
|
||||
assertDumpContains(dump, "mUidCounterSetMap: OK");
|
||||
assertDumpContains(dump, "uid=1002 set=1");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAppUidStatsMap() throws ErrnoException {
|
||||
initBpfMapsWithTagData(UID_BLUE);
|
||||
|
||||
final String dump = getDump();
|
||||
assertDumpContains(dump, "mAppUidStatsMap: OK");
|
||||
assertDumpContains(dump, "uid rxBytes rxPackets txBytes txPackets");
|
||||
assertDumpContains(dump, "1002 10000 10 6000 6");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user