mirror of
https://github.com/androidx/media.git
synced 2025-05-12 01:59:50 +08:00
Remove redundant assertion.
TransformerAndroidTestRunner#run will throw any exception that occurs, so there is no need to assert the result exception is null. PiperOrigin-RevId: 546923823
This commit is contained in:
parent
22b7a7dc39
commit
9b06da8174
@ -15,8 +15,6 @@
|
||||
*/
|
||||
package androidx.media3.transformer;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import android.content.Context;
|
||||
import android.net.Uri;
|
||||
import androidx.media3.common.Effect;
|
||||
@ -61,12 +59,9 @@ public class TransformerWithInAppMuxerEndToEndTest {
|
||||
.setEffects(new Effects(/* audioProcessors= */ ImmutableList.of(), videoEffects))
|
||||
.build();
|
||||
|
||||
ExportTestResult result =
|
||||
new TransformerAndroidTestRunner.Builder(context, transformer)
|
||||
.build()
|
||||
.run(testId, editedMediaItem);
|
||||
|
||||
assertThat(result.exportResult.exportException).isNull();
|
||||
new TransformerAndroidTestRunner.Builder(context, transformer)
|
||||
.build()
|
||||
.run(testId, editedMediaItem);
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -86,11 +81,8 @@ public class TransformerWithInAppMuxerEndToEndTest {
|
||||
/* videoEffects= */ ImmutableList.of()))
|
||||
.build();
|
||||
|
||||
ExportTestResult result =
|
||||
new TransformerAndroidTestRunner.Builder(context, transformer)
|
||||
.build()
|
||||
.run(testId, editedMediaItem);
|
||||
|
||||
assertThat(result.exportResult.exportException).isNull();
|
||||
new TransformerAndroidTestRunner.Builder(context, transformer)
|
||||
.build()
|
||||
.run(testId, editedMediaItem);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user