Skip to content

Commit ab499f5

Browse files
committed
test(core): add SRT and RTMP sink in sink test
1 parent 9447f66 commit ab499f5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

core/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ dependencies {
3434
testImplementation(libs.kotlinx.coroutines.test)
3535
testImplementation(libs.robolectric)
3636

37+
androidTestImplementation(project(":streampack-srt"))
38+
androidTestImplementation(project(":streampack-rtmp"))
39+
3740
androidTestImplementation(libs.androidx.test.core.ktx)
3841
androidTestImplementation(libs.androidx.test.rules)
3942
androidTestImplementation(libs.androidx.junit)

core/src/androidTest/java/io/github/thibaultbee/streampack/core/elements/endpoints/composites/sinks/SinkStateTest.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package io.github.thibaultbee.streampack.core.elements.endpoints.composites.sinks
22

33
import androidx.test.platform.app.InstrumentationRegistry
4+
import io.github.thibaultbee.streampack.ext.rtmp.elements.endpoints.composites.sinks.RtmpSink
5+
import io.github.thibaultbee.streampack.ext.srt.elements.endpoints.composites.sinks.SrtSink
46
import kotlinx.coroutines.test.runTest
57
import org.junit.Test
68
import org.junit.runner.RunWith
@@ -28,7 +30,9 @@ class SinkStateTest(private val endpoint: ISinkInternal) {
2830
FileSink(),
2931
ContentSink(context),
3032
ChunkedFileOutputStreamSink(1000),
31-
FakeSink()
33+
FakeSink(),
34+
SrtSink(),
35+
RtmpSink()
3236
)
3337
}
3438
}

0 commit comments

Comments
 (0)