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

Unified Diff: ui/ozone/platform/wayland/wayland_pointer_unittest.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/ozone/platform/wayland/wayland_object.h ('k') | ui/ozone/platform/wayland/wayland_surface_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/wayland/wayland_pointer_unittest.cc
diff --git a/ui/ozone/platform/wayland/wayland_pointer_unittest.cc b/ui/ozone/platform/wayland/wayland_pointer_unittest.cc
index 71e28bed3c9c7595cafb51d79553e1c0656690c3..fc43ea46a0892b483d460302adfe7819245a1228 100644
--- a/ui/ozone/platform/wayland/wayland_pointer_unittest.cc
+++ b/ui/ozone/platform/wayland/wayland_pointer_unittest.cc
@@ -79,7 +79,7 @@ TEST_F(WaylandPointerTest, Motion) {
wl_pointer_send_motion(pointer->resource(), 1002, wl_fixed_from_double(10.75),
wl_fixed_from_double(20.375));
- scoped_ptr<Event> event;
+ std::unique_ptr<Event> event;
EXPECT_CALL(delegate, DispatchEvent(_)).WillOnce(CloneEvent(&event));
Sync();
@@ -103,7 +103,7 @@ TEST_F(WaylandPointerTest, MotionDragged) {
Sync();
- scoped_ptr<Event> event;
+ std::unique_ptr<Event> event;
EXPECT_CALL(delegate, DispatchEvent(_)).WillOnce(CloneEvent(&event));
wl_pointer_send_motion(pointer->resource(), 1003, wl_fixed_from_int(400),
wl_fixed_from_int(500));
@@ -128,7 +128,7 @@ TEST_F(WaylandPointerTest, ButtonPress) {
Sync();
- scoped_ptr<Event> event;
+ std::unique_ptr<Event> event;
EXPECT_CALL(delegate, DispatchEvent(_)).WillOnce(CloneEvent(&event));
wl_pointer_send_button(pointer->resource(), 3, 1003, BTN_LEFT,
WL_POINTER_BUTTON_STATE_PRESSED);
@@ -156,7 +156,7 @@ TEST_F(WaylandPointerTest, ButtonRelease) {
Sync();
- scoped_ptr<Event> event;
+ std::unique_ptr<Event> event;
EXPECT_CALL(delegate, DispatchEvent(_)).WillOnce(CloneEvent(&event));
wl_pointer_send_button(pointer->resource(), 4, 1004, BTN_LEFT,
WL_POINTER_BUTTON_STATE_RELEASED);
@@ -182,7 +182,7 @@ TEST_F(WaylandPointerTest, AxisVertical) {
Sync();
- scoped_ptr<Event> event;
+ std::unique_ptr<Event> event;
EXPECT_CALL(delegate, DispatchEvent(_)).WillOnce(CloneEvent(&event));
// Wayland servers typically send a value of 10 per mouse wheel click.
wl_pointer_send_axis(pointer->resource(), 1003,
@@ -209,7 +209,7 @@ TEST_F(WaylandPointerTest, AxisHorizontal) {
Sync();
- scoped_ptr<Event> event;
+ std::unique_ptr<Event> event;
EXPECT_CALL(delegate, DispatchEvent(_)).WillOnce(CloneEvent(&event));
// Wayland servers typically send a value of 10 per mouse wheel click.
wl_pointer_send_axis(pointer->resource(), 1003,
« no previous file with comments | « ui/ozone/platform/wayland/wayland_object.h ('k') | ui/ozone/platform/wayland/wayland_surface_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698