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

Commit 8be59527 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix test flake in AutoTileManagerTest"

parents 22233f83 05b81b47
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -21,9 +21,11 @@ import static org.mockito.Mockito.verify;

import android.support.test.filters.SmallTest;
import android.testing.AndroidTestingRunner;
import android.testing.TestableLooper;
import android.testing.TestableLooper.RunWithLooper;

import com.android.internal.app.NightDisplayController;
import com.android.systemui.Dependency;
import com.android.systemui.Prefs;
import com.android.systemui.Prefs.Key;
import com.android.systemui.SysuiTestCase;
@@ -45,6 +47,8 @@ public class AutoTileManagerTest extends SysuiTestCase {

    @Before
    public void setUp() throws Exception {
        mDependency.injectTestDependency(Dependency.BG_LOOPER,
                TestableLooper.get(this).getLooper());
        Prefs.putBoolean(mContext, Key.QS_NIGHTDISPLAY_ADDED, false);
        mQsTileHost = Mockito.mock(QSTileHost.class);
        mAutoTileManager = new AutoTileManager(mContext, mQsTileHost);