Migrate bandwidth control to NMS, omit history. am: cd18d74b94
Original change: undetermined Change-Id: Id1dd8f1a03dcc6dc3bb8677efae52c861ecbb94f
This commit is contained in:
@@ -610,9 +610,6 @@ public class NetworkStatsServiceTest extends AndroidTestCase {
|
||||
mAlarmManager.setInexactRepeating(
|
||||
eq(AlarmManager.ELAPSED_REALTIME), anyLong(), anyLong(), isA(PendingIntent.class));
|
||||
expectLastCall().atLeastOnce();
|
||||
|
||||
mNetManager.setBandwidthControlEnabled(true);
|
||||
expectLastCall().atLeastOnce();
|
||||
}
|
||||
|
||||
private void expectNetworkState(NetworkState... state) throws Exception {
|
||||
@@ -633,7 +630,6 @@ public class NetworkStatsServiceTest extends AndroidTestCase {
|
||||
|
||||
private void expectSettings(long persistThreshold, long bucketDuration, long maxHistory)
|
||||
throws Exception {
|
||||
expect(mSettings.getEnabled()).andReturn(true).anyTimes();
|
||||
expect(mSettings.getPollInterval()).andReturn(HOUR_IN_MILLIS).anyTimes();
|
||||
expect(mSettings.getPersistThreshold()).andReturn(persistThreshold).anyTimes();
|
||||
expect(mSettings.getNetworkBucketDuration()).andReturn(bucketDuration).anyTimes();
|
||||
|
||||
Reference in New Issue
Block a user