diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-15 23:48:29 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-15 23:48:29 +0000 |
commit | f03f7810c30cb3d01517c0efc189d68e440c9162 (patch) | |
tree | f33e92d77b99b55bb2ae8dba6ba374cf3c6cb5f3 /core/fpdfdoc | |
parent | 1987bbfdbcc15e6954aa1340d1a55fda4a532914 (diff) | |
download | pdfium-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 'core/fpdfdoc')
-rw-r--r-- | core/fpdfdoc/BUILD.gn | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/fpdfdoc/BUILD.gn b/core/fpdfdoc/BUILD.gn index 411d26a7cb..e243823ac4 100644 --- a/core/fpdfdoc/BUILD.gn +++ b/core/fpdfdoc/BUILD.gn @@ -4,6 +4,7 @@ import("//build/config/jumbo.gni") import("../../pdfium.gni") +import("../../testing/test.gni") jumbo_source_set("fpdfdoc") { sources = [ @@ -99,3 +100,19 @@ jumbo_source_set("fpdfdoc") { ] visibility = [ "../../*" ] } + +pdfium_unittest_source_set("unittests") { + sources = [ + "cpdf_defaultappearance_unittest.cpp", + "cpdf_dest_unittest.cpp", + "cpdf_filespec_unittest.cpp", + "cpdf_formfield_unittest.cpp", + "cpdf_metadata_unittest.cpp", + "cpdf_nametree_unittest.cpp", + ] + deps = [ + ":fpdfdoc", + "../fpdfapi/parser", + ] + pdfium_root_dir = "../../" +} |