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

Side by Side Diff: device/gamepad/gamepad_test_helpers.h

Issue 2542903002: device: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_GAMEPAD_GAMEPAD_TEST_HELPERS_H_ 5 #ifndef DEVICE_GAMEPAD_GAMEPAD_TEST_HELPERS_H_
6 #define DEVICE_GAMEPAD_GAMEPAD_TEST_HELPERS_H_ 6 #define DEVICE_GAMEPAD_GAMEPAD_TEST_HELPERS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "base/synchronization/waitable_event.h" 13 #include "base/synchronization/waitable_event.h"
14 #include "device/gamepad/gamepad_data_fetcher.h" 14 #include "device/gamepad/gamepad_data_fetcher.h"
15 #include "device/gamepad/gamepad_shared_buffer.h" 15 #include "device/gamepad/gamepad_shared_buffer.h"
16 #include "third_party/WebKit/public/platform/WebGamepads.h" 16 #include "third_party/WebKit/public/platform/WebGamepads.h"
17 17
18 namespace device { 18 namespace device {
19 19
20 class GamepadService;
21
22 // Data fetcher that returns canned data for the gamepad provider. 20 // Data fetcher that returns canned data for the gamepad provider.
23 class MockGamepadDataFetcher : public GamepadDataFetcher { 21 class MockGamepadDataFetcher : public GamepadDataFetcher {
24 public: 22 public:
25 // Initializes the fetcher with the given gamepad data, which will be 23 // Initializes the fetcher with the given gamepad data, which will be
26 // returned when the provider queries us. 24 // returned when the provider queries us.
27 explicit MockGamepadDataFetcher(const blink::WebGamepads& test_data); 25 explicit MockGamepadDataFetcher(const blink::WebGamepads& test_data);
28 26
29 ~MockGamepadDataFetcher() override; 27 ~MockGamepadDataFetcher() override;
30 28
31 GamepadSource source() override; 29 GamepadSource source() override;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 private: 78 private:
81 // This must be constructed before the system monitor. 79 // This must be constructed before the system monitor.
82 base::MessageLoop message_loop_; 80 base::MessageLoop message_loop_;
83 81
84 DISALLOW_COPY_AND_ASSIGN(GamepadTestHelper); 82 DISALLOW_COPY_AND_ASSIGN(GamepadTestHelper);
85 }; 83 };
86 84
87 } // namespace device 85 } // namespace device
88 86
89 #endif // DEVICE_GAMEPAD_GAMEPAD_TEST_HELPERS_H_ 87 #endif // DEVICE_GAMEPAD_GAMEPAD_TEST_HELPERS_H_
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test_win.h ('k') | device/generic_sensor/platform_sensor_ambient_light_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698