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

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

Issue 660883003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « content/common/input/input_param_traits.cc ('k') | content/public/test/browser_test_utils.cc » ('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 db07d29dc5c14beec457568206ff5ef8a438a9b8..cbfd9aa2bcca7dc5269d498b3d42bc139618d74f 100644
--- a/content/common/input/input_param_traits_unittest.cc
+++ b/content/common/input/input_param_traits_unittest.cc
@@ -199,7 +199,7 @@ TEST_F(InputParamTraitsTest, SyntheticSmoothScrollGestureParams) {
ASSERT_EQ(SyntheticGestureParams::SMOOTH_SCROLL_GESTURE,
gesture_params->GetGestureType());
SyntheticGesturePacket packet_in;
- packet_in.set_gesture_params(gesture_params.PassAs<SyntheticGestureParams>());
+ packet_in.set_gesture_params(gesture_params.Pass());
Verify(packet_in);
}
@@ -214,7 +214,7 @@ TEST_F(InputParamTraitsTest, SyntheticPinchGestureParams) {
ASSERT_EQ(SyntheticGestureParams::PINCH_GESTURE,
gesture_params->GetGestureType());
SyntheticGesturePacket packet_in;
- packet_in.set_gesture_params(gesture_params.PassAs<SyntheticGestureParams>());
+ packet_in.set_gesture_params(gesture_params.Pass());
Verify(packet_in);
}
@@ -228,7 +228,7 @@ TEST_F(InputParamTraitsTest, SyntheticTapGestureParams) {
ASSERT_EQ(SyntheticGestureParams::TAP_GESTURE,
gesture_params->GetGestureType());
SyntheticGesturePacket packet_in;
- packet_in.set_gesture_params(gesture_params.PassAs<SyntheticGestureParams>());
+ packet_in.set_gesture_params(gesture_params.Pass());
Verify(packet_in);
}
« no previous file with comments | « content/common/input/input_param_traits.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698