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

Unified Diff: ui/ozone/platform/wayland/wayland_pointer_unittest.cc

Issue 2713373002: Fix 'auto variable type must not deduce to a raw pointer type' errors in Ozone/Wayland code (Closed)
Patch Set: Created 3 years, 10 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
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 309221d821fdeaafbb128ce30ca948ffc7b50ee1..8b5b0b04342c5ab245cac13fd4a84ff6b2f2ac9c 100644
--- a/ui/ozone/platform/wayland/wayland_pointer_unittest.cc
+++ b/ui/ozone/platform/wayland/wayland_pointer_unittest.cc
@@ -86,7 +86,7 @@ TEST_F(WaylandPointerTest, Motion) {
ASSERT_TRUE(event);
ASSERT_TRUE(event->IsMouseEvent());
- auto mouse_event = event->AsMouseEvent();
+ auto* mouse_event = event->AsMouseEvent();
EXPECT_EQ(ET_MOUSE_MOVED, mouse_event->type());
EXPECT_EQ(0, mouse_event->button_flags());
EXPECT_EQ(0, mouse_event->changed_button_flags());
@@ -110,7 +110,7 @@ TEST_F(WaylandPointerTest, MotionDragged) {
ASSERT_TRUE(event);
ASSERT_TRUE(event->IsMouseEvent());
- auto mouse_event = event->AsMouseEvent();
+ auto* mouse_event = event->AsMouseEvent();
EXPECT_EQ(ET_MOUSE_DRAGGED, mouse_event->type());
EXPECT_EQ(EF_MIDDLE_MOUSE_BUTTON, mouse_event->button_flags());
EXPECT_EQ(0, mouse_event->changed_button_flags());
@@ -135,7 +135,7 @@ TEST_F(WaylandPointerTest, ButtonPress) {
ASSERT_TRUE(event);
ASSERT_TRUE(event->IsMouseEvent());
- auto mouse_event = event->AsMouseEvent();
+ auto* mouse_event = event->AsMouseEvent();
EXPECT_EQ(ET_MOUSE_PRESSED, mouse_event->type());
EXPECT_EQ(EF_LEFT_MOUSE_BUTTON | EF_RIGHT_MOUSE_BUTTON,
mouse_event->button_flags());
@@ -163,7 +163,7 @@ TEST_F(WaylandPointerTest, ButtonRelease) {
ASSERT_TRUE(event);
ASSERT_TRUE(event->IsMouseEvent());
- auto mouse_event = event->AsMouseEvent();
+ auto* mouse_event = event->AsMouseEvent();
EXPECT_EQ(ET_MOUSE_RELEASED, mouse_event->type());
EXPECT_EQ(EF_LEFT_MOUSE_BUTTON | EF_BACK_MOUSE_BUTTON,
mouse_event->button_flags());
@@ -190,7 +190,7 @@ TEST_F(WaylandPointerTest, AxisVertical) {
ASSERT_TRUE(event);
ASSERT_TRUE(event->IsMouseWheelEvent());
- auto mouse_wheel_event = event->AsMouseWheelEvent();
+ auto* mouse_wheel_event = event->AsMouseWheelEvent();
EXPECT_EQ(gfx::Vector2d(0, -2 * MouseWheelEvent::kWheelDelta),
mouse_wheel_event->offset());
EXPECT_EQ(EF_RIGHT_MOUSE_BUTTON, mouse_wheel_event->button_flags());
@@ -218,7 +218,7 @@ TEST_F(WaylandPointerTest, AxisHorizontal) {
ASSERT_TRUE(event);
ASSERT_TRUE(event->IsMouseWheelEvent());
- auto mouse_wheel_event = event->AsMouseWheelEvent();
+ auto* mouse_wheel_event = event->AsMouseWheelEvent();
EXPECT_EQ(gfx::Vector2d(MouseWheelEvent::kWheelDelta, 0),
mouse_wheel_event->offset());
EXPECT_EQ(EF_LEFT_MOUSE_BUTTON, mouse_wheel_event->button_flags());
« no previous file with comments | « ui/ozone/platform/wayland/wayland_keyboard_unittest.cc ('k') | ui/ozone/platform/wayland/wayland_window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698