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

Unified Diff: device/gamepad/gamepad_service_unittest.cc

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_service.cc ('k') | device/gamepad/gamepad_shared_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/gamepad/gamepad_service_unittest.cc
diff --git a/device/gamepad/gamepad_service_unittest.cc b/device/gamepad/gamepad_service_unittest.cc
index 97ce78139c541dbf3f72365a4e84277ecaca70c2..86aad624cd5269db34dbc530b4b7d3dcc7287bce 100644
--- a/device/gamepad/gamepad_service_unittest.cc
+++ b/device/gamepad/gamepad_service_unittest.cc
@@ -18,21 +18,17 @@
namespace device {
namespace {
-static const int kNumberOfGamepads = blink::WebGamepads::kItemsLengthCap;
+static const int kNumberOfGamepads = Gamepads::kItemsLengthCap;
}
-using blink::WebGamepads;
-
class ConnectionListener : public device::GamepadConsumer {
public:
ConnectionListener() { ClearCounters(); }
- void OnGamepadConnected(unsigned index,
- const blink::WebGamepad& gamepad) override {
+ void OnGamepadConnected(unsigned index, const Gamepad& gamepad) override {
connected_counter_++;
}
- void OnGamepadDisconnected(unsigned index,
- const blink::WebGamepad& gamepad) override {
+ void OnGamepadDisconnected(unsigned index, const Gamepad& gamepad) override {
disconnected_counter_++;
}
@@ -71,7 +67,7 @@ class GamepadServiceTest : public testing::Test {
device::MockGamepadDataFetcher* fetcher_;
GamepadService* service_;
std::unique_ptr<ConnectionListener> connection_listener_;
- WebGamepads test_data_;
+ Gamepads test_data_;
DISALLOW_COPY_AND_ASSIGN(GamepadServiceTest);
};
« no previous file with comments | « device/gamepad/gamepad_service.cc ('k') | device/gamepad/gamepad_shared_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698