Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea93d397 authored by Michael Wachenschwanz's avatar Michael Wachenschwanz
Browse files

Init timers in BatteryExternalStatsWorkerTest

Bug: 194107383
Test: atest com/android/server/am/BatteryExternalStatsWorkerTest.java
Change-Id: Iaf41a1e9e79af902df9b50c5fd626aa45f6d3657
parent e1548a4e
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -202,6 +202,7 @@ public class BatteryExternalStatsWorkerTest {
    public class TestBatteryStatsImpl extends BatteryStatsImpl {
    public class TestBatteryStatsImpl extends BatteryStatsImpl {
        public TestBatteryStatsImpl(Context context) {
        public TestBatteryStatsImpl(Context context) {
            mPowerProfile = new PowerProfile(context, true /* forTest */);
            mPowerProfile = new PowerProfile(context, true /* forTest */);
            initTimersAndCounters();
        }
        }
    }
    }