aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/IndexedPngOverflowTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/IndexedPngOverflowTest.cpp')
-rw-r--r--tests/IndexedPngOverflowTest.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/IndexedPngOverflowTest.cpp b/tests/IndexedPngOverflowTest.cpp
index 78f8d94b1a..f516898a1a 100644
--- a/tests/IndexedPngOverflowTest.cpp
+++ b/tests/IndexedPngOverflowTest.cpp
@@ -5,10 +5,9 @@
* found in the LICENSE file.
*/
+#include "CodecPriv.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
-#include "SkForceLinking.h"
-#include "SkImageDecoder.h"
#include "SkImageInfo.h"
#include "SkSurface.h"
#include "Test.h"
@@ -31,10 +30,7 @@ unsigned char gPng[] = {
DEF_TEST(IndexedPngOverflow, reporter) {
SkBitmap image;
- SkForceLinking(false);
- bool success = SkImageDecoder::DecodeMemory(
- gPng, sizeof(gPng), &image, SkColorType::kUnknown_SkColorType,
- SkImageDecoder::kDecodePixels_Mode);
+ bool success = decode_memory(gPng, sizeof(gPng), &image);
REPORTER_ASSERT(reporter, success);
SkAutoTUnref<SkSurface> surface(SkSurface::NewRaster(SkImageInfo::MakeN32Premul(20, 1)));