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

Commit a5e8f22a authored by Ale Nijamkin's avatar Ale Nijamkin
Browse files

[flexiglass] Fixes KeyguardKeyEventInteractorTest when flexi is on

Disables two @Test methods that fail when flexi is on. In Flexiglass,
key events captured in bouncer don't go through this code path, instead,
they go directly to media (see
BouncerOverlayContentViewModel#onKeyEvent).

Bug: 283121968
Test: not tested
Flag: EXEMPT test only change
Change-Id: Iaa4ef6577396905acaedcdc1541d2d9df734e654
parent f143c539
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.SmallTest
import com.android.systemui.SysuiTestCase
import com.android.systemui.back.domain.interactor.BackActionInteractor
import com.android.systemui.flags.DisableSceneContainer
import com.android.systemui.media.controls.util.MediaSessionLegacyHelperWrapper
import com.android.systemui.plugins.statusbar.StatusBarStateController
import com.android.systemui.power.domain.interactor.PowerInteractor
@@ -219,6 +220,7 @@ class KeyguardKeyEventInteractorTest : SysuiTestCase() {
    }

    @Test
    @DisableSceneContainer
    fun interceptMediaKey_keyguard_SBKVMdoesNotHandle_doesNotHandleMediaKey() {
        val keyEvent = KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_VOLUME_UP)
        whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD)
@@ -229,6 +231,7 @@ class KeyguardKeyEventInteractorTest : SysuiTestCase() {
    }

    @Test
    @DisableSceneContainer
    fun interceptMediaKey_keyguard_handleMediaKey() {
        val keyEvent = KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_VOLUME_UP)
        whenever(statusBarStateController.state).thenReturn(StatusBarState.KEYGUARD)