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

Commit a39d37d1 authored by Ben Lin's avatar Ben Lin
Browse files

WMLockScreenVisibilityMgrTest: update test for keyguard shell transit.

For this test, without transitions, we expect one call of each: 1)
ATMS#setLockscreenShown and ATMS#setKeyguardShown. But with shell
transitions, they are now both keyguardTransitions#startTransition.
Update test accordingly.

Bug: 364930619
Test: atest
Flag: com.android.window.flags.ensure_keyguard_does_transition_starting

Change-Id: Ia0907e0a2f6fc4832aa7a53b2b4c668012205103
parent 09e4858b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -195,6 +195,7 @@ class WindowManagerLockscreenVisibilityManagerTest : SysuiTestCase() {
    @RequiresFlagsEnabled(Flags.FLAG_ENSURE_KEYGUARD_DOES_TRANSITION_STARTING)
    fun setSurfaceBehindVisibility_goesAwayFirst_andIgnoresSecondCall_with_keyguard_shell_transitions() {
        underTest.setLockscreenShown(true)
        verify(keyguardTransitions).startKeyguardTransition(true, false)
        underTest.setSurfaceBehindVisibility(true)
        verify(keyguardTransitions).startKeyguardTransition(false, false)