Fix network stats and policy tests. am: 0e5fa591b9

Original change: undetermined

Change-Id: If205d889c32b958194dd9a47fa3ecf0b8d1aa144
This commit is contained in:
Jeff Sharkey
2021-05-31 12:31:11 +00:00
committed by Automerger Merge Worker

View File

@@ -56,7 +56,7 @@ public class NetworkStatsCollectionTest extends AndroidTestCase {
// verify that history read correctly // verify that history read correctly
assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI),
636014522L, 709291L, 88037144L, 518820L); 636016770L, 709306L, 88038768L, 518836L);
// now export into a unified format // now export into a unified format
final ByteArrayOutputStream bos = new ByteArrayOutputStream(); final ByteArrayOutputStream bos = new ByteArrayOutputStream();
@@ -70,7 +70,7 @@ public class NetworkStatsCollectionTest extends AndroidTestCase {
// and read back into structure, verifying that totals are same // and read back into structure, verifying that totals are same
collection.read(new ByteArrayInputStream(bos.toByteArray())); collection.read(new ByteArrayInputStream(bos.toByteArray()));
assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI),
636014522L, 709291L, 88037144L, 518820L); 636016770L, 709306L, 88038768L, 518836L);
} }
public void testReadLegacyUid() throws Exception { public void testReadLegacyUid() throws Exception {
@@ -82,7 +82,7 @@ public class NetworkStatsCollectionTest extends AndroidTestCase {
// verify that history read correctly // verify that history read correctly
assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI),
637073904L, 711398L, 88342093L, 521006L); 637076152L, 711413L, 88343717L, 521022L);
// now export into a unified format // now export into a unified format
final ByteArrayOutputStream bos = new ByteArrayOutputStream(); final ByteArrayOutputStream bos = new ByteArrayOutputStream();
@@ -96,7 +96,7 @@ public class NetworkStatsCollectionTest extends AndroidTestCase {
// and read back into structure, verifying that totals are same // and read back into structure, verifying that totals are same
collection.read(new ByteArrayInputStream(bos.toByteArray())); collection.read(new ByteArrayInputStream(bos.toByteArray()));
assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI), assertSummaryTotal(collection, buildTemplateMobileAll(TEST_IMSI),
637073904L, 711398L, 88342093L, 521006L); 637076152L, 711413L, 88343717L, 521022L);
} }
public void testReadLegacyUidTags() throws Exception { public void testReadLegacyUidTags() throws Exception {