summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-15 23:51:28 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-15 23:51:28 +0000
commit1929d6e1d44ed9bd692c930d5cf79fb2bd80f1e6 (patch)
treeeb99fda121d93741b79d65cf22bf90100093d90a /core
parenta996ff444d4bf57a78d59dde59b280ca0542962a (diff)
downloadpdfium-1929d6e1d44ed9bd692c930d5cf79fb2bd80f1e6.tar.xz
Split pdfium_embeddertests sources.chromium/3582
Move foo_embeddertest.cpp to the same BUILD.gn file as foo.cpp. Set up dependencies to make pdfium_embeddertests pass gn check. Change-Id: If1fe67c261960c35c344c1047950cd7fdb32c4a1 Reviewed-on: https://pdfium-review.googlesource.com/c/43997 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/fpdfapi/edit/BUILD.gn7
-rw-r--r--core/fpdfapi/page/BUILD.gn9
-rw-r--r--core/fpdfapi/parser/BUILD.gn12
-rw-r--r--core/fpdfapi/render/BUILD.gn9
-rw-r--r--core/fxcodec/BUILD.gn7
-rw-r--r--core/fxge/BUILD.gn17
6 files changed, 61 insertions, 0 deletions
diff --git a/core/fpdfapi/edit/BUILD.gn b/core/fpdfapi/edit/BUILD.gn
index 6c88522590..ff127a9a7e 100644
--- a/core/fpdfapi/edit/BUILD.gn
+++ b/core/fpdfapi/edit/BUILD.gn
@@ -46,3 +46,10 @@ pdfium_unittest_source_set("unittests") {
]
pdfium_root_dir = "../../../"
}
+
+pdfium_embeddertest_source_set("embeddertests") {
+ sources = [
+ "cpdf_creator_embeddertest.cpp",
+ ]
+ pdfium_root_dir = "../../../"
+}
diff --git a/core/fpdfapi/page/BUILD.gn b/core/fpdfapi/page/BUILD.gn
index 9c57fce67a..7855dc12e9 100644
--- a/core/fpdfapi/page/BUILD.gn
+++ b/core/fpdfapi/page/BUILD.gn
@@ -126,3 +126,12 @@ pdfium_unittest_source_set("unittests") {
]
pdfium_root_dir = "../../../"
}
+
+pdfium_embeddertest_source_set("embeddertests") {
+ sources = [
+ "cpdf_docpagedata_embeddertest.cpp",
+ "cpdf_function_embeddertest.cpp",
+ "cpdf_stitchfunc_embeddertest.cpp",
+ ]
+ pdfium_root_dir = "../../../"
+}
diff --git a/core/fpdfapi/parser/BUILD.gn b/core/fpdfapi/parser/BUILD.gn
index 52de29dfc9..45035b3d0e 100644
--- a/core/fpdfapi/parser/BUILD.gn
+++ b/core/fpdfapi/parser/BUILD.gn
@@ -115,3 +115,15 @@ pdfium_unittest_source_set("unittests") {
cflags = [ "-Wno-inconsistent-missing-override" ]
}
}
+
+pdfium_embeddertest_source_set("embeddertests") {
+ sources = [
+ "cpdf_parser_embeddertest.cpp",
+ "cpdf_security_handler_embeddertest.cpp",
+ "fpdf_parser_decode_embeddertest.cpp",
+ ]
+ deps = [
+ ":parser",
+ ]
+ pdfium_root_dir = "../../../"
+}
diff --git a/core/fpdfapi/render/BUILD.gn b/core/fpdfapi/render/BUILD.gn
index 042f04d179..1166907755 100644
--- a/core/fpdfapi/render/BUILD.gn
+++ b/core/fpdfapi/render/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/jumbo.gni")
import("../../../pdfium.gni")
+import("../../../testing/test.gni")
jumbo_source_set("render") {
sources = [
@@ -61,3 +62,11 @@ jumbo_source_set("render") {
]
visibility = [ "../../../*" ]
}
+
+pdfium_embeddertest_source_set("embeddertests") {
+ sources = [
+ "fpdf_render_loadimage_embeddertest.cpp",
+ "fpdf_render_pattern_embeddertest.cpp",
+ ]
+ pdfium_root_dir = "../../../"
+}
diff --git a/core/fxcodec/BUILD.gn b/core/fxcodec/BUILD.gn
index 1c68956711..e09b7a61cd 100644
--- a/core/fxcodec/BUILD.gn
+++ b/core/fxcodec/BUILD.gn
@@ -147,3 +147,10 @@ pdfium_unittest_source_set("unittests") {
]
}
}
+
+pdfium_embeddertest_source_set("embeddertests") {
+ sources = [
+ "codec/fx_codec_embeddertest.cpp",
+ ]
+ pdfium_root_dir = "../../"
+}
diff --git a/core/fxge/BUILD.gn b/core/fxge/BUILD.gn
index 03bfd4b320..6475dc35d5 100644
--- a/core/fxge/BUILD.gn
+++ b/core/fxge/BUILD.gn
@@ -189,3 +189,20 @@ pdfium_unittest_source_set("unittests") {
]
pdfium_root_dir = "../../"
}
+
+pdfium_embeddertest_source_set("embeddertests") {
+ sources = [
+ "fx_ge_text_embeddertest.cpp",
+ ]
+ deps = []
+ pdfium_root_dir = "../../"
+
+ if (pdf_use_skia || pdf_use_skia_paths) {
+ sources += [ "skia/fx_skia_device_embeddertest.cpp" ]
+ deps += [
+ ":fxge",
+ "../../fpdfsdk",
+ "//skia",
+ ]
+ }
+}