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

Commit 7ca6672a authored by burakov's avatar burakov Committed by Danny Burakov
Browse files

Disable SceneContainer in tests that disable MEDIA_CONTROLS_IN_COMPOSE.

Fix: 440617117
Fix: 440616705
Fix: 440616446
Fix: 440616805
Fix: 440608775
Fix: 440607527
Test: atest QSFragmentComposeViewModelTest
Flag: com.android.systemui.scene_container
Change-Id: I1ea4f21a9d8c6b3b1b396c4fea0e7d8c1ccdbc23
parent 7588ee00
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import com.android.systemui.Flags
import com.android.systemui.Flags.FLAG_QS_COMPOSE_FRAGMENT_EARLY_EXPANSION
import com.android.systemui.common.ui.data.repository.fakeConfigurationRepository
import com.android.systemui.coroutines.collectLastValue
import com.android.systemui.flags.DisableSceneContainer
import com.android.systemui.kosmos.testScope
import com.android.systemui.media.controls.domain.pipeline.legacyMediaDataManagerImpl
import com.android.systemui.media.controls.ui.controller.MediaHierarchyManager
@@ -237,6 +238,7 @@ class QSFragmentComposeViewModelTest : AbstractQSFragmentComposeViewModelTest()
        }

    @Test
    @DisableSceneContainer
    @DisableFlags(Flags.FLAG_MEDIA_CONTROLS_IN_COMPOSE)
    fun qqsMediaHost_initializedCorrectly() =
        with(kosmos) {
@@ -250,6 +252,7 @@ class QSFragmentComposeViewModelTest : AbstractQSFragmentComposeViewModelTest()
        }

    @Test
    @DisableSceneContainer
    @DisableFlags(Flags.FLAG_MEDIA_CONTROLS_IN_COMPOSE)
    fun qsMediaHost_initializedCorrectly() =
        with(kosmos) {
@@ -362,6 +365,7 @@ class QSFragmentComposeViewModelTest : AbstractQSFragmentComposeViewModelTest()
        }

    @Test
    @DisableSceneContainer
    @DisableFlags(Flags.FLAG_MEDIA_CONTROLS_IN_COMPOSE)
    fun qqsMediaExpansion_collapsedMediaInLandscape() =
        with(kosmos) {
@@ -378,6 +382,7 @@ class QSFragmentComposeViewModelTest : AbstractQSFragmentComposeViewModelTest()
        }

    @Test
    @DisableSceneContainer
    @DisableFlags(Flags.FLAG_MEDIA_CONTROLS_IN_COMPOSE)
    fun qqsMediaExpansion_notCollapsedMediaInLandscape_alwaysExpanded() =
        with(kosmos) {
@@ -394,6 +399,7 @@ class QSFragmentComposeViewModelTest : AbstractQSFragmentComposeViewModelTest()
        }

    @Test
    @DisableSceneContainer
    @DisableFlags(Flags.FLAG_MEDIA_CONTROLS_IN_COMPOSE)
    fun qqsMediaExpansion_reactsToChangesInCollapsedMediaInLandscape() =
        with(kosmos) {
@@ -410,6 +416,7 @@ class QSFragmentComposeViewModelTest : AbstractQSFragmentComposeViewModelTest()
        }

    @Test
    @DisableSceneContainer
    @DisableFlags(Flags.FLAG_MEDIA_CONTROLS_IN_COMPOSE)
    fun applyQsScrollPositionForClipping() =
        with(kosmos) {
@@ -427,6 +434,7 @@ class QSFragmentComposeViewModelTest : AbstractQSFragmentComposeViewModelTest()
        }

    @Test
    @DisableSceneContainer
    @DisableFlags(Flags.FLAG_MEDIA_CONTROLS_IN_COMPOSE)
    fun shouldUpdateMediaSquishiness_inSplitShadeFalse_mediaSquishinessSet() =
        with(kosmos) {
@@ -446,6 +454,7 @@ class QSFragmentComposeViewModelTest : AbstractQSFragmentComposeViewModelTest()
        }

    @Test
    @DisableSceneContainer
    @DisableFlags(Flags.FLAG_MEDIA_CONTROLS_IN_COMPOSE)
    fun inSplitShade_differentStatusBarState_mediaSquishinessSet() =
        with(kosmos) {
@@ -468,6 +477,7 @@ class QSFragmentComposeViewModelTest : AbstractQSFragmentComposeViewModelTest()
        }

    @Test
    @DisableSceneContainer
    @DisableFlags(Flags.FLAG_MEDIA_CONTROLS_IN_COMPOSE)
    fun disappearParams() =
        with(kosmos) {