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