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

Unified Diff: net/socket/ssl_server_socket_unittest.cc

Issue 1545233002: Convert Pass()→std::move() in //net (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 | « net/socket/ssl_server_socket_openssl.cc ('k') | net/socket/tcp_client_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_server_socket_unittest.cc
diff --git a/net/socket/ssl_server_socket_unittest.cc b/net/socket/ssl_server_socket_unittest.cc
index c6937b986b8884df272e8668536abe6b91b1b093..1419f5c67b980603cbe538445f0f742994b04dfd 100644
--- a/net/socket/ssl_server_socket_unittest.cc
+++ b/net/socket/ssl_server_socket_unittest.cc
@@ -17,8 +17,8 @@
#include <stdint.h>
#include <stdlib.h>
-
#include <queue>
+#include <utility>
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
@@ -348,9 +348,10 @@ class SSLServerSocketTest : public PlatformTest {
context.cert_verifier = cert_verifier_.get();
context.transport_security_state = transport_security_state_.get();
client_socket_ = socket_factory_->CreateSSLClientSocket(
- client_connection.Pass(), host_and_pair, client_ssl_config_, context);
+ std::move(client_connection), host_and_pair, client_ssl_config_,
+ context);
server_socket_ =
- CreateSSLServerSocket(server_socket.Pass(), cert.get(),
+ CreateSSLServerSocket(std::move(server_socket), cert.get(),
private_key.get(), server_ssl_config_);
}
« no previous file with comments | « net/socket/ssl_server_socket_openssl.cc ('k') | net/socket/tcp_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698