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

Unified Diff: tests/PDFDocumentTest.cpp

Issue 1278403006: SkPDF: clean up overuse of SK_SUPPORT_PDF (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-11 (Tuesday) 16:25:36 EDT Created 5 years, 4 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/PDFDeflateWStreamTest.cpp ('k') | tests/PDFFlateTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PDFDocumentTest.cpp
diff --git a/tests/DocumentTest.cpp b/tests/PDFDocumentTest.cpp
similarity index 98%
rename from tests/DocumentTest.cpp
rename to tests/PDFDocumentTest.cpp
index 5bd6ba6a0367200cc9782bf6fdd565e4c5174485..f9fcdff6a2b8d1e906cd59c6c6482351539c4a41 100644
--- a/tests/DocumentTest.cpp
+++ b/tests/PDFDocumentTest.cpp
@@ -10,7 +10,6 @@
#include "SkDocument.h"
#include "SkOSFile.h"
#include "SkStream.h"
-#if SK_SUPPORT_PDF
static void test_empty(skiatest::Reporter* reporter) {
SkDynamicMemoryWStream stream;
@@ -104,10 +103,10 @@ static void test_close(skiatest::Reporter* reporter) {
}
DEF_TEST(document_tests, reporter) {
+ REQUIRE_PDF_DOCUMENT(document_tests, reporter);
test_empty(reporter);
test_abort(reporter);
test_abortWithFile(reporter);
test_file(reporter);
test_close(reporter);
}
-#endif // SK_SUPPORT_PDF
« no previous file with comments | « tests/PDFDeflateWStreamTest.cpp ('k') | tests/PDFFlateTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698