summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/connection_unittest.cc
diff options
context:
space:
mode:
authorsergeyu <sergeyu@chromium.org>2015-12-22 15:26:48 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-22 23:27:37 +0000
commitaa6fa234d0649238dfddf6eb7aa80d0ddc71e66f (patch)
treed26a4e039ef85bc0ab778fd4392b4247ab0aa56b /remoting/protocol/connection_unittest.cc
parent090adf5b5c636b630d09d124d73d73e494505c3f (diff)
downloadchromium_src-aa6fa234d0649238dfddf6eb7aa80d0ddc71e66f.zip
chromium_src-aa6fa234d0649238dfddf6eb7aa80d0ddc71e66f.tar.gz
chromium_src-aa6fa234d0649238dfddf6eb7aa80d0ddc71e66f.tar.bz2
Use std::move() instead of scoped_ptr<>::Pass() in remoting/protocol
Now there is a presubmit check that doesn't allow Pass() anymore. See https://www.chromium.org/rvalue-references for information about std::move in chromium. Review URL: https://codereview.chromium.org/1534193004 Cr-Commit-Position: refs/heads/master@{#366687}
Diffstat (limited to 'remoting/protocol/connection_unittest.cc')
-rw-r--r--remoting/protocol/connection_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/protocol/connection_unittest.cc b/remoting/protocol/connection_unittest.cc
index 30ff451..4599b09 100644
--- a/remoting/protocol/connection_unittest.cc
+++ b/remoting/protocol/connection_unittest.cc
@@ -108,7 +108,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();
@@ -150,7 +150,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);
}