Index: tests/AnnotationTest.cpp |
diff --git a/tests/AnnotationTest.cpp b/tests/AnnotationTest.cpp |
index a40a5f427b68471876f7e8f5d2d948f8d33e755d..4f904bdc426032f04b8651618b9515a8b1c5a566 100644 |
--- a/tests/AnnotationTest.cpp |
+++ b/tests/AnnotationTest.cpp |
@@ -12,8 +12,6 @@ |
#include "SkStream.h" |
#include "Test.h" |
-#if SK_SUPPORT_PDF |
- |
/** Returns true if data (may contain null characters) contains needle (null |
* terminated). */ |
static bool ContainsString(const char* data, size_t dataSize, const char* needle) { |
@@ -42,6 +40,7 @@ DEF_TEST(Annotation_NoDraw, reporter) { |
} |
DEF_TEST(Annotation_PdfLink, reporter) { |
+ REQUIRE_PDF_DOCUMENT(Annotation_PdfLink, reporter); |
SkDynamicMemoryWStream outStream; |
SkAutoTUnref<SkDocument> doc(SkDocument::CreatePDF(&outStream)); |
SkCanvas* canvas = doc->beginPage(612.0f, 792.0f); |
@@ -60,6 +59,7 @@ DEF_TEST(Annotation_PdfLink, reporter) { |
} |
DEF_TEST(Annotation_NamedDestination, reporter) { |
+ REQUIRE_PDF_DOCUMENT(Annotation_NamedDestination, reporter); |
SkDynamicMemoryWStream outStream; |
SkAutoTUnref<SkDocument> doc(SkDocument::CreatePDF(&outStream)); |
SkCanvas* canvas = doc->beginPage(612.0f, 792.0f); |
@@ -76,4 +76,3 @@ DEF_TEST(Annotation_NamedDestination, reporter) { |
REPORTER_ASSERT(reporter, |
ContainsString(rawOutput, out->size(), "/example ")); |
} |
-#endif // SK_SUPPORT_PDF |