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 "ui/events/ozone/evdev/input_injector_evdev.h" | 5 #include "ui/events/ozone/evdev/input_injector_evdev.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "ui/events/event.h" |
11 #include "ui/events/ozone/device/device_manager.h" | 12 #include "ui/events/ozone/device/device_manager.h" |
12 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 13 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |
13 #include "ui/events/ozone/evdev/event_converter_test_util.h" | 14 #include "ui/events/ozone/evdev/event_converter_test_util.h" |
14 #include "ui/events/ozone/evdev/event_factory_evdev.h" | 15 #include "ui/events/ozone/evdev/event_factory_evdev.h" |
15 #include "ui/events/ozone/events_ozone.h" | 16 #include "ui/events/ozone/events_ozone.h" |
16 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" | 17 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" |
17 | 18 |
18 namespace ui { | 19 namespace ui { |
19 | 20 |
20 using testing::AllOf; | 21 using testing::AllOf; |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 MatchesMouseEvent(ET_MOUSEWHEEL, 0, 10, 20), | 216 MatchesMouseEvent(ET_MOUSEWHEEL, 0, 10, 20), |
216 Property(&MouseWheelEvent::x_offset, 100), | 217 Property(&MouseWheelEvent::x_offset, 100), |
217 Property(&MouseWheelEvent::y_offset, 0)))); | 218 Property(&MouseWheelEvent::y_offset, 0)))); |
218 injector_.MoveCursorTo(gfx::PointF(10, 20)); | 219 injector_.MoveCursorTo(gfx::PointF(10, 20)); |
219 injector_.InjectMouseWheel(0, 100); | 220 injector_.InjectMouseWheel(0, 100); |
220 injector_.InjectMouseWheel(100, 0); | 221 injector_.InjectMouseWheel(100, 0); |
221 run_loop_.RunUntilIdle(); | 222 run_loop_.RunUntilIdle(); |
222 } | 223 } |
223 | 224 |
224 } // namespace ui | 225 } // namespace ui |
OLD | NEW |