Loading packages/SystemUI/tests/utils/src/com/android/systemui/kosmos/GeneralKosmos.kt +2 −2 Original line number Diff line number Diff line Loading @@ -54,8 +54,8 @@ var Kosmos.brightnessWarningToast: BrightnessWarningToast by * Run this test body with a [Kosmos] as receiver, and using the [testScope] currently installed in * that Kosmos instance */ fun Kosmos.runTest(testBody: suspend Kosmos.() -> Unit) { testScope.runTestWithSnapshots testBody@{ this@runTest.testBody() } fun Kosmos.runTest(testBody: suspend Kosmos.() -> Unit) = let { kosmos -> testScope.runTestWithSnapshots { kosmos.testBody() } } fun Kosmos.runCurrent() = testScope.runCurrent() Loading Loading
packages/SystemUI/tests/utils/src/com/android/systemui/kosmos/GeneralKosmos.kt +2 −2 Original line number Diff line number Diff line Loading @@ -54,8 +54,8 @@ var Kosmos.brightnessWarningToast: BrightnessWarningToast by * Run this test body with a [Kosmos] as receiver, and using the [testScope] currently installed in * that Kosmos instance */ fun Kosmos.runTest(testBody: suspend Kosmos.() -> Unit) { testScope.runTestWithSnapshots testBody@{ this@runTest.testBody() } fun Kosmos.runTest(testBody: suspend Kosmos.() -> Unit) = let { kosmos -> testScope.runTestWithSnapshots { kosmos.testBody() } } fun Kosmos.runCurrent() = testScope.runCurrent() Loading