mirror of
https://github.com/androidx/media.git
synced 2025-05-15 11:39:56 +08:00
Test: Use correct test skipping in muxer androidTest.
PiperOrigin-RevId: 549601882
This commit is contained in:
parent
3d0d5f5c95
commit
9128293236
@ -16,6 +16,7 @@
|
|||||||
package androidx.media3.transformer;
|
package androidx.media3.transformer;
|
||||||
|
|
||||||
import static androidx.media3.transformer.AndroidTestUtil.MP4_ASSET_FORMAT;
|
import static androidx.media3.transformer.AndroidTestUtil.MP4_ASSET_FORMAT;
|
||||||
|
import static androidx.media3.transformer.AndroidTestUtil.MP4_ASSET_URI_STRING;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
@ -52,7 +53,9 @@ public class TransformerWithInAppMuxerEndToEndTest {
|
|||||||
@Test
|
@Test
|
||||||
public void videoEditing_completesSuccessfully() throws Exception {
|
public void videoEditing_completesSuccessfully() throws Exception {
|
||||||
String testId = "videoEditing_completesSuccessfully";
|
String testId = "videoEditing_completesSuccessfully";
|
||||||
// TODO ME This is an incorrect format used just to avoid needing to figure out the skip format
|
// Use MP4_ASSET_FORMAT for H265_MP4_ASSET_URI_STRING test skipping as well, because emulators
|
||||||
|
// signal a lack of support for H265_MP4's actual format, but pass this test when using
|
||||||
|
// MP4_ASSET_FORMAT for skipping.
|
||||||
if (AndroidTestUtil.skipAndLogIfFormatsUnsupported(
|
if (AndroidTestUtil.skipAndLogIfFormatsUnsupported(
|
||||||
context,
|
context,
|
||||||
testId,
|
testId,
|
||||||
@ -77,7 +80,6 @@ public class TransformerWithInAppMuxerEndToEndTest {
|
|||||||
@Test
|
@Test
|
||||||
public void audioEditing_completesSuccessfully() throws Exception {
|
public void audioEditing_completesSuccessfully() throws Exception {
|
||||||
String testId = "audioEditing_completesSuccessfully";
|
String testId = "audioEditing_completesSuccessfully";
|
||||||
// TODO ME This is an incorrect format used just to avoid needing to figure out the skip format
|
|
||||||
if (AndroidTestUtil.skipAndLogIfFormatsUnsupported(
|
if (AndroidTestUtil.skipAndLogIfFormatsUnsupported(
|
||||||
context,
|
context,
|
||||||
testId,
|
testId,
|
||||||
@ -90,7 +92,7 @@ public class TransformerWithInAppMuxerEndToEndTest {
|
|||||||
ChannelMixingAudioProcessor channelMixingAudioProcessor = new ChannelMixingAudioProcessor();
|
ChannelMixingAudioProcessor channelMixingAudioProcessor = new ChannelMixingAudioProcessor();
|
||||||
channelMixingAudioProcessor.putChannelMixingMatrix(
|
channelMixingAudioProcessor.putChannelMixingMatrix(
|
||||||
ChannelMixingMatrix.create(/* inputChannelCount= */ 1, /* outputChannelCount= */ 2));
|
ChannelMixingMatrix.create(/* inputChannelCount= */ 1, /* outputChannelCount= */ 2));
|
||||||
MediaItem mediaItem = MediaItem.fromUri(Uri.parse(MP4_FILE_ASSET_DIRECTORY + H264_MP4));
|
MediaItem mediaItem = MediaItem.fromUri(Uri.parse(MP4_ASSET_URI_STRING));
|
||||||
EditedMediaItem editedMediaItem =
|
EditedMediaItem editedMediaItem =
|
||||||
new EditedMediaItem.Builder(mediaItem)
|
new EditedMediaItem.Builder(mediaItem)
|
||||||
.setEffects(
|
.setEffects(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user