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 #include "base/macros.h" |
5 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
6 #include "base/memory/weak_ptr.h" | 7 #include "base/memory/weak_ptr.h" |
| 8 #include "build/build_config.h" |
7 #include "content/browser/gamepad/gamepad_data_fetcher.h" | 9 #include "content/browser/gamepad/gamepad_data_fetcher.h" |
8 #include "content/browser/gamepad/gamepad_provider.h" | 10 #include "content/browser/gamepad/gamepad_provider.h" |
9 #include "content/browser/gamepad/gamepad_test_helpers.h" | 11 #include "content/browser/gamepad/gamepad_test_helpers.h" |
10 #include "content/common/gamepad_hardware_buffer.h" | 12 #include "content/common/gamepad_hardware_buffer.h" |
11 #include "content/common/gamepad_messages.h" | 13 #include "content/common/gamepad_messages.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
13 | 15 |
14 namespace content { | 16 namespace content { |
15 | 17 |
16 namespace { | 18 namespace { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 mock_data_fetcher_->WaitForDataReadAndCallbacksIssued(); | 151 mock_data_fetcher_->WaitForDataReadAndCallbacksIssued(); |
150 | 152 |
151 // It should have issued our callback. | 153 // It should have issued our callback. |
152 message_loop().RunUntilIdle(); | 154 message_loop().RunUntilIdle(); |
153 EXPECT_TRUE(listener.has_user_gesture()); | 155 EXPECT_TRUE(listener.has_user_gesture()); |
154 } | 156 } |
155 | 157 |
156 } // namespace | 158 } // namespace |
157 | 159 |
158 } // namespace content | 160 } // namespace content |
OLD | NEW |