Chromium Code Reviews| Index: tests/InvalidIndexedPngTest.cpp |
| diff --git a/tests/InvalidIndexedPngTest.cpp b/tests/InvalidIndexedPngTest.cpp |
| index 7ae99fd03cee83e38d7ebe87cf745ce5eacd2248..14775adf8cc6a9200950b949ae634464c7b0f3e4 100644 |
| --- a/tests/InvalidIndexedPngTest.cpp |
| +++ b/tests/InvalidIndexedPngTest.cpp |
| @@ -5,9 +5,10 @@ |
| * found in the LICENSE file. |
| */ |
| +#include "CodecPriv.h" |
| #include "SkBitmap.h" |
| -#include "SkForceLinking.h" |
| -#include "SkImageDecoder.h" |
| +#include "SkCodec.h" |
| +#include "SkData.h" |
|
scroggo
2016/03/01 14:51:54
Why'd you need to include SkData?
msarett
2016/03/01 16:24:28
After refactoring, I don't think I need either of
|
| #include "Test.h" |
| // A valid 1x1 indexed PNG. |
| @@ -30,9 +31,8 @@ unsigned char gPngData[] = { |
| // As a result, we do not have any REPORTER_ASSERT statements |
| DEF_TEST(InvalidIndexedPng, reporter) { |
| SkBitmap image; |
| - SkForceLinking(false); |
| // Make our PNG invalid by changing a byte. |
| gPngData[sizeof(gPngData) - 1] = 1; |
| - SkImageDecoder::DecodeMemory(gPngData, sizeof(gPngData), &image); |
| + decode_memory(gPngData, sizeof(gPngData), &image); |
| } |