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 <string.h> |
| 6 |
5 #include "base/macros.h" | 7 #include "base/macros.h" |
6 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
7 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
8 #include "content/browser/gamepad/gamepad_consumer.h" | 10 #include "content/browser/gamepad/gamepad_consumer.h" |
9 #include "content/browser/gamepad/gamepad_service.h" | 11 #include "content/browser/gamepad/gamepad_service.h" |
10 #include "content/browser/gamepad/gamepad_test_helpers.h" | 12 #include "content/browser/gamepad/gamepad_test_helpers.h" |
11 #include "content/public/test/test_browser_thread_bundle.h" | 13 #include "content/public/test/test_browser_thread_bundle.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 { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 WaitForData(); | 124 WaitForData(); |
123 EXPECT_EQ(0, GetConnectedCounter()); | 125 EXPECT_EQ(0, GetConnectedCounter()); |
124 EXPECT_EQ(kNumberOfGamepads, GetDisconnectedCounter()); | 126 EXPECT_EQ(kNumberOfGamepads, GetDisconnectedCounter()); |
125 | 127 |
126 WaitForData(); | 128 WaitForData(); |
127 EXPECT_EQ(0, GetConnectedCounter()); | 129 EXPECT_EQ(0, GetConnectedCounter()); |
128 EXPECT_EQ(0, GetDisconnectedCounter()); | 130 EXPECT_EQ(0, GetDisconnectedCounter()); |
129 } | 131 } |
130 | 132 |
131 } // namespace content | 133 } // namespace content |
OLD | NEW |