summaryrefslogtreecommitdiffstats
path: root/media/tests
diff options
context:
space:
mode:
authorshailendra <shailendray@google.com>2011-03-22 11:54:44 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-22 11:54:44 -0700
commit35c654c3f587af787ddac276f69a2883e8bf1aca (patch)
tree823616f0e6f4af6f4cefb6532fbb295f0652edc1 /media/tests
parent66044c17924f56ee838e1b4262e1f64f7723aac2 (diff)
parent8e0f2d71a1d2353228ba04562c8189f4904a11d1 (diff)
downloadframeworks_base-35c654c3f587af787ddac276f69a2883e8bf1aca.zip
frameworks_base-35c654c3f587af787ddac276f69a2883e8bf1aca.tar.gz
frameworks_base-35c654c3f587af787ddac276f69a2883e8bf1aca.tar.bz2
am 8e0f2d71: am b819dcd4: am 8483073e: Merge "Fix for testPropertiesWMVFile case failed with build HMI75B(4128259)" into honeycomb-mr1
* commit '8e0f2d71a1d2353228ba04562c8189f4904a11d1': Fix for testPropertiesWMVFile case failed with build HMI75B(4128259)
Diffstat (limited to 'media/tests')
-rwxr-xr-xmedia/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPropertiesTest.java15
1 files changed, 11 insertions, 4 deletions
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPropertiesTest.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPropertiesTest.java
index 958bbb0..59783e5 100755
--- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPropertiesTest.java
+++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPropertiesTest.java
@@ -30,6 +30,7 @@ import android.test.ActivityInstrumentationTestCase;
import android.test.suitebuilder.annotation.LargeTest;
import com.android.mediaframeworktest.MediaFrameworkTest;
import com.android.mediaframeworktest.VideoEditorHelper;
+import com.android.mediaframeworktest.MediaProfileReader;
public class MediaPropertiesTest extends
ActivityInstrumentationTestCase<MediaFrameworkTest> {
@@ -465,11 +466,17 @@ public class MediaPropertiesTest extends
final String videoItemFilename = INPUT_FILE_PATH +
"WMV_V7_640x480_15fps_512Kbps_wma_V9_44khz_48Kbps_s_1_30.wmv";
boolean flagForException = false;
- try {
- new MediaVideoItem(mVideoEditor, "m1", videoItemFilename,
- MediaItem.RENDERING_MODE_BLACK_BORDER);
- } catch (IllegalArgumentException e) {
+ if (MediaProfileReader.getWMVEnable() == false) {
flagForException = true;
+ } else {
+ try {
+ new MediaVideoItem(mVideoEditor, "m1", videoItemFilename,
+ MediaItem.RENDERING_MODE_BLACK_BORDER);
+ } catch (IllegalArgumentException e) {
+ flagForException = true;
+ } catch (IOException e) {
+ flagForException = true;
+ }
}
assertTrue("Media Properties for a WMV File -- Unsupported file type",
flagForException);