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

Unified Diff: remoting/protocol/connection_unittest.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
Index: remoting/protocol/connection_unittest.cc
diff --git a/remoting/protocol/connection_unittest.cc b/remoting/protocol/connection_unittest.cc
index e95abcce7056919860358a5ec0eb1ae733e8cd82..9e32163f34184a9dd29c2d406a70c311de5226e9 100644
--- a/remoting/protocol/connection_unittest.cc
+++ b/remoting/protocol/connection_unittest.cc
@@ -107,7 +107,7 @@ class ConnectionTest : public testing::Test,
OnConnectionState(ConnectionToHost::CONNECTED, OK));
}
- client_connection_->Connect(owned_client_session_.Pass(),
+ client_connection_->Connect(std::move(owned_client_session_),
&client_event_handler_);
client_session_->SimulateConnection(host_session_);
base::RunLoop().RunUntilIdle();
@@ -149,7 +149,7 @@ TEST_P(ConnectionTest, RejectConnection) {
EXPECT_CALL(client_event_handler_,
OnConnectionState(ConnectionToHost::CLOSED, OK));
- client_connection_->Connect(owned_client_session_.Pass(),
+ client_connection_->Connect(std::move(owned_client_session_),
&client_event_handler_);
client_session_->event_handler()->OnSessionStateChange(Session::CLOSED);
}

Powered by Google App Engine
This is Rietveld 408576698