Index: tests/ColorSpaceTest.cpp |
diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp |
index 51d8457fd1edf7a7ba96568a1378ba5a26b19bbb..6dd4789a8e5f9b5da0e1ca87da141a878f59b455 100644 |
--- a/tests/ColorSpaceTest.cpp |
+++ b/tests/ColorSpaceTest.cpp |
@@ -67,10 +67,7 @@ DEF_TEST(ColorSpaceParsePngICCProfile, r) { |
} |
SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.release())); |
- if (!codec) { |
- ERRORF(r, "Failed to create codec from a PNG. Is PNG support missing (or too old)?"); |
- return; |
- } |
+ REPORTER_ASSERT(r, nullptr != codec); |
#if (PNG_LIBPNG_VER_MAJOR > 1) || (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 6) |
SkColorSpace* colorSpace = codec->getColorSpace(); |