From a76f557650dfc95cae5f535d4a1b627a84d2b5f0 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 2 Jun 2015 16:51:07 -0700 Subject: Automated test case for 487928. Reproducing this bug requires the embedder to fire timers, something the single-pass pdfium-test binary doesn't do properly at the present. So we modify the embedder test delegate to allow the immediate triggering of the same. Perform some cleanup along the way by removing EmbedderTestDefaultDelegate -- it buys us nothing over the the no-op one. And, of course, v8 initialization is busted again, and we need v8 here. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1153213004 --- pdfium.gyp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pdfium.gyp') diff --git a/pdfium.gyp b/pdfium.gyp index 7f1d908b1c..c8215e7034 100644 --- a/pdfium.gyp +++ b/pdfium.gyp @@ -852,10 +852,12 @@ 'dependencies': [ '<(DEPTH)/testing/gmock.gyp:gmock', '<(DEPTH)/testing/gtest.gyp:gtest', + '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', 'pdfium', ], 'include_dirs': [ - '<(DEPTH)' + '<(DEPTH)', + '<(DEPTH)/v8', ], 'sources': [ 'core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp', @@ -870,6 +872,7 @@ 'testing/embedder_test.cpp', 'testing/embedder_test.h', 'testing/embedder_test_mock_delegate.h', + 'testing/embedder_test_timer_handling_delegate.h', 'testing/fx_string_testhelpers.cpp', 'testing/fx_string_testhelpers.h', ], -- cgit v1.2.3