Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Unified Diff: tests/IndexedPngOverflowTest.cpp

Issue 1757333002: Fix bug in SkGifCodec / Switch SkImageDec tests to use Codec (Closed) Base URL: https://skia.googlesource.com/skia.git@m50
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/GifTest.cpp ('k') | tests/InvalidIndexedPngTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/IndexedPngOverflowTest.cpp
diff --git a/tests/IndexedPngOverflowTest.cpp b/tests/IndexedPngOverflowTest.cpp
index 78f8d94b1a41ac5b6c99f2d8616045e56a85cc7c..f516898a1a5ea706fc12afdbb95868b1caf54e4c 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)));
« no previous file with comments | « tests/GifTest.cpp ('k') | tests/InvalidIndexedPngTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698