Init timers in BatteryExternalStatsWorkerTest
Bug: 194107383 Test: atest com/android/server/am/BatteryExternalStatsWorkerTest.java Change-Id: Iaf41a1e9e79af902df9b50c5fd626aa45f6d3657
This commit is contained in:
@@ -202,6 +202,7 @@ public class BatteryExternalStatsWorkerTest {
|
||||
public class TestBatteryStatsImpl extends BatteryStatsImpl {
|
||||
public TestBatteryStatsImpl(Context context) {
|
||||
mPowerProfile = new PowerProfile(context, true /* forTest */);
|
||||
initTimersAndCounters();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user