/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/ |
D | TestScope.kt | 43 public val testScheduler: TestCoroutineScheduler in <lambda>() constant 88 get() = testScheduler.currentTime 95 public fun TestScope.advanceUntilIdle(): Unit = testScheduler.advanceUntilIdle() in advanceUntilIdle() 104 public fun TestScope.runCurrent(): Unit = testScheduler.runCurrent() in advanceUntilIdle() 117 public fun TestScope.advanceTimeBy(delayTimeMillis: Long): Unit = testScheduler.advanceTimeBy(delay… in advanceUntilIdle() 127 public fun TestScope.advanceTimeBy(delayTime: Duration): Unit = testScheduler.advanceTimeBy(delayTi… in advanceUntilIdle() 134 public val TestScope.testTimeSource: TimeSource.WithComparableMarks get() = testScheduler.timeSource in advanceUntilIdle() 205 override val testScheduler get() = context[TestCoroutineScheduler]!! constant 271 if (!testScheduler.isIdle()) in legacyLeave()
|
D | TestBuilders.kt | 326 val executedSomething = testScheduler.tryRunNextTaskUnless { !isActive } in runTest() 333 testScheduler.receiveDispatchEvent() in runTest() 370 testScheduler.advanceUntilIdleOr { false } in runTest() 402 testScheduler.advanceUntilIdleOr { false } in runTest()
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/src/migration/ |
D | TestCoroutineScope.kt | 34 public val testScheduler: TestCoroutineScheduler in <lambda>() constant 62 override val testScheduler: TestCoroutineScheduler constant in kotlinx.coroutines.test.TestCoroutineScopeImpl 79 testScheduler.runCurrent() in cleanupTestCoroutines() 80 !testScheduler.isIdle(strict = false) in cleanupTestCoroutines() 179 get() = coroutineContext.delayController?.currentTime ?: testScheduler.currentTime 187 coroutineContext.delayController?.advanceUntilIdle() ?: testScheduler.advanceUntilIdle() in advanceUntilIdle() 198 coroutineContext.delayController?.runCurrent() ?: testScheduler.runCurrent() in runCurrent()
|
D | TestBuildersDeprecated.kt | 62 val scheduler = scope.testScheduler in runBlockingTest() 89 scope.testScheduler.advanceUntilIdle() in runBlockingTestOnTestScope() 96 scope.testScheduler.advanceUntilIdleOr { false } in runBlockingTestOnTestScope() 210 override val testScheduler get() = testScope.testScheduler in runTest() constant in kotlinx.coroutines.test.TestBodyCoroutine
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/test/ |
D | TestCoroutineSchedulerTest.kt | 30 testScheduler.advanceTimeBy(15.milliseconds) in <lambda>() 32 testScheduler.runCurrent() in <lambda>() 67 testScheduler.advanceTimeBy(Duration.INFINITE) in <lambda>() 71 testScheduler.runCurrent() in <lambda>() 74 testScheduler.advanceUntilIdle() in <lambda>() 122 testScheduler.advanceTimeBy(1.milliseconds) in <lambda>() 126 testScheduler.advanceTimeBy(1.milliseconds) in <lambda>()
|
D | UnconfinedTestDispatcherTest.kt | 73 val job = launch(UnconfinedTestDispatcher(testScheduler)) { in <lambda>() 121 val job = launch(UnconfinedTestDispatcher(testScheduler)) { in <lambda>()
|
D | RunTestTest.kt | 61 val job = launch(StandardTestDispatcher(testScheduler)) { in <lambda>() 263 val dispatcher = StandardTestDispatcher(testScheduler) in <lambda>()
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/ |
D | MemoryLeakTest.kt | 17 FieldWalker.assertReachableCount(1, testScheduler) { it === leakingObject } in <lambda>() 19 FieldWalker.assertReachableCount(0, testScheduler) { it === leakingObject } in <lambda>()
|
/external/jetpack-camera-app/feature/preview/src/test/java/com/google/jetpackcamera/feature/preview/ |
D | ScreenFlashTest.kt | 45 private val testDispatcher = StandardTestDispatcher(testScope.testScheduler) 66 backgroundScope.launch(UnconfinedTestDispatcher(testScheduler)) { in <lambda>() 115 backgroundScope.launch(UnconfinedTestDispatcher(testScheduler)) { in <lambda>()
|
/external/jetpack-camera-app/core/camera/src/test/java/com/google/jetpackcamera/core/camera/test/ |
D | FakeCameraUseCaseTest.kt | 42 private val testDispatcher = StandardTestDispatcher(testScope.testScheduler) 130 backgroundScope.launch(UnconfinedTestDispatcher(testScheduler)) { in captureScreenFlashImage_screenFlashEventsEmittedInCorrectSequence() 150 backgroundScope.launch(UnconfinedTestDispatcher(testScheduler)) { in TestScope()
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/api/ |
D | kotlinx-coroutines-test.klib.api | 13 abstract val testScheduler // kotlinx.coroutines.test/TestScope.testScheduler|{}testScheduler[0] 14 …testScheduler>(): kotlinx.coroutines.test/TestCoroutineScheduler // kotlinx.coroutines.test/TestSc…
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/ |
D | README.md | 205 val workDuration = testScheduler.timeSource.measureTime { 217 testScheduler.runCurrent() 219 …testScheduler.advanceTimeBy(2.seconds) // progress time, this will cause two calls to `delay` to r… 221 testScheduler.advanceUntilIdle() // will run the child coroutine to completion 234 To access the scheduler used for this test, use the [TestScope.testScheduler] property. 239 val scheduler = testScheduler // the scheduler used for this test 284 Dispatchers.setMain(StandardTestDispatcher(scope.testScheduler)) 367 launch(StandardTestDispatcher(testScheduler)) { 447 [TestScope.testScheduler]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/ko…
|
D | MIGRATION.md | 105 `withContext(StandardTestDispatcher(testScheduler))` 106 (`testScheduler` is available as a field of `TestCoroutineScope`, 119 …a `withContext(StandardTestDispatcher(testScheduler))` block, or try using some other combinations… 221 val job = launch(UnconfinedTestDispatcher(testScheduler)) { // <------ 236 Note that `testScheduler` is passed so that the unconfined dispatcher is linked to `runTest`.
|
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/migration/ |
D | RunTestLegacyScopeTest.kt | 56 val job = launch(StandardTestDispatcher(testScheduler)) { in <lambda>() 143 val dispatcher = StandardTestDispatcher(testScheduler) in <lambda>()
|
D | RunBlockingTestOnTestScopeTest.kt | 46 val dispatcher = StandardTestDispatcher(testScheduler) in <lambda>()
|