Disable RAW test when SkRawCodec is not compiled
authormsarett <msarett@google.com>
Mon, 25 Jan 2016 21:10:58 +0000 (13:10 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 25 Jan 2016 21:10:58 +0000 (13:10 -0800)
TBR=scroggo@google.com

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1639533002

Review URL: https://codereview.chromium.org/1639533002

tests/CodexTest.cpp

index 11d02cd..b6b5d82 100644 (file)
@@ -649,7 +649,9 @@ DEF_TEST(Codec_Dimensions, r) {
     test_dimensions(r, "mandrill_16.png");
 
     // RAW
+#if defined(SK_CODEC_DECODES_RAW)
     test_dimensions(r, "sample_1mp.dng");
+#endif
 }
 
 static void test_invalid(skiatest::Reporter* r, const char path[]) {