Index: net/socket/socks_client_socket_fuzzer.cc |
diff --git a/net/socket/socks_client_socket_fuzzer.cc b/net/socket/socks_client_socket_fuzzer.cc |
index 1c16921e6e0d56263b1230518542f679300e9425..ef3a9e4eaa4f138d96715cbdf9c72a3983f83579 100644 |
--- a/net/socket/socks_client_socket_fuzzer.cc |
+++ b/net/socket/socks_client_socket_fuzzer.cc |
@@ -2,13 +2,12 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "net/socket/socks_client_socket.h" |
- |
#include <stddef.h> |
#include <stdint.h> |
+#include <memory> |
+ |
#include "base/logging.h" |
-#include "base/memory/scoped_ptr.h" |
#include "base/message_loop/message_loop.h" |
#include "net/base/address_list.h" |
#include "net/base/net_errors.h" |
@@ -18,6 +17,7 @@ |
#include "net/log/test_net_log.h" |
#include "net/socket/client_socket_handle.h" |
#include "net/socket/fuzzed_socket.h" |
+#include "net/socket/socks_client_socket.h" |
// Fuzzer for SocksClientSocket. Only covers the SOCKS4 handshake. |
// |
@@ -56,11 +56,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
mock_host_resolver.set_rules(rules.get()); |
net::TestCompletionCallback callback; |
- scoped_ptr<net::FuzzedSocket> fuzzed_socket( |
+ std::unique_ptr<net::FuzzedSocket> fuzzed_socket( |
new net::FuzzedSocket(data, size, bound_test_net_log.bound())); |
CHECK_EQ(net::OK, fuzzed_socket->Connect(callback.callback())); |
- scoped_ptr<net::ClientSocketHandle> socket_handle( |
+ std::unique_ptr<net::ClientSocketHandle> socket_handle( |
new net::ClientSocketHandle()); |
socket_handle->SetSocket(std::move(fuzzed_socket)); |