mirror of
https://github.com/androidx/media.git
synced 2025-05-14 02:59:52 +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;
|
package androidx.media3.transformer;
|
||||||
|
|
||||||
import static com.google.common.truth.Truth.assertThat;
|
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import androidx.media3.common.Effect;
|
import androidx.media3.common.Effect;
|
||||||
@ -61,12 +59,9 @@ public class TransformerWithInAppMuxerEndToEndTest {
|
|||||||
.setEffects(new Effects(/* audioProcessors= */ ImmutableList.of(), videoEffects))
|
.setEffects(new Effects(/* audioProcessors= */ ImmutableList.of(), videoEffects))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
ExportTestResult result =
|
|
||||||
new TransformerAndroidTestRunner.Builder(context, transformer)
|
new TransformerAndroidTestRunner.Builder(context, transformer)
|
||||||
.build()
|
.build()
|
||||||
.run(testId, editedMediaItem);
|
.run(testId, editedMediaItem);
|
||||||
|
|
||||||
assertThat(result.exportResult.exportException).isNull();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -86,11 +81,8 @@ public class TransformerWithInAppMuxerEndToEndTest {
|
|||||||
/* videoEffects= */ ImmutableList.of()))
|
/* videoEffects= */ ImmutableList.of()))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
ExportTestResult result =
|
|
||||||
new TransformerAndroidTestRunner.Builder(context, transformer)
|
new TransformerAndroidTestRunner.Builder(context, transformer)
|
||||||
.build()
|
.build()
|
||||||
.run(testId, editedMediaItem);
|
.run(testId, editedMediaItem);
|
||||||
|
|
||||||
assertThat(result.exportResult.exportException).isNull();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user