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

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

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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/event_converter_test_util.h ('k') | ui/events/ozone/evdev/event_factory_evdev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/event_converter_test_util.cc
diff --git a/ui/events/ozone/evdev/event_converter_test_util.cc b/ui/events/ozone/evdev/event_converter_test_util.cc
index 162d706855150fb5d72d6b8e5abc79c10b2e8d27..3d6851f0a0036a1a3bc10c9fb18552a073ef707f 100644
--- a/ui/events/ozone/evdev/event_converter_test_util.cc
+++ b/ui/events/ozone/evdev/event_converter_test_util.cc
@@ -6,6 +6,7 @@
#include <stdint.h>
+#include "base/memory/ptr_util.h"
#include "ui/events/ozone/device/device_manager.h"
#include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h"
#include "ui/events/ozone/evdev/event_factory_evdev.h"
@@ -107,21 +108,21 @@ class TestEventFactoryEvdev : public EventFactoryEvdev {
} // namespace
-scoped_ptr<DeviceEventDispatcherEvdev> CreateDeviceEventDispatcherEvdevForTest(
- EventFactoryEvdev* event_factory) {
- return make_scoped_ptr(new TestDeviceEventDispatcherEvdev(event_factory));
+std::unique_ptr<DeviceEventDispatcherEvdev>
+CreateDeviceEventDispatcherEvdevForTest(EventFactoryEvdev* event_factory) {
+ return base::WrapUnique(new TestDeviceEventDispatcherEvdev(event_factory));
}
-scoped_ptr<DeviceManager> CreateDeviceManagerForTest() {
- return make_scoped_ptr(new TestDeviceManager());
+std::unique_ptr<DeviceManager> CreateDeviceManagerForTest() {
+ return base::WrapUnique(new TestDeviceManager());
}
-scoped_ptr<EventFactoryEvdev> CreateEventFactoryEvdevForTest(
+std::unique_ptr<EventFactoryEvdev> CreateEventFactoryEvdevForTest(
CursorDelegateEvdev* cursor,
DeviceManager* device_manager,
KeyboardLayoutEngine* keyboard_layout_engine,
const EventDispatchCallback& callback) {
- return make_scoped_ptr(new TestEventFactoryEvdev(
+ return base::WrapUnique(new TestEventFactoryEvdev(
cursor, device_manager, keyboard_layout_engine, callback));
}
« no previous file with comments | « ui/events/ozone/evdev/event_converter_test_util.h ('k') | ui/events/ozone/evdev/event_factory_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698