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

Unified Diff: content/common/input/input_param_traits_unittest.cc

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « content/common/input/input_param_traits.cc ('k') | content/common/input/synthetic_gesture_packet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/input/input_param_traits_unittest.cc
diff --git a/content/common/input/input_param_traits_unittest.cc b/content/common/input/input_param_traits_unittest.cc
index 11c397e14df0a71c933f771c563f687a798899f1..0dd2b3d1441a68121d0bf827c3f4693f820ce20e 100644
--- a/content/common/input/input_param_traits_unittest.cc
+++ b/content/common/input/input_param_traits_unittest.cc
@@ -5,6 +5,7 @@
#include "content/common/input/input_param_traits.h"
#include <stddef.h>
+#include <utility>
#include "content/common/input/input_event.h"
#include "content/common/input/synthetic_gesture_params.h"
@@ -215,7 +216,7 @@ TEST_F(InputParamTraitsTest, SyntheticSmoothScrollGestureParams) {
ASSERT_EQ(SyntheticGestureParams::SMOOTH_SCROLL_GESTURE,
gesture_params->GetGestureType());
SyntheticGesturePacket packet_in;
- packet_in.set_gesture_params(gesture_params.Pass());
+ packet_in.set_gesture_params(std::move(gesture_params));
Verify(packet_in);
}
@@ -230,7 +231,7 @@ TEST_F(InputParamTraitsTest, SyntheticPinchGestureParams) {
ASSERT_EQ(SyntheticGestureParams::PINCH_GESTURE,
gesture_params->GetGestureType());
SyntheticGesturePacket packet_in;
- packet_in.set_gesture_params(gesture_params.Pass());
+ packet_in.set_gesture_params(std::move(gesture_params));
Verify(packet_in);
}
@@ -244,7 +245,7 @@ TEST_F(InputParamTraitsTest, SyntheticTapGestureParams) {
ASSERT_EQ(SyntheticGestureParams::TAP_GESTURE,
gesture_params->GetGestureType());
SyntheticGesturePacket packet_in;
- packet_in.set_gesture_params(gesture_params.Pass());
+ packet_in.set_gesture_params(std::move(gesture_params));
Verify(packet_in);
}
« no previous file with comments | « content/common/input/input_param_traits.cc ('k') | content/common/input/synthetic_gesture_packet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698