summaryrefslogtreecommitdiff
path: root/testing/embedder_test_mock_delegate.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-06-02 16:51:07 -0700
committerTom Sepez <tsepez@chromium.org>2015-06-02 16:51:07 -0700
commita76f557650dfc95cae5f535d4a1b627a84d2b5f0 (patch)
tree40de9a298f1e02774dcb6cfb303d629bc97a7ec4 /testing/embedder_test_mock_delegate.h
parentb29338d126125d96d63817af1d80a64ea929ffae (diff)
downloadpdfium-a76f557650dfc95cae5f535d4a1b627a84d2b5f0.tar.xz
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
Diffstat (limited to 'testing/embedder_test_mock_delegate.h')
-rw-r--r--testing/embedder_test_mock_delegate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/embedder_test_mock_delegate.h b/testing/embedder_test_mock_delegate.h
index 526e11774e..1e4e99513d 100644
--- a/testing/embedder_test_mock_delegate.h
+++ b/testing/embedder_test_mock_delegate.h
@@ -13,6 +13,8 @@ class EmbedderTestMockDelegate : public EmbedderTest::Delegate {
MOCK_METHOD1(UnsupportedHandler, void(int type));
MOCK_METHOD4(Alert, int(FPDF_WIDESTRING message, FPDF_WIDESTRING title,
int type, int icon));
+ MOCK_METHOD2(SetTimer, int(int msecs, TimerCallback fn));
+ MOCK_METHOD1(KillTimer, void(int msecs));
};
#endif // TESTING_EMBEDDER_TEST_MOCK_DELEGATE_H_