aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-08 16:24:05 +0000
committerGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-08 16:24:05 +0000
commit2a9a8bec45fa397df1d0ff17e5e5ed79ab9edc3d (patch)
treea685425c5441f1fc5ad2eae61020e8babc589e46 /tests
parent0a117be3919becebcaa0338040af2c5ec03f6752 (diff)
fix BitmapHasher unittest failure as of r9064
git-svn-id: http://skia.googlecode.com/svn/trunk@9066 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r--tests/BitmapHasherTest.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/BitmapHasherTest.cpp b/tests/BitmapHasherTest.cpp
index 2823698a33..f7b297d3af 100644
--- a/tests/BitmapHasherTest.cpp
+++ b/tests/BitmapHasherTest.cpp
@@ -42,35 +42,19 @@ namespace skiatest {
// initial test case
CreateTestBitmap(bitmap, SkBitmap::kARGB_8888_Config, 333, 555, SK_ColorBLUE);
REPORTER_ASSERT(fReporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
-#ifdef BITMAPHASHER_USES_TRUNCATED_MD5
REPORTER_ASSERT(fReporter, digest == 0xfb2903562766ef87ULL);
-#else
- REPORTER_ASSERT(fReporter, digest == 0x18f9df68b1b02f38ULL);
-#endif
// same pixel data but different dimensions should yield a different checksum
CreateTestBitmap(bitmap, SkBitmap::kARGB_8888_Config, 555, 333, SK_ColorBLUE);
REPORTER_ASSERT(fReporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
-#ifdef BITMAPHASHER_USES_TRUNCATED_MD5
REPORTER_ASSERT(fReporter, digest == 0xfe04023fb97d0f61ULL);
-#else
- REPORTER_ASSERT(fReporter, digest == 0x6b0298183f786c8eULL);
-#endif
// same dimensions but different color should yield a different checksum
CreateTestBitmap(bitmap, SkBitmap::kARGB_8888_Config, 555, 333, SK_ColorGREEN);
REPORTER_ASSERT(fReporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
-#ifdef BITMAPHASHER_USES_TRUNCATED_MD5
REPORTER_ASSERT(fReporter, digest == 0x2423c51cad6d1edcULL);
-#else
- REPORTER_ASSERT(fReporter, digest == 0xc6b4b3f6fadaaf37ULL);
-#endif
// same pixel colors in a different config should yield the same checksum
CreateTestBitmap(bitmap, SkBitmap::kARGB_4444_Config, 555, 333, SK_ColorGREEN);
REPORTER_ASSERT(fReporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
-#ifdef BITMAPHASHER_USES_TRUNCATED_MD5
REPORTER_ASSERT(fReporter, digest == 0x2423c51cad6d1edcULL);
-#else
- REPORTER_ASSERT(fReporter, digest == 0xc6b4b3f6fadaaf37ULL);
-#endif
}
Reporter* fReporter;