summaryrefslogtreecommitdiffstats
path: root/net/socket
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-12-29 18:07:29 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-30 02:08:29 +0000
commit4de264fefd402143d2f4874ae51e601001ff80f6 (patch)
tree34f94e5b86bb339bc6d8c6f2d8fe45ad9a123b79 /net/socket
parentd5ccdf12f8f65b6dcaad74acc86aa76e2ed015d5 (diff)
downloadchromium_src-4de264fefd402143d2f4874ae51e601001ff80f6.zip
chromium_src-4de264fefd402143d2f4874ae51e601001ff80f6.tar.gz
chromium_src-4de264fefd402143d2f4874ae51e601001ff80f6.tar.bz2
Global conversion of Pass()→std::move() on OS=android
(╯^□^)╯︵ ❄☃❄ BUG=557422 R=avi@chromium.org TBR=jam@chromium.org Review URL: https://codereview.chromium.org/1557553002 Cr-Commit-Position: refs/heads/master@{#367133}
Diffstat (limited to 'net/socket')
-rw-r--r--net/socket/ssl_client_socket_openssl_unittest.cc17
1 files changed, 7 insertions, 10 deletions
diff --git a/net/socket/ssl_client_socket_openssl_unittest.cc b/net/socket/ssl_client_socket_openssl_unittest.cc
index 9aa49a0..a1ab91a 100644
--- a/net/socket/ssl_client_socket_openssl_unittest.cc
+++ b/net/socket/ssl_client_socket_openssl_unittest.cc
@@ -5,13 +5,13 @@
#include "net/socket/ssl_client_socket.h"
#include <errno.h>
-#include <string.h>
-
#include <openssl/bio.h>
#include <openssl/bn.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
+#include <string.h>
+#include <utility>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
@@ -99,11 +99,9 @@ class SSLClientSocketOpenSSLClientAuthTest : public PlatformTest {
const HostPortPair& host_and_port,
const SSLConfig& ssl_config) {
scoped_ptr<ClientSocketHandle> connection(new ClientSocketHandle);
- connection->SetSocket(transport_socket.Pass());
- return socket_factory_->CreateSSLClientSocket(connection.Pass(),
- host_and_port,
- ssl_config,
- context_);
+ connection->SetSocket(std::move(transport_socket));
+ return socket_factory_->CreateSSLClientSocket(
+ std::move(connection), host_and_port, ssl_config, context_);
}
// Connect to a HTTPS test server.
@@ -153,9 +151,8 @@ class SSLClientSocketOpenSSLClientAuthTest : public PlatformTest {
// itself was a success.
bool CreateAndConnectSSLClientSocket(const SSLConfig& ssl_config,
int* result) {
- sock_ = CreateSSLClientSocket(transport_.Pass(),
- test_server_->host_port_pair(),
- ssl_config);
+ sock_ = CreateSSLClientSocket(std::move(transport_),
+ test_server_->host_port_pair(), ssl_config);
if (sock_->IsConnected()) {
LOG(ERROR) << "SSL Socket prematurely connected";