diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-15 23:51:28 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-15 23:51:28 +0000 |
commit | 1929d6e1d44ed9bd692c930d5cf79fb2bd80f1e6 (patch) | |
tree | eb99fda121d93741b79d65cf22bf90100093d90a /core/fpdfapi | |
parent | a996ff444d4bf57a78d59dde59b280ca0542962a (diff) | |
download | pdfium-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 'core/fpdfapi')
-rw-r--r-- | core/fpdfapi/edit/BUILD.gn | 7 | ||||
-rw-r--r-- | core/fpdfapi/page/BUILD.gn | 9 | ||||
-rw-r--r-- | core/fpdfapi/parser/BUILD.gn | 12 | ||||
-rw-r--r-- | core/fpdfapi/render/BUILD.gn | 9 |
4 files changed, 37 insertions, 0 deletions
diff --git a/core/fpdfapi/edit/BUILD.gn b/core/fpdfapi/edit/BUILD.gn index 6c88522590..ff127a9a7e 100644 --- a/core/fpdfapi/edit/BUILD.gn +++ b/core/fpdfapi/edit/BUILD.gn @@ -46,3 +46,10 @@ pdfium_unittest_source_set("unittests") { ] pdfium_root_dir = "../../../" } + +pdfium_embeddertest_source_set("embeddertests") { + sources = [ + "cpdf_creator_embeddertest.cpp", + ] + pdfium_root_dir = "../../../" +} diff --git a/core/fpdfapi/page/BUILD.gn b/core/fpdfapi/page/BUILD.gn index 9c57fce67a..7855dc12e9 100644 --- a/core/fpdfapi/page/BUILD.gn +++ b/core/fpdfapi/page/BUILD.gn @@ -126,3 +126,12 @@ pdfium_unittest_source_set("unittests") { ] pdfium_root_dir = "../../../" } + +pdfium_embeddertest_source_set("embeddertests") { + sources = [ + "cpdf_docpagedata_embeddertest.cpp", + "cpdf_function_embeddertest.cpp", + "cpdf_stitchfunc_embeddertest.cpp", + ] + pdfium_root_dir = "../../../" +} diff --git a/core/fpdfapi/parser/BUILD.gn b/core/fpdfapi/parser/BUILD.gn index 52de29dfc9..45035b3d0e 100644 --- a/core/fpdfapi/parser/BUILD.gn +++ b/core/fpdfapi/parser/BUILD.gn @@ -115,3 +115,15 @@ pdfium_unittest_source_set("unittests") { cflags = [ "-Wno-inconsistent-missing-override" ] } } + +pdfium_embeddertest_source_set("embeddertests") { + sources = [ + "cpdf_parser_embeddertest.cpp", + "cpdf_security_handler_embeddertest.cpp", + "fpdf_parser_decode_embeddertest.cpp", + ] + deps = [ + ":parser", + ] + pdfium_root_dir = "../../../" +} diff --git a/core/fpdfapi/render/BUILD.gn b/core/fpdfapi/render/BUILD.gn index 042f04d179..1166907755 100644 --- a/core/fpdfapi/render/BUILD.gn +++ b/core/fpdfapi/render/BUILD.gn @@ -4,6 +4,7 @@ import("//build/config/jumbo.gni") import("../../../pdfium.gni") +import("../../../testing/test.gni") jumbo_source_set("render") { sources = [ @@ -61,3 +62,11 @@ jumbo_source_set("render") { ] visibility = [ "../../../*" ] } + +pdfium_embeddertest_source_set("embeddertests") { + sources = [ + "fpdf_render_loadimage_embeddertest.cpp", + "fpdf_render_pattern_embeddertest.cpp", + ] + pdfium_root_dir = "../../../" +} |