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

Unified Diff: tests/Test.h

Issue 1916093002: SkDocument/PDF: new API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-04-26 (Tuesday) 15:55:33 EDT Created 4 years, 8 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/PDFPrimitivesTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/Test.h
diff --git a/tests/Test.h b/tests/Test.h
index 90a0139f56d6b060e685f745cc75246c87b2f3a8..2a1e20fff2b5ac374a34161103ecc8d832100198 100644
--- a/tests/Test.h
+++ b/tests/Test.h
@@ -182,14 +182,14 @@ private:
#define DEF_GPUTEST_FOR_VULKAN_CONTEXT(name, reporter, context_info) \
DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsVulkanContextType, reporter, context_info)
-#define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER) \
- do { \
- SkDynamicMemoryWStream testStream; \
- SkAutoTUnref<SkDocument> testDoc(SkDocument::CreatePDF(&testStream)); \
- if (!testDoc) { \
- INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \
- return; \
- } \
+#define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER) \
+ do { \
+ SkDynamicMemoryWStream testStream; \
+ sk_sp<SkDocument> testDoc(SkDocument::MakePDF(&testStream)); \
+ if (!testDoc) { \
+ INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \
+ return; \
+ } \
} while (false)
#endif
« no previous file with comments | « tests/PDFPrimitivesTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698