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

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

Merge "Disable tests that set up state unused in wm_state_refactor." into main

parents 524ceb33 41425065
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -316,6 +316,7 @@ class FromAodTransitionInteractorTest : SysuiTestCase() {
        }

    @Test
    @DisableFlags(Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR)
    fun testWakeAndUnlock_transitionsToGone_evenIfBouncerShows() =
        testScope.runTest {
            kosmos.fakeKeyguardRepository.setBiometricUnlockState(
@@ -338,6 +339,23 @@ class FromAodTransitionInteractorTest : SysuiTestCase() {
                .startedTransition(from = KeyguardState.AOD, to = KeyguardState.GONE)
        }

    @Test
    @EnableFlags(Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR)
    fun testWakeAndUnlock_transitionsToGone_evenIfBouncerShows_wmStateRefactor() =
        testScope.runTest {
            kosmos.fakeKeyguardRepository.setBiometricUnlockState(
                BiometricUnlockMode.WAKE_AND_UNLOCK
            )
            runCurrent()
            bouncerRepository.setPrimaryShow(true)
            runCurrent()
            powerInteractor.setAwakeForTest()
            runCurrent()

            assertThat(transitionRepository)
                .startedTransition(from = KeyguardState.AOD, to = KeyguardState.GONE)
        }

    @Test
    fun testTransitionToOccluded_onWake() =
        testScope.runTest {
@@ -468,6 +486,7 @@ class FromAodTransitionInteractorTest : SysuiTestCase() {

    @Test
    @EnableFlags(FLAG_GLANCEABLE_HUB_V2)
    @DisableFlags(Flags.FLAG_KEYGUARD_WM_STATE_REFACTOR)
    fun testTransitionToOccluded_onWakeUpFromAod_whenGlanceableHubEnabled() =
        kosmos.runTest {
            setCommunalV2Available(true)