From e45a2e4ff91a672d555951963e329cf224d486d6 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 10 Apr 2015 10:29:21 -0700 Subject: Don't call FPDF_InitLibrary() in individual unit_tests. The initialization sequence becomes more complicated as v8 evolves and when we move to XFA (where pdfium_unittests are currently broken). Centralize this initialization in a few places, like the embedder_test framework and the pdfium_test binary, and convert tests that require it into embedder_tests rather than unit_tests. Change on master first before moving to XFA. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1071343002 --- BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BUILD.gn') diff --git a/BUILD.gn b/BUILD.gn index 0dcd459fb6..240401acf9 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -844,7 +844,6 @@ static_library("formfiller") { test("pdfium_unittests") { sources = [ - "core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp", "core/src/fxcodec/codec/fx_codec_jpx_unittest.cpp", "core/src/fxcrt/fx_basic_bstring_unittest.cpp", "core/src/fxcrt/fx_basic_wstring_unittest.cpp", @@ -866,6 +865,7 @@ test("pdfium_unittests") { test("pdfium_embeddertests") { sources = [ + "core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp", "core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp", "fpdfsdk/src/fpdf_dataavail_embeddertest.cpp", "fpdfsdk/src/fpdfdoc_embeddertest.cpp", -- cgit v1.2.3