mirror of
https://github.com/androidx/media.git
synced 2025-05-13 02:29:52 +08:00
Test: Remove assertions from test infra.
PiperOrigin-RevId: 603664759
This commit is contained in:
parent
2b52c2d74f
commit
8b6c8fc480
@ -24,7 +24,6 @@ import static androidx.media3.common.util.Assertions.checkStateNotNull;
|
|||||||
import static androidx.media3.test.utils.BitmapPixelTestUtil.createArgb8888BitmapFromRgba8888Image;
|
import static androidx.media3.test.utils.BitmapPixelTestUtil.createArgb8888BitmapFromRgba8888Image;
|
||||||
import static androidx.media3.test.utils.BitmapPixelTestUtil.maybeSaveTestBitmap;
|
import static androidx.media3.test.utils.BitmapPixelTestUtil.maybeSaveTestBitmap;
|
||||||
import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
|
import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
|
||||||
import static com.google.common.truth.Truth.assertThat;
|
|
||||||
import static java.util.concurrent.TimeUnit.MILLISECONDS;
|
import static java.util.concurrent.TimeUnit.MILLISECONDS;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
@ -463,8 +462,8 @@ public final class VideoFrameProcessorTestRunner {
|
|||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
endFrameProcessingException = e;
|
endFrameProcessingException = e;
|
||||||
}
|
}
|
||||||
assertThat(videoFrameProcessingException.get()).isNull();
|
checkState(videoFrameProcessingException.get() == null);
|
||||||
assertThat(endFrameProcessingException).isNull();
|
checkState(endFrameProcessingException == null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -558,7 +557,7 @@ public final class VideoFrameProcessorTestRunner {
|
|||||||
private void awaitVideoFrameProcessorReady() {
|
private void awaitVideoFrameProcessorReady() {
|
||||||
try {
|
try {
|
||||||
videoFrameProcessorReadyCondition.block();
|
videoFrameProcessorReadyCondition.block();
|
||||||
assertThat(videoFrameProcessingException.get()).isNull();
|
checkState(videoFrameProcessingException.get() == null);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
throw new IllegalStateException(e);
|
throw new IllegalStateException(e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user