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

Commit e34a1b64 authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Update phone gesture nav test in NavButtonLayoutFactoryTest" into main

parents 6ad28a56 b263e2d9
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -171,10 +171,11 @@ class NavButtonLayoutFactoryTest {
        assert(layoutter is PhoneSeascapeNavLayoutter)
    }

    @Test(expected = IllegalStateException::class)
    fun noValidLayoutForPhoneGestureNav() {
    @Test
    fun getTaskbarPhoneGestureNavLayoutter() {
        assumeTrue(ENABLE_TASKBAR_NAVBAR_UNIFICATION)
        mockDeviceProfile.isTaskbarPresent = false
        val layoutter: NavButtonLayoutFactory.NavButtonLayoutter =
            getLayoutter(
                isKidsMode = false,
                isInSetup = false,
@@ -182,6 +183,7 @@ class NavButtonLayoutFactoryTest {
                phoneMode = true,
                surfaceRotation = surfaceRotation
            )
        assert(layoutter is PhoneGestureLayoutter)
    }

    private fun setDeviceProfileLandscape() {