summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEarl Ou <shunhsingou@google.com>2012-10-19 23:27:44 +0800
committerEarl Ou <shunhsingou@google.com>2012-11-07 11:22:21 +0800
commitc188a0d5d2a8cfa4237daf4a94adce31f77151e4 (patch)
tree0736019a9ec273c31b2448cf1606b3411c885a29 /tests
parent24bc9e24af37b2d0564a2503e32910b8ff82b96b (diff)
downloadandroid_packages_apps_Snap-c188a0d5d2a8cfa4237daf4a94adce31f77151e4.tar.gz
android_packages_apps_Snap-c188a0d5d2a8cfa4237daf4a94adce31f77151e4.tar.bz2
android_packages_apps_Snap-c188a0d5d2a8cfa4237daf4a94adce31f77151e4.zip
Handle invalid offset value in ExifParser
Change-Id: I6d4a0edec361f8359535761d7f12ab9363ff1ad1
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/gallery3d/exif/ExifOutputStreamTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/gallery3d/exif/ExifOutputStreamTest.java b/tests/src/com/android/gallery3d/exif/ExifOutputStreamTest.java
index 51375e139..52ae9f3bb 100644
--- a/tests/src/com/android/gallery3d/exif/ExifOutputStreamTest.java
+++ b/tests/src/com/android/gallery3d/exif/ExifOutputStreamTest.java
@@ -63,12 +63,12 @@ public class ExifOutputStreamTest extends ExifXmlDataTestCase {
// Re-decode the temp file and check the data.
reDecodeInputStream = new FileInputStream(file);
Bitmap decodedBmp = BitmapFactory.decodeStream(reDecodeInputStream);
- assertNotNull(decodedBmp);
+ assertNotNull(getImageTitle(), decodedBmp);
// Re-parse the temp file the check EXIF tag
reParseInputStream = new FileInputStream(file);
ExifData reExifData = new ExifReader().read(reParseInputStream);
- assertEquals(exifData, reExifData);
+ assertEquals(getImageTitle(), exifData, reExifData);
} finally {
Util.closeSilently(imageInputStream);
Util.closeSilently(exifInputStream);