aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PDFJpegEmbedTest.cpp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2016-12-30 13:09:03 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-03 14:25:12 +0000
commit43fb7a014b785960e5892cadd0bd30c10328ae8a (patch)
tree56e8e92beff152ee7c93761ad9540845c5933c6d /tests/PDFJpegEmbedTest.cpp
parent34194690328b612557f06ecec99b232d41888d4b (diff)
BUILD.gn: skia_enable_pdf
BUG=skia: Change-Id: Icf616bec73e81aad97815b519566ff5b9db611e3 Reviewed-on: https://skia-review.googlesource.com/6495 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tests/PDFJpegEmbedTest.cpp')
-rw-r--r--tests/PDFJpegEmbedTest.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/PDFJpegEmbedTest.cpp b/tests/PDFJpegEmbedTest.cpp
index 17dbac8cfa..100c9b3f11 100644
--- a/tests/PDFJpegEmbedTest.cpp
+++ b/tests/PDFJpegEmbedTest.cpp
@@ -9,7 +9,6 @@
#include "SkData.h"
#include "SkDocument.h"
#include "SkImageGenerator.h"
-#include "SkJpegInfo.h"
#include "SkStream.h"
#include "Resources.h"
@@ -80,6 +79,10 @@ DEF_TEST(SkPDF_JpegEmbedTest, r) {
REPORTER_ASSERT(r, !is_subset_of(cmykData.get(), pdfData.get()));
}
+#ifdef SK_SUPPORT_PDF
+
+#include "SkJpegInfo.h"
+
DEF_TEST(SkPDF_JpegIdentification, r) {
static struct {
const char* path;
@@ -208,3 +211,4 @@ DEF_TEST(SkPDF_JpegIdentification, r) {
REPORTER_ASSERT(r, !SkIsJFIF(data.get(), &info));
}
}
+#endif