Home
last modified time | relevance | path

Searched refs:StandardTestDispatcher (Results 1 – 15 of 15) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/migration/
DTestCoroutineScopeTest.kt33 val dispatcher = StandardTestDispatcher() in <lambda>()
47 val dispatcher = StandardTestDispatcher(scheduler) in <lambda>()
55 val mainDispatcher = StandardTestDispatcher(scheduler) in <lambda>()
67 val mainDispatcher = StandardTestDispatcher() in <lambda>()
214StandardTestDispatcher() + TestCoroutineScheduler(), // the dispatcher is not linked to the schedu… in <lambda>()
DRunTestLegacyScopeTest.kt58 val job = launch(StandardTestDispatcher(testScheduler)) { in <lambda>()
145 val dispatcher = StandardTestDispatcher(testScheduler) in <lambda>()
DRunBlockingTestOnTestScopeTest.kt48 val dispatcher = StandardTestDispatcher(testScheduler) in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/test/
DStandardTestDispatcherTest.kt13 private val scope = TestScope(StandardTestDispatcher()) in <lambda>()
68 val dispatcher1 = StandardTestDispatcher() in <lambda>()
71 val dispatcher2 = StandardTestDispatcher() in <lambda>()
DTestScopeTest.kt35 val dispatcher = StandardTestDispatcher() in <lambda>()
49 val dispatcher = StandardTestDispatcher(scheduler) in <lambda>()
62 val mainDispatcher = StandardTestDispatcher(scheduler) in <lambda>()
74 val mainDispatcher = StandardTestDispatcher() in <lambda>()
554StandardTestDispatcher() + TestCoroutineScheduler(), // the dispatcher is not linked to the schedu… in <lambda>()
DTestCoroutineSchedulerTest.kt18 withContext(StandardTestDispatcher()) { in <lambda>()
331 StandardTestDispatcher(), in forTestDispatchers()
DRunTestTest.kt63 val job = launch(StandardTestDispatcher(testScheduler)) { in <lambda>()
263 val dispatcher = StandardTestDispatcher(testScheduler) in <lambda>()
DTestDispatchersTest.kt15 Dispatchers.setMain(StandardTestDispatcher()) in setUp()
DUnconfinedTestDispatcherTest.kt157 val dispatcher1 = StandardTestDispatcher() in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/
DTestCoroutineDispatchers.kt141 public fun StandardTestDispatcher( in StandardTestDispatcher() method
156 override fun toString(): String = "${name ?: "StandardTestDispatcher"}[scheduler=$scheduler]" in StandardTestDispatcher()
DTestScope.kt201 null -> StandardTestDispatcher(get(TestCoroutineScheduler)) in withDelaySkipping()
/external/kotlinx.coroutines/kotlinx-coroutines-test/
DMIGRATION.md46 * Both a simple `StandardTestDispatcher` that is always paused, and unconfined `UnconfinedTestDispa…
102 ## Replace usages of `pauseDispatcher` and `resumeDispatcher` with a `StandardTestDispatcher`
105 `withContext(StandardTestDispatcher(testScheduler))`
114 or pass a `StandardTestDispatcher` as an argument to `runBlockingTest`.
115 …This will lead to the test using a `StandardTestDispatcher`, which does not allow pausing and resu…
119 …a `withContext(StandardTestDispatcher(testScheduler))` block, or try using some other combinations…
120 …`StandardTestDispatcher` (where dispatches are needed) and `UnconfinedTestDispatcher` (where it is…
145 ### It uses `StandardTestDispatcher` by default, not `TestCoroutineDispatcher`.
170 If the `TestCoroutineDispatcher()` is simply removed, `StandardTestDispatcher()` will be used, whic…
388 ## Replace `TestCoroutineDispatcher` with `UnconfinedTestDispatcher` and `StandardTestDispatcher`
[all …]
DREADME.md21 | [StandardTestDispatcher] | A simple dispatcher with no special behavior other than being linked t…
240 val dispatcher1 = StandardTestDispatcher(scheduler, name = "IO dispatcher")
241 val dispatcher2 = StandardTestDispatcher(scheduler, name = "Background dispatcher")
284 Dispatchers.setMain(StandardTestDispatcher(scope.testScheduler))
355 …utes on the correct thread, then simply `launch` a new coroutine with the [StandardTestDispatcher].
367 launch(StandardTestDispatcher(testScheduler)) {
444 [StandardTestDispatcher]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kot…
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/test/
DMultithreadingTest.kt108 val job = launch(StandardTestDispatcher(scheduler)) { in <lambda>()
/external/kotlinx.coroutines/kotlinx-coroutines-test/api/
Dkotlinx-coroutines-test.api53 …public static final fun StandardTestDispatcher (Lkotlinx/coroutines/test/TestCoroutineScheduler;Lj…
54 …public static synthetic fun StandardTestDispatcher$default (Lkotlinx/coroutines/test/TestCoroutine…