OLD | NEW |
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 CONTENT_BROWSER_GAMEPAD_GAMEPAD_TEST_HELPERS_H_ | 5 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_TEST_HELPERS_H_ |
6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_TEST_HELPERS_H_ | 6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_TEST_HELPERS_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
11 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
12 #include "content/browser/gamepad/gamepad_data_fetcher.h" | 12 #include "content/browser/gamepad/gamepad_data_fetcher.h" |
13 #include "third_party/WebKit/public/platform/WebGamepads.h" | 13 #include "third_party/WebKit/public/platform/WebGamepads.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class GamepadService; | 17 class GamepadService; |
18 | 18 |
19 // Data fetcher that returns canned data for the gamepad provider. | 19 // Data fetcher that returns canned data for the gamepad provider. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 // Pointer owned by the provider (which is owned by the gamepad service). | 76 // Pointer owned by the provider (which is owned by the gamepad service). |
77 MockGamepadDataFetcher* data_fetcher_; | 77 MockGamepadDataFetcher* data_fetcher_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(GamepadServiceTestConstructor); | 79 DISALLOW_COPY_AND_ASSIGN(GamepadServiceTestConstructor); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace content | 82 } // namespace content |
83 | 83 |
84 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_TEST_HELPERS_H_ | 84 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_TEST_HELPERS_H_ |
OLD | NEW |