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

Commit e7dd89f0 authored by Hui Yu's avatar Hui Yu Committed by Android (Google) Code Review
Browse files

Merge "Fix test case when starting a new batterystats history file."

parents 28a0d1f2 1fd83f97
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -306,7 +306,8 @@ public class BatteryUsageStatsProviderTest {

        int expectedUid = 1;
        while (iterator.next(item)) {
            if (item.eventCode == BatteryStats.HistoryItem.EVENT_NONE) {
            while (item.cmd != BatteryStats.HistoryItem.CMD_UPDATE
                    || item.eventCode == BatteryStats.HistoryItem.EVENT_NONE) {
                assertThat(iterator.next(item)).isTrue();
            }
            int uid = item.eventTag.uid;