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

Unified Diff: tests/PDFOpaqueSrcModeToSrcOverTest.cpp

Issue 1278403006: SkPDF: clean up overuse of SK_SUPPORT_PDF (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-11 (Tuesday) 16:25:36 EDT Created 5 years, 4 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/PDFJpegEmbedTest.cpp ('k') | tests/PDFPrimitivesTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PDFOpaqueSrcModeToSrcOverTest.cpp
diff --git a/tests/skpdf_opaquesrcmodetosrcover.cpp b/tests/PDFOpaqueSrcModeToSrcOverTest.cpp
similarity index 96%
rename from tests/skpdf_opaquesrcmodetosrcover.cpp
rename to tests/PDFOpaqueSrcModeToSrcOverTest.cpp
index 8c7fc75162b83e69c23e627a7e530c9f207f9f9d..156856c0daa5d0ed43458a6440c79417bd4cf826 100644
--- a/tests/skpdf_opaquesrcmodetosrcover.cpp
+++ b/tests/PDFOpaqueSrcModeToSrcOverTest.cpp
@@ -9,8 +9,6 @@
#include "SkStream.h"
#include "Test.h"
-#if SK_SUPPORT_PDF
-
static void run_test(SkWStream* out, SkXfermode::Mode mode, U8CPU alpha) {
SkAutoTUnref<SkDocument> pdfDoc(SkDocument::CreatePDF(out));
SkCanvas* c = pdfDoc->beginPage(612.0f, 792.0f);
@@ -28,6 +26,7 @@ static void run_test(SkWStream* out, SkXfermode::Mode mode, U8CPU alpha) {
// http://crbug.com/473572
DEF_TEST(SkPDF_OpaqueSrcModeToSrcOver, r) {
+ REQUIRE_PDF_DOCUMENT(SkPDF_OpaqueSrcModeToSrcOver, r);
SkDynamicMemoryWStream srcMode;
SkDynamicMemoryWStream srcOverMode;
@@ -46,4 +45,3 @@ DEF_TEST(SkPDF_OpaqueSrcModeToSrcOver, r) {
REPORTER_ASSERT(r, srcMode.getOffset() > srcOverMode.getOffset());
// The two PDFs should not be equal because they have a non-opaque alpha.
}
-#endif // SK_SUPPORT_PDF
« no previous file with comments | « tests/PDFJpegEmbedTest.cpp ('k') | tests/PDFPrimitivesTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698