projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git]
/
src
/
content
/
browser
/
gamepad
/
gamepad_test_helpers.h
diff --git
a/src/content/browser/gamepad/gamepad_test_helpers.h
b/src/content/browser/gamepad/gamepad_test_helpers.h
index
2aad575
..
bf88258
100644
(file)
--- a/
src/content/browser/gamepad/gamepad_test_helpers.h
+++ b/
src/content/browser/gamepad/gamepad_test_helpers.h
@@
-33,6
+33,11
@@
class MockGamepadDataFetcher : public GamepadDataFetcher {
// fetcher on the background thread.
void WaitForDataRead();
// fetcher on the background thread.
void WaitForDataRead();
+ // Blocks the current thread until the GamepadProvider reads from this
+ // fetcher on the background thread and issued all callbacks related to the
+ // read on the client's thread.
+ void WaitForDataReadAndCallbacksIssued();
+
// Updates the test data.
void SetTestData(const blink::WebGamepads& new_data);
// Updates the test data.
void SetTestData(const blink::WebGamepads& new_data);