Loading packages/SystemUI/multivalentTests/src/com/android/systemui/scene/SceneFrameworkIntegrationTest.kt +11 −1 Original line number Original line Diff line number Diff line Loading @@ -327,6 +327,16 @@ class SceneFrameworkIntegrationTest : SysuiTestCase() { assertCurrentScene(Scenes.Lockscreen) assertCurrentScene(Scenes.Lockscreen) } } @Test fun lockDeviceLocksDevice() = testScope.runTest { unlockDevice() assertCurrentScene(Scenes.Gone) lockDevice() assertCurrentScene(Scenes.Lockscreen) } @Test @Test fun deviceGoesToSleep_switchesToLockscreen() = fun deviceGoesToSleep_switchesToLockscreen() = testScope.runTest { testScope.runTest { Loading Loading @@ -616,7 +626,7 @@ class SceneFrameworkIntegrationTest : SysuiTestCase() { assertWithMessage("The authentication method of $authMethod is not secure, cannot lock!") assertWithMessage("The authentication method of $authMethod is not secure, cannot lock!") .that(authMethod.isSecure) .that(authMethod.isSecure) .isTrue() .isTrue() kosmos.sceneInteractor.changeScene(Scenes.Lockscreen, "") runCurrent() runCurrent() } } Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/scene/SceneFrameworkIntegrationTest.kt +11 −1 Original line number Original line Diff line number Diff line Loading @@ -327,6 +327,16 @@ class SceneFrameworkIntegrationTest : SysuiTestCase() { assertCurrentScene(Scenes.Lockscreen) assertCurrentScene(Scenes.Lockscreen) } } @Test fun lockDeviceLocksDevice() = testScope.runTest { unlockDevice() assertCurrentScene(Scenes.Gone) lockDevice() assertCurrentScene(Scenes.Lockscreen) } @Test @Test fun deviceGoesToSleep_switchesToLockscreen() = fun deviceGoesToSleep_switchesToLockscreen() = testScope.runTest { testScope.runTest { Loading Loading @@ -616,7 +626,7 @@ class SceneFrameworkIntegrationTest : SysuiTestCase() { assertWithMessage("The authentication method of $authMethod is not secure, cannot lock!") assertWithMessage("The authentication method of $authMethod is not secure, cannot lock!") .that(authMethod.isSecure) .that(authMethod.isSecure) .isTrue() .isTrue() kosmos.sceneInteractor.changeScene(Scenes.Lockscreen, "") runCurrent() runCurrent() } } Loading