Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: ui/events/ozone/evdev/input_injector_evdev_unittest.cc

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.cc ('k') | ui/events/ozone/layout/stub/stub_keyboard_layout_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698