summaryrefslogtreecommitdiff
path: root/fxjs/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/BUILD.gn')
-rw-r--r--fxjs/BUILD.gn18
1 files changed, 18 insertions, 0 deletions
diff --git a/fxjs/BUILD.gn b/fxjs/BUILD.gn
index 673386becb..09595e36fe 100644
--- a/fxjs/BUILD.gn
+++ b/fxjs/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/jumbo.gni")
import("../pdfium.gni")
+import("../testing/test.gni")
jumbo_source_set("fxjs") {
sources = [
@@ -445,3 +446,20 @@ jumbo_source_set("fxjs") {
}
}
}
+
+if (pdf_enable_v8) {
+ pdfium_unittest_source_set("unittests") {
+ sources = [
+ "cfx_v8_unittest.cpp",
+ "cfx_v8_unittest.h",
+ "cfxjs_engine_unittest.cpp",
+ "cjs_publicmethods_unittest.cpp",
+ "cjs_util_unittest.cpp",
+ ]
+ configs = [ "//v8:external_startup_data" ]
+ deps = [
+ ":fxjs",
+ ]
+ pdfium_root_dir = "../"
+ }
+}