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

Unified Diff: ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc

Issue 858333006: [PATCH 9.6/11] ozone: evdev: Remove extra PostTask during dispatch from EventFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/ozone/evdev/keyboard_evdev.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc
diff --git a/ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc b/ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc
index 73aacaf074631954c173e6e257e434fb83c0ef2a..5a70e553137c5fb2ff06e7fad6f51dc355683455 100644
--- a/ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc
+++ b/ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc
@@ -180,8 +180,9 @@ class TabletEventConverterEvdevTest : public testing::Test {
return static_cast<ui::MouseEvent*>(ev);
}
- void DispatchEventForTest(scoped_ptr<ui::Event> event) {
- dispatched_events_.push_back(event.release());
+ void DispatchEventForTest(ui::Event* event) {
+ scoped_ptr<ui::Event> cloned_event = ui::Event::Clone(*event);
+ dispatched_events_.push_back(cloned_event.release());
}
private:
« no previous file with comments | « ui/events/ozone/evdev/keyboard_evdev.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698