OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
9 #include "base/test/test_mock_time_task_runner.h" | 10 #include "base/test/test_mock_time_task_runner.h" |
10 #include "services/ui/input_devices/input_device_server.h" | 11 #include "services/ui/input_devices/input_device_server.h" |
11 #include "services/ui/public/cpp/input_devices/input_device_client.h" | 12 #include "services/ui/public/cpp/input_devices/input_device_client.h" |
12 #include "services/ui/public/interfaces/input_devices/input_device_server.mojom.
h" | 13 #include "services/ui/public/interfaces/input_devices/input_device_server.mojom.
h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "ui/events/devices/device_data_manager.h" | 15 #include "ui/events/devices/device_data_manager.h" |
15 #include "ui/events/devices/device_hotplug_event_observer.h" | 16 #include "ui/events/devices/device_hotplug_event_observer.h" |
16 | 17 |
17 namespace ui { | 18 namespace ui { |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 EXPECT_EQ(1u, client.GetTouchpadDevices().size()); | 190 EXPECT_EQ(1u, client.GetTouchpadDevices().size()); |
190 | 191 |
191 // Check the touchpad fields match. | 192 // Check the touchpad fields match. |
192 const InputDevice& output = client.GetTouchpadDevices()[0]; | 193 const InputDevice& output = client.GetTouchpadDevices()[0]; |
193 EXPECT_EQ(touchpad.id, output.id); | 194 EXPECT_EQ(touchpad.id, output.id); |
194 EXPECT_EQ(touchpad.type, output.type); | 195 EXPECT_EQ(touchpad.type, output.type); |
195 EXPECT_EQ(touchpad.name, output.name); | 196 EXPECT_EQ(touchpad.name, output.name); |
196 } | 197 } |
197 | 198 |
198 } // namespace ui | 199 } // namespace ui |
OLD | NEW |