am bc03c74c: am d968670d: Merge "Conservatively trim data usage stats." into ics-mr1 am: ac0fb9c578

Original change: undetermined

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

View File

@@ -256,6 +256,10 @@ public class NetworkStatsHistoryTest extends AndroidTestCase {
stats.recordData(TEST_START, TEST_START + DAY_IN_MILLIS, 24L, 24L); stats.recordData(TEST_START, TEST_START + DAY_IN_MILLIS, 24L, 24L);
assertEquals(24, stats.size()); assertEquals(24, stats.size());
// try removing invalid data; should be no change
stats.removeBucketsBefore(0 - DAY_IN_MILLIS);
assertEquals(24, stats.size());
// try removing far before buckets; should be no change // try removing far before buckets; should be no change
stats.removeBucketsBefore(TEST_START - YEAR_IN_MILLIS); stats.removeBucketsBefore(TEST_START - YEAR_IN_MILLIS);
assertEquals(24, stats.size()); assertEquals(24, stats.size());