Exercise explicit video startup after host tests adopt resource ownership
This commit is contained in:
1 parent
2320aa4f71
commit
682ed68d2f
2 files changed
+2
-1
No files matched your search
+1
@@ -41,6 +41,7 @@ class CallVideoEngineLifecycleTest {
|
||||
thread(engine).uncaughtExceptionHandler = Thread.UncaughtExceptionHandler { _, error ->
|
||||
uncaught.add(error); LogManager.addLog("ERROR", "VideoEngineTest", "uncaught worker error: $error")
|
||||
}
|
||||
engine.start()
|
||||
await("video capabilities ready") { engine.state.value.ready }
|
||||
}
|
||||
private fun capture(): CallVideoEngine {
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ class CallVideoPlayerLifecycleTest {
|
||||
}
|
||||
|
||||
private fun player(callback: (String) -> Unit = { failures.add(it) }) = CallVideoPlayer(7, callback).also {
|
||||
players.add(it); it.decoders(mapOf(1 to CallVideoCodec.Companion.Decoder()))
|
||||
players.add(it); it.decoders(mapOf(1 to CallVideoCodec.Companion.Decoder())); it.start()
|
||||
}
|
||||
private fun surface() = Surface().also { surfaces.add(it) }
|
||||
private fun await(message: String, condition: () -> Boolean) {
|
||||
|
||||
Reference in new issue
Block a user