Index: tests/CodexTest.cpp |
diff --git a/tests/CodexTest.cpp b/tests/CodexTest.cpp |
index b6b5d8276d536d48bc9d5f8ea3a47334ffc73d62..1f6b7ac4c13fe068be168b8f51f1fc595228f201 100644 |
--- a/tests/CodexTest.cpp |
+++ b/tests/CodexTest.cpp |
@@ -130,9 +130,9 @@ static void test_codec(skiatest::Reporter* r, SkCodec* codec, SkBitmap& bm, cons |
// Check alpha type conversions |
if (info.alphaType() == kOpaque_SkAlphaType) { |
test_info(r, codec, info.makeAlphaType(kUnpremul_SkAlphaType), |
- SkCodec::kInvalidConversion, nullptr); |
+ expectedResult, digest); |
test_info(r, codec, info.makeAlphaType(kPremul_SkAlphaType), |
- SkCodec::kInvalidConversion, nullptr); |
+ expectedResult, digest); |
} else { |
// Decoding to opaque should fail |
test_info(r, codec, info.makeAlphaType(kOpaque_SkAlphaType), |
@@ -183,9 +183,9 @@ static void test_android_codec(skiatest::Reporter* r, SkAndroidCodec* codec, SkB |
// Check alpha type conversions |
if (info.alphaType() == kOpaque_SkAlphaType) { |
test_android_info(r, codec, info.makeAlphaType(kUnpremul_SkAlphaType), |
- SkCodec::kInvalidConversion, nullptr); |
+ expectedResult, digest); |
test_android_info(r, codec, info.makeAlphaType(kPremul_SkAlphaType), |
- SkCodec::kInvalidConversion, nullptr); |
+ expectedResult, digest); |
} else { |
// Decoding to opaque should fail |
test_android_info(r, codec, info.makeAlphaType(kOpaque_SkAlphaType), |