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

Commit 3dd1d765 authored by burakov's avatar burakov
Browse files

[Dual Shade] Fix setup of QuickSettingsShadeOverlayContentViewModelTest.

Fix: 439625361
Test: Updated unit tests.
Flag: com.android.systemui.scene_container
Change-Id: I3b964b388d96c3f997c9d06ff29007b03aec4655
parent 9c99fa35
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -81,7 +81,6 @@ class QuickSettingsShadeOverlayContentViewModelTest : SysuiTestCase() {
            enableDualShade()
            enableDualShade()
            runCurrent()
            runCurrent()
            underTest.activateIn(testScope)
            underTest.activateIn(testScope)
            testScope.backgroundScope.launch { underTest.detectShadeModeChanges() }
        }
        }


    @Test
    @Test
@@ -129,6 +128,7 @@ class QuickSettingsShadeOverlayContentViewModelTest : SysuiTestCase() {
            val currentScene by collectLastValue(sceneInteractor.currentScene)
            val currentScene by collectLastValue(sceneInteractor.currentScene)
            val currentOverlays by collectLastValue(sceneInteractor.currentOverlays)
            val currentOverlays by collectLastValue(sceneInteractor.currentOverlays)


            testScope.backgroundScope.launch { underTest.detectShadeModeChanges() }
            enableDualShade()
            enableDualShade()
            shadeInteractor.expandQuickSettingsShade("test")
            shadeInteractor.expandQuickSettingsShade("test")
            runCurrent()
            runCurrent()
@@ -147,6 +147,7 @@ class QuickSettingsShadeOverlayContentViewModelTest : SysuiTestCase() {
            val currentScene by collectLastValue(sceneInteractor.currentScene)
            val currentScene by collectLastValue(sceneInteractor.currentScene)
            val currentOverlays by collectLastValue(sceneInteractor.currentOverlays)
            val currentOverlays by collectLastValue(sceneInteractor.currentOverlays)


            testScope.backgroundScope.launch { underTest.detectShadeModeChanges() }
            enableDualShade()
            enableDualShade()
            shadeInteractor.expandQuickSettingsShade("test")
            shadeInteractor.expandQuickSettingsShade("test")
            runCurrent()
            runCurrent()