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

Unified Diff: remoting/protocol/channel_multiplexer_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/channel_multiplexer_unittest.cc
diff --git a/remoting/protocol/channel_multiplexer_unittest.cc b/remoting/protocol/channel_multiplexer_unittest.cc
index 72e649514a54b08dcba9c24488f6df0c110246ac..4a0abc863cc97ff4d163bc0ad42f52a9c1a51aa4 100644
--- a/remoting/protocol/channel_multiplexer_unittest.cc
+++ b/remoting/protocol/channel_multiplexer_unittest.cc
@@ -104,7 +104,7 @@ class ChannelMultiplexerTest : public testing::Test {
scoped_ptr<P2PStreamSocket>* storage,
int* counter,
scoped_ptr<P2PStreamSocket> socket) {
- *storage = socket.Pass();
+ *storage = std::move(socket);
--(*counter);
EXPECT_GE(*counter, 0);
if (*counter == 0)

Powered by Google App Engine
This is Rietveld 408576698