mirror of
https://github.com/androidx/media.git
synced 2025-05-12 10:09:55 +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.maybeSaveTestBitmap;
|
||||
import static androidx.test.core.app.ApplicationProvider.getApplicationContext;
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static java.util.concurrent.TimeUnit.MILLISECONDS;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
@ -463,8 +462,8 @@ public final class VideoFrameProcessorTestRunner {
|
||||
Thread.currentThread().interrupt();
|
||||
endFrameProcessingException = e;
|
||||
}
|
||||
assertThat(videoFrameProcessingException.get()).isNull();
|
||||
assertThat(endFrameProcessingException).isNull();
|
||||
checkState(videoFrameProcessingException.get() == null);
|
||||
checkState(endFrameProcessingException == null);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -558,7 +557,7 @@ public final class VideoFrameProcessorTestRunner {
|
||||
private void awaitVideoFrameProcessorReady() {
|
||||
try {
|
||||
videoFrameProcessorReadyCondition.block();
|
||||
assertThat(videoFrameProcessingException.get()).isNull();
|
||||
checkState(videoFrameProcessingException.get() == null);
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
throw new IllegalStateException(e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user