Skip to content

Commit

Permalink
test: remove video tests from api level 23 below due to error in came…
Browse files Browse the repository at this point in the history
…rax video encoding thread
  • Loading branch information
ujizin committed Dec 10, 2023
1 parent 4b362be commit 3032660
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.ujizin.camposer

import android.content.Context
import android.net.Uri
import android.os.Build
import androidx.camera.core.ImageProxy
import androidx.compose.ui.test.junit4.ComposeContentTestRule
import androidx.test.ext.junit.runners.AndroidJUnit4
Expand Down Expand Up @@ -48,6 +49,9 @@ internal class CaptureModeTest : CameraTest() {

@Test
fun test_videoCaptureMode() = with(composeTestRule) {
// No support for API Level 23 below
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) return

initCaptureModeCamera(CaptureMode.Video)

runOnIdle {
Expand All @@ -73,6 +77,9 @@ internal class CaptureModeTest : CameraTest() {

@Test
fun test_videoCaptureModeWithAnalysis() = with(composeTestRule) {
// No support for API Level 23 below
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) return

var isAnalyzeCalled = false
initCaptureModeCamera(CaptureMode.Video) {
isAnalyzeCalled = true
Expand Down

0 comments on commit 3032660

Please sign in to comment.