Merge "KeyguardViewMediatorTest - Flaky test fix" into sc-qpr1-dev am: 2ac8e5991c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15542972 Change-Id: Icf8534c34476c4f27e72cb6812b9dda6f3a560ec
This commit is contained in:
@@ -67,7 +67,7 @@ import org.mockito.Mock;
|
|||||||
import org.mockito.MockitoAnnotations;
|
import org.mockito.MockitoAnnotations;
|
||||||
|
|
||||||
@RunWith(AndroidTestingRunner.class)
|
@RunWith(AndroidTestingRunner.class)
|
||||||
@TestableLooper.RunWithLooper(setAsMainLooper = true)
|
@TestableLooper.RunWithLooper
|
||||||
@SmallTest
|
@SmallTest
|
||||||
public class KeyguardViewMediatorTest extends SysuiTestCase {
|
public class KeyguardViewMediatorTest extends SysuiTestCase {
|
||||||
private KeyguardViewMediator mViewMediator;
|
private KeyguardViewMediator mViewMediator;
|
||||||
@@ -126,7 +126,6 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
|
|||||||
mUnlockedScreenOffAnimationController,
|
mUnlockedScreenOffAnimationController,
|
||||||
() -> mNotificationShadeDepthController);
|
() -> mNotificationShadeDepthController);
|
||||||
mViewMediator.start();
|
mViewMediator.start();
|
||||||
mViewMediator.onSystemReady();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -165,8 +164,10 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@TestableLooper.RunWithLooper(setAsMainLooper = true)
|
||||||
public void restoreBouncerWhenSimLockedAndKeyguardIsGoingAway() {
|
public void restoreBouncerWhenSimLockedAndKeyguardIsGoingAway() {
|
||||||
// When showing and provisioned
|
// When showing and provisioned
|
||||||
|
mViewMediator.onSystemReady();
|
||||||
when(mUpdateMonitor.isDeviceProvisioned()).thenReturn(true);
|
when(mUpdateMonitor.isDeviceProvisioned()).thenReturn(true);
|
||||||
mViewMediator.setShowingLocked(true);
|
mViewMediator.setShowingLocked(true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user