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

Unified Diff: remoting/protocol/authenticator_test_base.cc

Issue 1534193004: Use std::move() instead of scoped_ptr<>::Pass(). (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 | « no previous file | remoting/protocol/capture_scheduler.cc » ('j') | remoting/protocol/fake_authenticator.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/authenticator_test_base.cc
diff --git a/remoting/protocol/authenticator_test_base.cc b/remoting/protocol/authenticator_test_base.cc
index f2166d79380eb842d3da05b17da31dc4318607a7..e25dae11f9829533e0dcd334a86d3354118ce181 100644
--- a/remoting/protocol/authenticator_test_base.cc
+++ b/remoting/protocol/authenticator_test_base.cc
@@ -116,12 +116,12 @@ void AuthenticatorTestBase::RunChannelAuth(bool expected_fail) {
client_fake_socket_->PairWith(host_fake_socket_.get());
client_auth_->SecureAndAuthenticate(
- client_fake_socket_.Pass(),
+ std::move(client_fake_socket_),
base::Bind(&AuthenticatorTestBase::OnClientConnected,
base::Unretained(this)));
host_auth_->SecureAndAuthenticate(
- host_fake_socket_.Pass(),
+ std::move(host_fake_socket_),
base::Bind(&AuthenticatorTestBase::OnHostConnected,
base::Unretained(this)));
@@ -160,14 +160,14 @@ void AuthenticatorTestBase::OnHostConnected(
int error,
scoped_ptr<P2PStreamSocket> socket) {
host_callback_.OnDone(error);
- host_socket_ = socket.Pass();
+ host_socket_ = std::move(socket);
}
void AuthenticatorTestBase::OnClientConnected(
int error,
scoped_ptr<P2PStreamSocket> socket) {
client_callback_.OnDone(error);
- client_socket_ = socket.Pass();
+ client_socket_ = std::move(socket);
}
} // namespace protocol
« no previous file with comments | « no previous file | remoting/protocol/capture_scheduler.cc » ('j') | remoting/protocol/fake_authenticator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698