Don't call FPDF_InitLibrary() in individual unit_tests.
authorTom Sepez <tsepez@chromium.org>
Fri, 10 Apr 2015 17:29:21 +0000 (10:29 -0700)
committerTom Sepez <tsepez@chromium.org>
Fri, 10 Apr 2015 17:29:21 +0000 (10:29 -0700)
commite45a2e4ff91a672d555951963e329cf224d486d6
tree353b4c06efb5b34c929486cab81f7709be5a4123
parentea18d0b4bdb7e993f3c78b83493e3dac9acc4a44
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
core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp [new file with mode: 0644]
core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp [deleted file]
pdfium.gyp