From f03f7810c30cb3d01517c0efc189d68e440c9162 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 15 Oct 2018 23:48:29 +0000 Subject: 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 Reviewed-by: Tom Sepez --- xfa/fxfa/parser/BUILD.gn | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'xfa/fxfa/parser') 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 = "../../../" +} -- cgit v1.2.3