Init timers in BatteryExternalStatsWorkerTest

Bug: 194107383
Test: atest com/android/server/am/BatteryExternalStatsWorkerTest.java
Change-Id: Iaf41a1e9e79af902df9b50c5fd626aa45f6d3657
This commit is contained in:
Michael Wachenschwanz
2021-10-15 15:21:51 -07:00
parent e1548a4e81
commit ea93d3970f

View File

@@ -202,6 +202,7 @@ public class BatteryExternalStatsWorkerTest {
public class TestBatteryStatsImpl extends BatteryStatsImpl {
public TestBatteryStatsImpl(Context context) {
mPowerProfile = new PowerProfile(context, true /* forTest */);
initTimersAndCounters();
}
}