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

Unified Diff: content/browser/renderer_host/input/gesture_event_queue_unittest.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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
Index: content/browser/renderer_host/input/gesture_event_queue_unittest.cc
diff --git a/content/browser/renderer_host/input/gesture_event_queue_unittest.cc b/content/browser/renderer_host/input/gesture_event_queue_unittest.cc
index 7e7c6e7da65dc5aacc7c002fb8fbdfadb43fab05..44087274c4bae32cf9a0a3ac2c419b2733aa4386 100644
--- a/content/browser/renderer_host/input/gesture_event_queue_unittest.cc
+++ b/content/browser/renderer_host/input/gesture_event_queue_unittest.cc
@@ -2,8 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <stddef.h>
+#include "content/browser/renderer_host/input/gesture_event_queue.h"
+#include <stddef.h>
+#include <utility>
#include <vector>
#include "base/location.h"
@@ -13,7 +15,6 @@
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "base/time/time.h"
-#include "content/browser/renderer_host/input/gesture_event_queue.h"
#include "content/browser/renderer_host/input/touchpad_tap_suppression_controller.h"
#include "content/common/input/input_event_ack_state.h"
#include "content/common/input/synthetic_web_input_event_builders.h"
@@ -53,7 +54,7 @@ class GestureEventQueueTest : public testing::Test,
const GestureEventWithLatencyInfo& event) override {
++sent_gesture_event_count_;
if (sync_ack_result_) {
- scoped_ptr<InputEventAckState> ack_result = sync_ack_result_.Pass();
+ scoped_ptr<InputEventAckState> ack_result = std::move(sync_ack_result_);
SendInputEventACK(event.event.type, *ack_result);
}
}
@@ -63,7 +64,7 @@ class GestureEventQueueTest : public testing::Test,
++acked_gesture_event_count_;
last_acked_event_ = event.event;
if (sync_followup_event_) {
- auto sync_followup_event = sync_followup_event_.Pass();
+ auto sync_followup_event = std::move(sync_followup_event_);
SimulateGestureEvent(*sync_followup_event);
}
}

Powered by Google App Engine
This is Rietveld 408576698