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

Commit 00eff4ee authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix keyguard tests for background wm_state_refactor calls" into main

parents 5db43b42 21c84316
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -266,12 +266,16 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() {
    @Test
    @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING)
    fun setSurfaceBehindVisibility_falseSetsLockscreenVisibility_with_keyguard_shell_transitions() {
        // Show the surface behind, then hide it.
        underTest.setLockscreenShown(true)
        uiBgExecutor.runAllReady()
        verify(keyguardTransitions).startKeyguardTransition(eq(true), any())

        // Show the surface behind, then hide it.
        underTest.setSurfaceBehindVisibility(true)
        uiBgExecutor.runAllReady()
        underTest.setSurfaceBehindVisibility(false)
        uiBgExecutor.runAllReady()
        verify(keyguardTransitions).startKeyguardTransition(eq(true), any())
        verify(keyguardTransitions, times(2)).startKeyguardTransition(eq(true), any())
    }

    @Test