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

Commit 840a97d7 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Adding TestStabiility so that demoting...

Adding TestStabiility so that demoting transitioningToUnlocked_resetCallsPendingRunnable from presubmit works

Bug: 320703862
Test: presubmit
Flag: N/A
Change-Id: Ie0e49ffb4d1efabe1c79fac9342f186f15f8cf23
parent 9de29f21
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -42,9 +42,12 @@ import androidx.test.runner.AndroidJUnit4;
import com.android.launcher3.logging.StatsLogManager;
import com.android.launcher3.pm.UserCache;
import com.android.launcher3.util.UserIconInfo;
import com.android.launcher3.util.rule.TestStabilityRule;

import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestRule;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Mock;
@@ -56,6 +59,9 @@ import java.util.Arrays;
@RunWith(AndroidJUnit4.class)
public class PrivateProfileManagerTest {

    @Rule(order = 0)
    public TestRule testStabilityRule = new TestStabilityRule();

    private static final UserHandle MAIN_HANDLE = Process.myUserHandle();
    private static final UserHandle PRIVATE_HANDLE = new UserHandle(11);
    private static final UserIconInfo MAIN_ICON_INFO =