Guard AnnotationTest on SK_SUPPORT_PDF
The test uses SkPDF::MakeDocument which is only available with PDF
support enabled.
Change-Id: I7e1732a3d05beb3b73298de9d77b5b014d1508c3
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1011856
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Florin Malita <fmalita@google.com>
diff --git a/tests/AnnotationTest.cpp b/tests/AnnotationTest.cpp
index 4c8413a..5f75d61 100644
--- a/tests/AnnotationTest.cpp
+++ b/tests/AnnotationTest.cpp
@@ -51,6 +51,7 @@
REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0));
}
+#if defined(SK_SUPPORT_PDF)
DEF_TEST(Annotation_PdfLink, reporter) {
REQUIRE_PDF_DOCUMENT(Annotation_PdfLink, reporter);
SkDynamicMemoryWStream outStream;
@@ -88,6 +89,7 @@
REPORTER_ASSERT(reporter,
ContainsString(rawOutput, out->size(), "/example "));
}
+#endif // defined(SK_SUPPORT_PDF)
#if defined(SK_XML)
#include "include/svg/SkSVGCanvas.h"