Index: tests/ColorSpaceTest.cpp |
diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp |
index 8cb1b9a50e7b1557b8778a00b888acb0b2f4ef3b..b26cec20aec254f461417efc6f64c0c14c6591fe 100644 |
--- a/tests/ColorSpaceTest.cpp |
+++ b/tests/ColorSpaceTest.cpp |
@@ -67,10 +67,7 @@ |
} |
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(); |