Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: device/gamepad/gamepad_test_helpers.h

Issue 2808093006: [Device Service] Move Gamepad Blink headers to be part of the Gamepad client library (Closed)
Patch Set: rebase and address comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/gamepad/gamepad_standard_mappings_win.cc ('k') | device/gamepad/gamepad_test_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/gamepad/gamepad_test_helpers.h
diff --git a/device/gamepad/gamepad_test_helpers.h b/device/gamepad/gamepad_test_helpers.h
index b4f8c934780369c0b4bc07375a608dc8064ba2e1..87857c20edf13d428af908fa52894ea9c4698968 100644
--- a/device/gamepad/gamepad_test_helpers.h
+++ b/device/gamepad/gamepad_test_helpers.h
@@ -14,7 +14,7 @@
#include "device/gamepad/gamepad_data_fetcher.h"
#include "device/gamepad/gamepad_service.h"
#include "device/gamepad/gamepad_shared_buffer.h"
-#include "third_party/WebKit/public/platform/WebGamepads.h"
+#include "device/gamepad/public/cpp/gamepads.h"
namespace device {
@@ -23,7 +23,7 @@ class MockGamepadDataFetcher : public GamepadDataFetcher {
public:
// Initializes the fetcher with the given gamepad data, which will be
// returned when the provider queries us.
- explicit MockGamepadDataFetcher(const blink::WebGamepads& test_data);
+ explicit MockGamepadDataFetcher(const Gamepads& test_data);
~MockGamepadDataFetcher() override;
@@ -42,11 +42,11 @@ class MockGamepadDataFetcher : public GamepadDataFetcher {
void WaitForDataReadAndCallbacksIssued();
// Updates the test data.
- void SetTestData(const blink::WebGamepads& new_data);
+ void SetTestData(const Gamepads& new_data);
private:
base::Lock lock_;
- blink::WebGamepads test_data_;
+ Gamepads test_data_;
base::WaitableEvent read_data_;
DISALLOW_COPY_AND_ASSIGN(MockGamepadDataFetcher);
@@ -71,7 +71,7 @@ class GamepadTestHelper {
// global singleton for the gamepad service.
class GamepadServiceTestConstructor : public GamepadTestHelper {
public:
- explicit GamepadServiceTestConstructor(const blink::WebGamepads& test_data);
+ explicit GamepadServiceTestConstructor(const Gamepads& test_data);
~GamepadServiceTestConstructor() override;
GamepadService* gamepad_service() { return gamepad_service_; }
« no previous file with comments | « device/gamepad/gamepad_standard_mappings_win.cc ('k') | device/gamepad/gamepad_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698