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

Unified Diff: remoting/signaling/xmpp_signal_strategy_unittest.cc

Issue 1545723002: Use std::move() instead of .Pass() in remoting/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_host
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 | « remoting/signaling/xmpp_signal_strategy.cc ('k') | remoting/signaling/xmpp_stream_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/xmpp_signal_strategy_unittest.cc
diff --git a/remoting/signaling/xmpp_signal_strategy_unittest.cc b/remoting/signaling/xmpp_signal_strategy_unittest.cc
index 82a2ed8fa1a901cc576d13edf36b925cc67dcfcf..fcfdce70bae4154b9d0b26844b6aa5bd0de909cc 100644
--- a/remoting/signaling/xmpp_signal_strategy_unittest.cc
+++ b/remoting/signaling/xmpp_signal_strategy_unittest.cc
@@ -4,6 +4,8 @@
#include "remoting/signaling/xmpp_signal_strategy.h"
+#include <utility>
+
#include "base/base64.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
@@ -94,7 +96,7 @@ class MockClientSocketFactory : public net::MockClientSocketFactory {
const net::SSLClientSocketContext& context) override {
ssl_socket_created_ = true;
return net::MockClientSocketFactory::CreateSSLClientSocket(
- transport_socket.Pass(), host_and_port, ssl_config, context);
+ std::move(transport_socket), host_and_port, ssl_config, context);
}
bool ssl_socket_created() const { return ssl_socket_created_; }
@@ -115,10 +117,9 @@ class XmppSignalStrategyTest : public testing::Test,
XmppSignalStrategyTest() : message_loop_(base::MessageLoop::TYPE_IO) {}
void SetUp() override {
- scoped_ptr<net::TestURLRequestContext> context(
- new net::TestURLRequestContext());
request_context_getter_ = new net::TestURLRequestContextGetter(
- message_loop_.task_runner(), context.Pass());
+ message_loop_.task_runner(),
+ make_scoped_ptr(new net::TestURLRequestContext()));
}
void CreateSignalStrategy(int port) {
« no previous file with comments | « remoting/signaling/xmpp_signal_strategy.cc ('k') | remoting/signaling/xmpp_stream_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698