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

Commit 05119b87 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Fix LongSamplingCounterArrayTest.

Test: bit FrameworksCoreTests:com.android.internal.os.LongSamplingCounterArrayTest
Change-Id: I46ae68c7435dba634639cff7e874de122b102042
parent 363c238b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ public class LongSamplingCounterArrayTest {
    public void testOnTimeStarted() {
        initializeCounterArrayWithDefaultValues();
        mCounterArray.onTimeStarted(0, 0, 0);
        assertArrayEquals(PLUGGED_COUNTS, mCounterArray.mCounts, "Unexpected counts");
        assertArrayEquals(COUNTS, mCounterArray.mCounts, "Unexpected counts");
        assertArrayEquals(LOADED_COUNTS, mCounterArray.mLoadedCounts, "Unexpected loadedCounts");
        assertArrayEquals(PLUGGED_COUNTS, mCounterArray.mPluggedCounts, "Unexpected pluggedCounts");
        assertArrayEquals(PLUGGED_COUNTS, mCounterArray.mUnpluggedCounts,
@@ -150,6 +150,7 @@ public class LongSamplingCounterArrayTest {
    @Test
    public void testAddCountLocked() {
        final long[] deltas = {123, 234, 345, 456};
        when(mTimeBase.isRunning()).thenReturn(true);
        mCounterArray.addCountLocked(deltas);
        assertArrayEquals(deltas, mCounterArray.mCounts, "Unexpected counts");
        assertArrayEquals(null, mCounterArray.mLoadedCounts, "Unexpected loadedCounts");