diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-02-25 16:00:06 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-02-25 16:00:06 -0800 |
commit | 42a8adad1c53c060bb93457902243a53270cec36 (patch) | |
tree | 5e047c66f44f0f8cf555dd9d984f834c9ff0f8b0 /testing/gmock.gyp | |
parent | 57e4c86145a247915c59ae5130cfc3ef9b36aa4c (diff) | |
download | pdfium-42a8adad1c53c060bb93457902243a53270cec36.tar.xz |
Implement a delegate for EmbedderTests.
This is the first step in allowing an embedder test to
someday gMock its callbacks, so that it can check that they
fired as expected. gMock wants a class, not a C-style
function-based API, and EmbedderTest is made to bridge
between the two.
The EmbedderTest class itself is modified to inherit from
the C JS API classes themselves, to make finding the
delegate easier.
For example, a future embedder test might send a keystroke
to a page, which would then trigger JS, which would then
trigger an Alert(). Mocking the Alert() callback would
allow the test to check that the alert happened as
expected.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/960663002
Diffstat (limited to 'testing/gmock.gyp')
0 files changed, 0 insertions, 0 deletions