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

Unified Diff: remoting/host/gcd_state_updater_unittest.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: include <utility> 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 | « remoting/host/gcd_state_updater.cc ('k') | remoting/host/gnubby_auth_handler_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/gcd_state_updater_unittest.cc
diff --git a/remoting/host/gcd_state_updater_unittest.cc b/remoting/host/gcd_state_updater_unittest.cc
index 3411a81abd1ee0c8034bf9cf0568334769112126..249634165ae2a358b8b2316cf2a7c38b5aded257 100644
--- a/remoting/host/gcd_state_updater_unittest.cc
+++ b/remoting/host/gcd_state_updater_unittest.cc
@@ -5,6 +5,7 @@
#include "remoting/host/gcd_state_updater.h"
#include <algorithm>
+#include <utility>
#include <vector>
#include "base/strings/stringize_macros.h"
@@ -62,7 +63,7 @@ TEST_F(GcdStateUpdaterTest, Success) {
scoped_ptr<GcdStateUpdater> updater(new GcdStateUpdater(
base::Bind(&GcdStateUpdaterTest::OnSuccess, base::Unretained(this)),
base::Bind(&GcdStateUpdaterTest::OnHostIdError, base::Unretained(this)),
- &signal_strategy_, rest_client_.Pass()));
+ &signal_strategy_, std::move(rest_client_)));
signal_strategy_.Connect();
task_runner_->RunUntilIdle();
@@ -86,7 +87,7 @@ TEST_F(GcdStateUpdaterTest, QueuedRequests) {
scoped_ptr<GcdStateUpdater> updater(new GcdStateUpdater(
base::Bind(&GcdStateUpdaterTest::OnSuccess, base::Unretained(this)),
base::Bind(&GcdStateUpdaterTest::OnHostIdError, base::Unretained(this)),
- &signal_strategy_, rest_client_.Pass()));
+ &signal_strategy_, std::move(rest_client_)));
// Connect, then re-connect with a different JID while the status
// update for the first connection is pending.
@@ -130,7 +131,7 @@ TEST_F(GcdStateUpdaterTest, Retry) {
scoped_ptr<GcdStateUpdater> updater(new GcdStateUpdater(
base::Bind(&GcdStateUpdaterTest::OnSuccess, base::Unretained(this)),
base::Bind(&GcdStateUpdaterTest::OnHostIdError, base::Unretained(this)),
- &signal_strategy_, rest_client_.Pass()));
+ &signal_strategy_, std::move(rest_client_)));
signal_strategy_.Connect();
task_runner_->RunUntilIdle();
@@ -155,7 +156,7 @@ TEST_F(GcdStateUpdaterTest, UnknownHost) {
scoped_ptr<GcdStateUpdater> updater(new GcdStateUpdater(
base::Bind(&GcdStateUpdaterTest::OnSuccess, base::Unretained(this)),
base::Bind(&GcdStateUpdaterTest::OnHostIdError, base::Unretained(this)),
- &signal_strategy_, rest_client_.Pass()));
+ &signal_strategy_, std::move(rest_client_)));
signal_strategy_.Connect();
task_runner_->RunUntilIdle();
« no previous file with comments | « remoting/host/gcd_state_updater.cc ('k') | remoting/host/gnubby_auth_handler_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698