OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/run_loop.h" | 7 #include "base/run_loop.h" |
7 #include "content/browser/gamepad/gamepad_consumer.h" | 8 #include "content/browser/gamepad/gamepad_consumer.h" |
8 #include "content/browser/gamepad/gamepad_service.h" | 9 #include "content/browser/gamepad/gamepad_service.h" |
9 #include "content/browser/gamepad/gamepad_test_helpers.h" | 10 #include "content/browser/gamepad/gamepad_test_helpers.h" |
10 #include "content/public/test/test_browser_thread_bundle.h" | 11 #include "content/public/test/test_browser_thread_bundle.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 | 15 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 WaitForData(); | 122 WaitForData(); |
122 EXPECT_EQ(0, GetConnectedCounter()); | 123 EXPECT_EQ(0, GetConnectedCounter()); |
123 EXPECT_EQ(kNumberOfGamepads, GetDisconnectedCounter()); | 124 EXPECT_EQ(kNumberOfGamepads, GetDisconnectedCounter()); |
124 | 125 |
125 WaitForData(); | 126 WaitForData(); |
126 EXPECT_EQ(0, GetConnectedCounter()); | 127 EXPECT_EQ(0, GetConnectedCounter()); |
127 EXPECT_EQ(0, GetDisconnectedCounter()); | 128 EXPECT_EQ(0, GetDisconnectedCounter()); |
128 } | 129 } |
129 | 130 |
130 } // namespace content | 131 } // namespace content |
OLD | NEW |