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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev_impl_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 | « no previous file | ui/events/ozone/evdev/event_converter_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc b/ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
index aeafef6a3ccac29b3c8d12d6f4c46ec28eca500e..71a5b8afdb5eee94897315da92906d0d782c0f02 100644
--- a/ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
+++ b/ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
@@ -128,8 +128,9 @@ class EventConverterEvdevImplTest : public testing::Test {
}
private:
- 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());
}
base::MessageLoopForUI ui_loop_;
« no previous file with comments | « no previous file | ui/events/ozone/evdev/event_converter_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698