Home
last modified time | relevance | path

Searched refs:TestMainDispatcher (Results 1 – 7 of 7) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-test/js/src/internal/
DTestMainDispatcher.kt9 internal actual fun Dispatchers.getTestMainDispatcher(): TestMainDispatcher = in getTestMainDispatcher()
11 is TestMainDispatcher -> mainDispatcher in getTestMainDispatcher()
12 else -> TestMainDispatcher(mainDispatcher).also { injectMain(it) } in getTestMainDispatcher()
/external/kotlinx.coroutines/kotlinx-coroutines-test/native/src/internal/
DTestMainDispatcher.kt9 internal actual fun Dispatchers.getTestMainDispatcher(): TestMainDispatcher = in getTestMainDispatcher()
11 is TestMainDispatcher -> mainDispatcher in getTestMainDispatcher()
12 else -> TestMainDispatcher(mainDispatcher).also { injectMain(it) } in getTestMainDispatcher()
/external/kotlinx.coroutines/kotlinx-coroutines-test/jvm/src/internal/
DTestMainDispatcherJvm.kt16 return TestMainDispatcher(dispatcher) in createDispatcher()
27 internal actual fun Dispatchers.getTestMainDispatcher(): TestMainDispatcher { in getTestMainDispatcher()
29 …require(mainDispatcher is TestMainDispatcher) { "TestMainDispatcher is not set as main dispatcher,… in getTestMainDispatcher()
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/
DTestCoroutineDispatchers.kt10 import kotlinx.coroutines.test.internal.TestMainDispatcher
87 scheduler ?: TestMainDispatcher.currentTestScheduler ?: TestCoroutineScheduler(), name) in UnconfinedTestDispatcher()
146 scheduler ?: TestMainDispatcher.currentTestScheduler ?: TestCoroutineScheduler(), name) in StandardTestDispatcher()
DTestDispatchers.kt23 …require(dispatcher !is TestMainDispatcher) { "Dispatchers.setMain(Dispatchers.Main) is prohibited,… in setMain()
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/src/internal/
DTestMainDispatcher.kt16 internal class TestMainDispatcher(delegate: CoroutineDispatcher): class
51 get() = (Dispatchers.Main as? TestMainDispatcher)?.delegate?.value as? TestDispatcher in scheduleResumeAfterDelay()
96 internal expect fun Dispatchers.getTestMainDispatcher(): TestMainDispatcher
/external/kotlinx.coroutines/kotlinx-coroutines-test/common/test/
DTestDispatchersTest.kt27 val mainAtStart = TestMainDispatcher.currentTestDispatcher in <lambda>()
38 assertSame(mainAtStart, TestMainDispatcher.currentTestDispatcher) in <lambda>()