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

Unified Diff: jingle/glue/chrome_async_socket_unittest.cc

Issue 1550693002: Global conversion of Pass()→std::move() on Linux (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 | « jingle/glue/chrome_async_socket.cc ('k') | jingle/glue/fake_ssl_client_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/glue/chrome_async_socket_unittest.cc
diff --git a/jingle/glue/chrome_async_socket_unittest.cc b/jingle/glue/chrome_async_socket_unittest.cc
index 79fdb683d2350a9750d04ca08fd56772f5153feb..fd8193da52b51309303a6d053b0c7b31452e1481 100644
--- a/jingle/glue/chrome_async_socket_unittest.cc
+++ b/jingle/glue/chrome_async_socket_unittest.cc
@@ -5,9 +5,9 @@
#include "jingle/glue/chrome_async_socket.h"
#include <stddef.h>
-
#include <deque>
#include <string>
+#include <utility>
#include "base/logging.h"
#include "base/macros.h"
@@ -137,7 +137,7 @@ class MockXmppClientSocketFactory : public ResolvingClientSocketFactory {
context.cert_verifier = cert_verifier_.get();
context.transport_security_state = transport_security_state_.get();
return mock_client_socket_factory_->CreateSSLClientSocket(
- transport_socket.Pass(), host_and_port, ssl_config_, context);
+ std::move(transport_socket), host_and_port, ssl_config_, context);
}
private:
@@ -161,7 +161,7 @@ class ChromeAsyncSocketTest
// when called.
// Explicitly create a MessagePumpDefault which can run in this enivronment.
scoped_ptr<base::MessagePump> pump(new base::MessagePumpDefault());
- message_loop_.reset(new base::MessageLoop(pump.Pass()));
+ message_loop_.reset(new base::MessageLoop(std::move(pump)));
}
~ChromeAsyncSocketTest() override {}
« no previous file with comments | « jingle/glue/chrome_async_socket.cc ('k') | jingle/glue/fake_ssl_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698