summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-15 23:48:29 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-15 23:48:29 +0000
commitf03f7810c30cb3d01517c0efc189d68e440c9162 (patch)
treef33e92d77b99b55bb2ae8dba6ba374cf3c6cb5f3 /xfa
parent1987bbfdbcc15e6954aa1340d1a55fda4a532914 (diff)
downloadpdfium-f03f7810c30cb3d01517c0efc189d68e440c9162.tar.xz
Split pdfium_unittests sources.
Move foo_unittest.cpp to the same BUILD.gn file as foo.cpp. Set up dependencies to make pdfium_unittests pass gn check. Change-Id: Id9f649d5d0c76fe4254f3887778516abb75fcbce Reviewed-on: https://pdfium-review.googlesource.com/c/43995 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r--xfa/fde/BUILD.gn12
-rw-r--r--xfa/fgas/BUILD.gn16
-rw-r--r--xfa/fwl/BUILD.gn12
-rw-r--r--xfa/fxfa/BUILD.gn12
-rw-r--r--xfa/fxfa/fm2js/BUILD.gn14
-rw-r--r--xfa/fxfa/parser/BUILD.gn16
6 files changed, 82 insertions, 0 deletions
diff --git a/xfa/fde/BUILD.gn b/xfa/fde/BUILD.gn
index 3c600ec506..ff728a7000 100644
--- a/xfa/fde/BUILD.gn
+++ b/xfa/fde/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/jumbo.gni")
import("../../pdfium.gni")
+import("../../testing/test.gni")
assert(pdf_enable_xfa)
@@ -27,3 +28,14 @@ jumbo_source_set("fde") {
]
visibility = [ "../../*" ]
}
+
+pdfium_unittest_source_set("unittests") {
+ sources = [
+ "cfde_texteditengine_unittest.cpp",
+ ]
+ deps = [
+ ":fde",
+ "../fgas",
+ ]
+ pdfium_root_dir = "../../"
+}
diff --git a/xfa/fgas/BUILD.gn b/xfa/fgas/BUILD.gn
index c34aa0915c..d2819b8e1e 100644
--- a/xfa/fgas/BUILD.gn
+++ b/xfa/fgas/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/jumbo.gni")
import("../../pdfium.gni")
+import("../../testing/test.gni")
assert(pdf_enable_xfa)
@@ -55,3 +56,18 @@ jumbo_source_set("fgas") {
]
}
}
+
+pdfium_unittest_source_set("unittests") {
+ sources = [
+ "crt/cfgas_formatstring_unittest.cpp",
+ "layout/cfx_rtfbreak_unittest.cpp",
+ "layout/cfx_txtbreak_unittest.cpp",
+ ]
+ deps = [
+ ":fgas",
+ "../../core/fpdfapi",
+ "../../core/fxge",
+ "../fxfa/parser",
+ ]
+ pdfium_root_dir = "../../"
+}
diff --git a/xfa/fwl/BUILD.gn b/xfa/fwl/BUILD.gn
index bcccf8d7e4..f6ca14111c 100644
--- a/xfa/fwl/BUILD.gn
+++ b/xfa/fwl/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/jumbo.gni")
import("../../pdfium.gni")
+import("../../testing/test.gni")
assert(pdf_enable_xfa)
@@ -135,3 +136,14 @@ jumbo_source_set("fwl") {
]
visibility = [ "../../*" ]
}
+
+pdfium_unittest_source_set("unittests") {
+ sources = [
+ "cfx_barcode_unittest.cpp",
+ ]
+ deps = [
+ ":fwl",
+ "../../core/fxge",
+ ]
+ pdfium_root_dir = "../../"
+}
diff --git a/xfa/fxfa/BUILD.gn b/xfa/fxfa/BUILD.gn
index d6417b73c7..0c44f6b549 100644
--- a/xfa/fxfa/BUILD.gn
+++ b/xfa/fxfa/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/jumbo.gni")
import("../../pdfium.gni")
+import("../../testing/test.gni")
assert(pdf_enable_xfa)
@@ -128,3 +129,14 @@ jumbo_source_set("fxfa") {
]
visibility = [ "../../*" ]
}
+
+pdfium_unittest_source_set("unittests") {
+ sources = [
+ "cxfa_ffbarcode_unittest.cpp",
+ "cxfa_textparser_unittest.cpp",
+ ]
+ deps = [
+ ":fxfa",
+ ]
+ pdfium_root_dir = "../../"
+}
diff --git a/xfa/fxfa/fm2js/BUILD.gn b/xfa/fxfa/fm2js/BUILD.gn
index 8da1ec5433..930c452962 100644
--- a/xfa/fxfa/fm2js/BUILD.gn
+++ b/xfa/fxfa/fm2js/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/jumbo.gni")
import("../../../pdfium.gni")
+import("../../../testing/test.gni")
assert(pdf_enable_xfa)
@@ -30,3 +31,16 @@ jumbo_source_set("fm2js") {
]
visibility = [ "../../../*" ]
}
+
+pdfium_unittest_source_set("unittests") {
+ sources = [
+ "cxfa_fmexpression_unittest.cpp",
+ "cxfa_fmlexer_unittest.cpp",
+ "cxfa_fmparser_unittest.cpp",
+ "cxfa_fmsimpleexpression_unittest.cpp",
+ ]
+ deps = [
+ ":fm2js",
+ ]
+ pdfium_root_dir = "../../../"
+}
diff --git a/xfa/fxfa/parser/BUILD.gn b/xfa/fxfa/parser/BUILD.gn
index bd7446db7c..8575a019f4 100644
--- a/xfa/fxfa/parser/BUILD.gn
+++ b/xfa/fxfa/parser/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/jumbo.gni")
import("../../../pdfium.gni")
+import("../../../testing/test.gni")
assert(pdf_enable_xfa)
@@ -719,3 +720,18 @@ jumbo_source_set("parser") {
]
visibility = [ "../../../*" ]
}
+
+pdfium_unittest_source_set("unittests") {
+ sources = [
+ "cxfa_document_parser_unittest.cpp",
+ "cxfa_localevalue_unittest.cpp",
+ "cxfa_node_unittest.cpp",
+ "cxfa_nodeiteratortemplate_unittest.cpp",
+ "cxfa_xmllocale_unittest.cpp",
+ "xfa_utils_unittest.cpp",
+ ]
+ deps = [
+ ":parser",
+ ]
+ pdfium_root_dir = "../../../"
+}