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 --- core/fpdfapi/parser/BUILD.gn | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'core/fpdfapi/parser') diff --git a/core/fpdfapi/parser/BUILD.gn b/core/fpdfapi/parser/BUILD.gn index 64306dff1d..52de29dfc9 100644 --- a/core/fpdfapi/parser/BUILD.gn +++ b/core/fpdfapi/parser/BUILD.gn @@ -4,6 +4,7 @@ import("//build/config/jumbo.gni") import("../../../pdfium.gni") +import("../../../testing/test.gni") jumbo_source_set("parser") { sources = [ @@ -83,3 +84,34 @@ jumbo_source_set("parser") { ] visibility = [ "../../../*" ] } + +pdfium_unittest_source_set("unittests") { + sources = [ + "cpdf_array_unittest.cpp", + "cpdf_cross_ref_avail_unittest.cpp", + "cpdf_document_unittest.cpp", + "cpdf_hint_tables_unittest.cpp", + "cpdf_indirect_object_holder_unittest.cpp", + "cpdf_object_avail_unittest.cpp", + "cpdf_object_unittest.cpp", + "cpdf_object_walker_unittest.cpp", + "cpdf_page_object_avail_unittest.cpp", + "cpdf_parser_unittest.cpp", + "cpdf_read_validator_unittest.cpp", + "cpdf_simple_parser_unittest.cpp", + "cpdf_stream_acc_unittest.cpp", + "cpdf_syntax_parser_unittest.cpp", + "fpdf_parser_decode_unittest.cpp", + "fpdf_parser_utility_unittest.cpp", + ] + deps = [ + ":parser", + "../", + ] + pdfium_root_dir = "../../../" + + if (is_clang) { + # Suppress no override warning for overridden functions. + cflags = [ "-Wno-inconsistent-missing-override" ] + } +} -- cgit v1.2.3