Brian Salomon 2016-03-25 21:38:09 -04:00
parent fdc88b5aa6
commit 92271fc314
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,9 @@ static bool almost_equal(float a, float b) {
DEF_TEST(ColorSpaceParsePngICCProfile, r) {
SkAutoTDelete<SkStream> stream(resource("color_wheel_with_profile.png"));
REPORTER_ASSERT(r, nullptr != stream);
if (!stream) {
return;
}
SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.release()));
REPORTER_ASSERT(r, nullptr != codec);

View File

@ -17,6 +17,10 @@ static SkStreamAsset* resource(const char path[]) {
DEF_TEST(ExifOrientation, r) {
SkAutoTDelete<SkStream> stream(resource("exif-orientation-2-ur.jpg"));
REPORTER_ASSERT(r, nullptr != stream);
if (!stream) {
return;
}
SkAutoTDelete<SkCodec> codec(SkCodec::NewFromStream(stream.release()));
REPORTER_ASSERT(r, nullptr != codec);
SkCodec::Origin origin = codec->getOrigin();