Merge change 1120 into donut

* changes:
  Suppress all tests on Windows Media in MediaPlayerApiTest and MediaMetadataTest (Currently not supported by OpenCore 2.0)
This commit is contained in:
Android (Google) Code Review
2009-05-07 09:34:28 -07:00
2 changed files with 13 additions and 3 deletions

View File

@@ -170,21 +170,25 @@ public class MediaMetadataTest extends AndroidTestCase {
validateMetatData(non_mp3_test_file.WAV.ordinal(), MediaNames.META_DATA_OTHERS); validateMetatData(non_mp3_test_file.WAV.ordinal(), MediaNames.META_DATA_OTHERS);
} }
@Suppress
@MediumTest @MediumTest
public static void testWma9_Metadata() throws Exception { public static void testWma9_Metadata() throws Exception {
validateMetatData(non_mp3_test_file.WMA9.ordinal(), MediaNames.META_DATA_OTHERS); validateMetatData(non_mp3_test_file.WMA9.ordinal(), MediaNames.META_DATA_OTHERS);
} }
@Suppress
@MediumTest @MediumTest
public static void testWma10_Metadata() throws Exception { public static void testWma10_Metadata() throws Exception {
validateMetatData(non_mp3_test_file.WMA10.ordinal(), MediaNames.META_DATA_OTHERS); validateMetatData(non_mp3_test_file.WMA10.ordinal(), MediaNames.META_DATA_OTHERS);
} }
@Suppress
@MediumTest @MediumTest
public static void testWmv9_Metadata() throws Exception { public static void testWmv9_Metadata() throws Exception {
validateMetatData(non_mp3_test_file.WMV9.ordinal(), MediaNames.META_DATA_OTHERS); validateMetatData(non_mp3_test_file.WMV9.ordinal(), MediaNames.META_DATA_OTHERS);
} }
@Suppress
@MediumTest @MediumTest
public static void testWmv10_Metadata() throws Exception { public static void testWmv10_Metadata() throws Exception {
validateMetatData(non_mp3_test_file.WMV7.ordinal(), MediaNames.META_DATA_OTHERS); validateMetatData(non_mp3_test_file.WMV7.ordinal(), MediaNames.META_DATA_OTHERS);

View File

@@ -78,6 +78,7 @@ public class MediaPlayerApiTest extends ActivityInstrumentationTestCase<MediaFra
assertTrue("MIDI getDuration", duratoinWithinTolerence); assertTrue("MIDI getDuration", duratoinWithinTolerence);
} }
@Suppress
@MediumTest @MediumTest
public void testWMA9GetDuration() throws Exception { public void testWMA9GetDuration() throws Exception {
int duration = CodecTest.getDuration(MediaNames.WMA9); int duration = CodecTest.getDuration(MediaNames.WMA9);
@@ -119,6 +120,7 @@ public class MediaPlayerApiTest extends ActivityInstrumentationTestCase<MediaFra
assertTrue("MIDI GetCurrentPosition", currentPosition); assertTrue("MIDI GetCurrentPosition", currentPosition);
} }
@Suppress
@LargeTest @LargeTest
public void testWMA9GetCurrentPosition() throws Exception { public void testWMA9GetCurrentPosition() throws Exception {
boolean currentPosition = CodecTest.getCurrentPosition(MediaNames.WMA9); boolean currentPosition = CodecTest.getCurrentPosition(MediaNames.WMA9);
@@ -156,6 +158,7 @@ public class MediaPlayerApiTest extends ActivityInstrumentationTestCase<MediaFra
assertTrue("MIDI Pause", isPaused); assertTrue("MIDI Pause", isPaused);
} }
@Suppress
@LargeTest @LargeTest
public void testWMA9Pause() throws Exception { public void testWMA9Pause() throws Exception {
boolean isPaused = CodecTest.pause(MediaNames.WMA9); boolean isPaused = CodecTest.pause(MediaNames.WMA9);
@@ -227,6 +230,7 @@ public class MediaPlayerApiTest extends ActivityInstrumentationTestCase<MediaFra
assertTrue("MIDI setLooping", isLoop); assertTrue("MIDI setLooping", isLoop);
} }
@Suppress
@LargeTest @LargeTest
public void testWMA9SetLooping() throws Exception { public void testWMA9SetLooping() throws Exception {
boolean isLoop = CodecTest.setLooping(MediaNames.WMA9); boolean isLoop = CodecTest.setLooping(MediaNames.WMA9);
@@ -265,6 +269,7 @@ public class MediaPlayerApiTest extends ActivityInstrumentationTestCase<MediaFra
assertTrue("MIDI seekTo", isLoop); assertTrue("MIDI seekTo", isLoop);
} }
@Suppress
@LargeTest @LargeTest
public void testWMA9SeekTo() throws Exception { public void testWMA9SeekTo() throws Exception {
boolean isLoop = CodecTest.seekTo(MediaNames.WMA9); boolean isLoop = CodecTest.seekTo(MediaNames.WMA9);
@@ -304,6 +309,7 @@ public class MediaPlayerApiTest extends ActivityInstrumentationTestCase<MediaFra
assertTrue("MIDI seekToEnd", isEnd); assertTrue("MIDI seekToEnd", isEnd);
} }
@Suppress
@LargeTest @LargeTest
public void testWMA9SeekToEnd() throws Exception { public void testWMA9SeekToEnd() throws Exception {
boolean isEnd = CodecTest.seekToEnd(MediaNames.WMA9); boolean isEnd = CodecTest.seekToEnd(MediaNames.WMA9);
@@ -380,6 +386,7 @@ public class MediaPlayerApiTest extends ActivityInstrumentationTestCase<MediaFra
assertTrue("H264AMR SeekTo", isSeek); assertTrue("H264AMR SeekTo", isSeek);
} }
@Suppress
@LargeTest @LargeTest
public void testVideoWMVSeekTo() throws Exception { public void testVideoWMVSeekTo() throws Exception {
boolean isSeek = CodecTest.videoSeekTo(MediaNames.VIDEO_WMV); boolean isSeek = CodecTest.videoSeekTo(MediaNames.VIDEO_WMV);
@@ -450,4 +457,3 @@ public class MediaPlayerApiTest extends ActivityInstrumentationTestCase<MediaFra
assertTrue("StreamH264PrepareAsyncCallback", onPrepareSuccess); assertTrue("StreamH264PrepareAsyncCallback", onPrepareSuccess);
} }
} }