summaryrefslogtreecommitdiff
path: root/fpdfsdk
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 /fpdfsdk
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 'fpdfsdk')
-rw-r--r--fpdfsdk/BUILD.gn31
-rw-r--r--fpdfsdk/pwl/BUILD.gn14
2 files changed, 45 insertions, 0 deletions
diff --git a/fpdfsdk/BUILD.gn b/fpdfsdk/BUILD.gn
index 3799d35107..1759ccf767 100644
--- a/fpdfsdk/BUILD.gn
+++ b/fpdfsdk/BUILD.gn
@@ -105,3 +105,34 @@ pdfium_unittest_source_set("unittests") {
]
pdfium_root_dir = "../"
}
+
+pdfium_embeddertest_source_set("embeddertests") {
+ sources = [
+ "cpdfsdk_annotiterator_embeddertest.cpp",
+ "fpdf_annot_embeddertest.cpp",
+ "fpdf_attachment_embeddertest.cpp",
+ "fpdf_dataavail_embeddertest.cpp",
+ "fpdf_doc_embeddertest.cpp",
+ "fpdf_edit_embeddertest.cpp",
+ "fpdf_editpath_embeddertest.cpp",
+ "fpdf_ext_embeddertest.cpp",
+ "fpdf_flatten_embeddertest.cpp",
+ "fpdf_formfill_embeddertest.cpp",
+ "fpdf_ppo_embeddertest.cpp",
+ "fpdf_save_embeddertest.cpp",
+ "fpdf_structtree_embeddertest.cpp",
+ "fpdf_text_embeddertest.cpp",
+ "fpdf_transformpage_embeddertest.cpp",
+ "fpdf_view_c_api_test.c",
+ "fpdf_view_c_api_test.h",
+ "fpdf_view_embeddertest.cpp",
+ ]
+ deps = [
+ ":fpdfsdk",
+ "../core/fpdfapi/font",
+ "../core/fpdfapi/page",
+ "../core/fpdfapi/parser",
+ "../core/fxge",
+ ]
+ pdfium_root_dir = "../"
+}
diff --git a/fpdfsdk/pwl/BUILD.gn b/fpdfsdk/pwl/BUILD.gn
index c600647452..39c3410bdb 100644
--- a/fpdfsdk/pwl/BUILD.gn
+++ b/fpdfsdk/pwl/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/jumbo.gni")
import("../../pdfium.gni")
+import("../../testing/test.gni")
jumbo_source_set("pwl") {
sources = [
@@ -54,3 +55,16 @@ jumbo_source_set("pwl") {
]
visibility = [ "../../*" ]
}
+
+pdfium_embeddertest_source_set("embeddertests") {
+ sources = [
+ "cpwl_combo_box_embeddertest.cpp",
+ "cpwl_edit_embeddertest.cpp",
+ ]
+ deps = [
+ ":pwl",
+ "../:fpdfsdk",
+ "../formfiller",
+ ]
+ pdfium_root_dir = "../../"
+}