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 |