Loading packages/SystemUI/tests/src/com/android/systemui/scene/data/repository/SceneContainerRepositoryTest.kt +3 −4 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import androidx.test.filters.SmallTest import com.android.systemui.SysuiTestCase import com.android.systemui.coroutines.collectLastValue import com.android.systemui.scene.SceneTestUtils import com.android.systemui.scene.sceneKeys import com.android.systemui.scene.shared.model.ObservableTransitionState import com.android.systemui.scene.shared.model.SceneKey import com.android.systemui.scene.shared.model.SceneModel Loading Loading @@ -70,10 +71,8 @@ class SceneContainerRepositoryTest : SysuiTestCase() { @Test(expected = IllegalStateException::class) fun setDesiredScene_noSuchSceneInContainer_throws() { val underTest = utils.fakeSceneContainerRepository( utils.fakeSceneContainerConfig(listOf(SceneKey.QuickSettings, SceneKey.Lockscreen)), ) utils.kosmos.sceneKeys = listOf(SceneKey.QuickSettings, SceneKey.Lockscreen) val underTest = utils.fakeSceneContainerRepository(utils.fakeSceneContainerConfig()) underTest.setDesiredScene(SceneModel(SceneKey.Shade)) } Loading packages/SystemUI/tests/src/com/android/systemui/scene/domain/startable/SceneContainerStartableTest.kt +1 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ import com.android.systemui.SysuiTestCase import com.android.systemui.authentication.domain.model.AuthenticationMethodModel import com.android.systemui.classifier.FalsingCollector import com.android.systemui.coroutines.collectLastValue import com.android.systemui.kosmos.testScope import com.android.systemui.model.SysUiState import com.android.systemui.power.domain.interactor.PowerInteractor.Companion.setAsleepForTest import com.android.systemui.power.domain.interactor.PowerInteractor.Companion.setAwakeForTest Loading packages/SystemUI/tests/src/com/android/systemui/shade/NotificationShadeWindowControllerImplTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ public class NotificationShadeWindowControllerImplTest extends SysuiTestCase { mTestScope.getBackgroundScope(), new SceneContainerRepository( mTestScope.getBackgroundScope(), mUtils.fakeSceneContainerConfig(mUtils.fakeSceneKeys())), mUtils.fakeSceneContainerConfig()), powerRepository, mock(SceneLogger.class)); Loading packages/SystemUI/tests/src/com/android/systemui/shade/QuickSettingsControllerBaseTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ public class QuickSettingsControllerBaseTest extends SysuiTestCase { mTestScope.getBackgroundScope(), new SceneContainerRepository( mTestScope.getBackgroundScope(), mUtils.fakeSceneContainerConfig(mUtils.fakeSceneKeys())), mUtils.fakeSceneContainerConfig()), powerRepository, mock(SceneLogger.class)); Loading packages/SystemUI/tests/src/com/android/systemui/wmshell/BubblesTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -395,7 +395,7 @@ public class BubblesTest extends SysuiTestCase { mTestScope.getBackgroundScope(), new SceneContainerRepository( mTestScope.getBackgroundScope(), mUtils.fakeSceneContainerConfig(mUtils.fakeSceneKeys())), mUtils.fakeSceneContainerConfig()), powerRepository, mock(SceneLogger.class)); Loading Loading
packages/SystemUI/tests/src/com/android/systemui/scene/data/repository/SceneContainerRepositoryTest.kt +3 −4 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import androidx.test.filters.SmallTest import com.android.systemui.SysuiTestCase import com.android.systemui.coroutines.collectLastValue import com.android.systemui.scene.SceneTestUtils import com.android.systemui.scene.sceneKeys import com.android.systemui.scene.shared.model.ObservableTransitionState import com.android.systemui.scene.shared.model.SceneKey import com.android.systemui.scene.shared.model.SceneModel Loading Loading @@ -70,10 +71,8 @@ class SceneContainerRepositoryTest : SysuiTestCase() { @Test(expected = IllegalStateException::class) fun setDesiredScene_noSuchSceneInContainer_throws() { val underTest = utils.fakeSceneContainerRepository( utils.fakeSceneContainerConfig(listOf(SceneKey.QuickSettings, SceneKey.Lockscreen)), ) utils.kosmos.sceneKeys = listOf(SceneKey.QuickSettings, SceneKey.Lockscreen) val underTest = utils.fakeSceneContainerRepository(utils.fakeSceneContainerConfig()) underTest.setDesiredScene(SceneModel(SceneKey.Shade)) } Loading
packages/SystemUI/tests/src/com/android/systemui/scene/domain/startable/SceneContainerStartableTest.kt +1 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ import com.android.systemui.SysuiTestCase import com.android.systemui.authentication.domain.model.AuthenticationMethodModel import com.android.systemui.classifier.FalsingCollector import com.android.systemui.coroutines.collectLastValue import com.android.systemui.kosmos.testScope import com.android.systemui.model.SysUiState import com.android.systemui.power.domain.interactor.PowerInteractor.Companion.setAsleepForTest import com.android.systemui.power.domain.interactor.PowerInteractor.Companion.setAwakeForTest Loading
packages/SystemUI/tests/src/com/android/systemui/shade/NotificationShadeWindowControllerImplTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ public class NotificationShadeWindowControllerImplTest extends SysuiTestCase { mTestScope.getBackgroundScope(), new SceneContainerRepository( mTestScope.getBackgroundScope(), mUtils.fakeSceneContainerConfig(mUtils.fakeSceneKeys())), mUtils.fakeSceneContainerConfig()), powerRepository, mock(SceneLogger.class)); Loading
packages/SystemUI/tests/src/com/android/systemui/shade/QuickSettingsControllerBaseTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ public class QuickSettingsControllerBaseTest extends SysuiTestCase { mTestScope.getBackgroundScope(), new SceneContainerRepository( mTestScope.getBackgroundScope(), mUtils.fakeSceneContainerConfig(mUtils.fakeSceneKeys())), mUtils.fakeSceneContainerConfig()), powerRepository, mock(SceneLogger.class)); Loading
packages/SystemUI/tests/src/com/android/systemui/wmshell/BubblesTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -395,7 +395,7 @@ public class BubblesTest extends SysuiTestCase { mTestScope.getBackgroundScope(), new SceneContainerRepository( mTestScope.getBackgroundScope(), mUtils.fakeSceneContainerConfig(mUtils.fakeSceneKeys())), mUtils.fakeSceneContainerConfig()), powerRepository, mock(SceneLogger.class)); Loading