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

Commit 9c5f5bb0 authored by Matt Pietal's avatar Matt Pietal Committed by Nishith Khanna
Browse files

Update broken tests

These did not compile after merging a security fix for user switching.

Fixes: 442583448
Test: atest KeyguardViewMediatorTest
Flag: EXEMPT bugfix
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:7e2fe661ec8be0ef93117eded48d79f62e5974cc
Merged-In: Idc6df43d4801c9320885f8aa10f11396da5df0b2
Change-Id: Idc6df43d4801c9320885f8aa10f11396da5df0b2
parent e30d2061
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -354,7 +354,7 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
        // Setup keyguard
        mViewMediator.onSystemReady();
        processAllMessagesAndBgExecutorMessages();
        mViewMediator.setShowingLocked(true, "");
        mViewMediator.setShowingLocked(true);

        // Request keyguard going away
        when(mKeyguardStateController.isKeyguardGoingAway()).thenReturn(true);
@@ -382,7 +382,7 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {

        // The call to exit should be rejected, and keyguard should still be visible
        verify(mKeyguardUnlockAnimationController, never()).notifyStartSurfaceBehindRemoteAnimation(
                any(), any(), any(), anyLong(), anyBoolean());
                any(), any(), anyLong(), anyBoolean());
        try {
            assertATMSLockScreenShowing(true);
        } catch (Exception e) {
@@ -399,7 +399,7 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
        // Setup keyguard
        mViewMediator.onSystemReady();
        processAllMessagesAndBgExecutorMessages();
        mViewMediator.setShowingLocked(true, "");
        mViewMediator.setShowingLocked(true);

        // After the request, begin a switch to a new secure user
        int nextUserId = 500;
@@ -435,7 +435,7 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
        // Setup keyguard
        mViewMediator.onSystemReady();
        processAllMessagesAndBgExecutorMessages();
        mViewMediator.setShowingLocked(true, "");
        mViewMediator.setShowingLocked(true);

        // After the request, begin a switch to an insecure user
        int nextUserId = 500;
@@ -463,7 +463,7 @@ public class KeyguardViewMediatorTest extends SysuiTestCase {
        // Setup keyguard as not visible
        mViewMediator.onSystemReady();
        processAllMessagesAndBgExecutorMessages();
        mViewMediator.setShowingLocked(false, "");
        mViewMediator.setShowingLocked(false);
        processAllMessagesAndBgExecutorMessages();

        // Begin a switch to a new secure user