diff options
author | shailendra <shailendray@google.com> | 2011-03-18 11:27:09 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-03-18 11:27:09 -0700 |
commit | 0e898b59d8bcd7cf75ffb9cac1b83f00d2754ee4 (patch) | |
tree | a3b5d0f1ccee8d1c85bbc89a8778a1385a9fd512 /media/tests | |
parent | b18a047de574f188b2c7633164f15ab3c9e40b5b (diff) | |
parent | e21bbd24a107c3286e8c6f3eca069ebb12ef13da (diff) | |
download | frameworks_base-0e898b59d8bcd7cf75ffb9cac1b83f00d2754ee4.zip frameworks_base-0e898b59d8bcd7cf75ffb9cac1b83f00d2754ee4.tar.gz frameworks_base-0e898b59d8bcd7cf75ffb9cac1b83f00d2754ee4.tar.bz2 |
am e21bbd24: am a5eaf2ea: am 0d922ec9: Merge "Fix for testThumbnailForInvalidFilePath and testPropertiesForNonExsitingFile failed with HMI75B(4124235)" into honeycomb-mr1
* commit 'e21bbd24a107c3286e8c6f3eca069ebb12ef13da':
Fix for testThumbnailForInvalidFilePath and testPropertiesForNonExsitingFile failed with HMI75B(4124235)
Diffstat (limited to 'media/tests')
2 files changed, 5 insertions, 1 deletions
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaItemThumbnailTest.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaItemThumbnailTest.java index 895ca25..154f691 100755 --- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaItemThumbnailTest.java +++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaItemThumbnailTest.java @@ -585,7 +585,9 @@ public class MediaItemThumbnailTest extends try{ final MediaImageItem mii = new MediaImageItem(mVideoEditor, "m1", imageItemFileName, 3000, renderingMode); - }catch (IllegalArgumentException e){ + } catch (IllegalArgumentException e) { + flagForException = true; + } catch (IOException e) { flagForException = true; } assertTrue(" Invalid File Path", flagForException); 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 3efa5b2..958bbb0 100755 --- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPropertiesTest.java +++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaPropertiesTest.java @@ -513,6 +513,8 @@ public class MediaPropertiesTest extends MediaItem.RENDERING_MODE_BLACK_BORDER); } catch (IllegalArgumentException e) { flagForException = true; + } catch (IOException e) { + flagForException = true; } assertTrue("Media Properties for non exsisting file", flagForException); } |