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

Unified Diff: net/udp/udp_socket_perftest.cc

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu Created 4 years, 8 months 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/udp/udp_net_log_parameters.cc ('k') | net/udp/udp_socket_posix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/udp_socket_perftest.cc
diff --git a/net/udp/udp_socket_perftest.cc b/net/udp/udp_socket_perftest.cc
index 67804a7e9fdd08ac97c91bae13b2bde244dd816b..8441a0ecdc4066f056baae3ca64f29629b02a7ad 100644
--- a/net/udp/udp_socket_perftest.cc
+++ b/net/udp/udp_socket_perftest.cc
@@ -88,7 +88,7 @@ void UDPSocketPerfTest::WriteBenchmark(bool use_nonblocking_io) {
// Setup the server to listen.
IPEndPoint bind_address;
CreateUDPAddress("127.0.0.1", kPort, &bind_address);
- scoped_ptr<UDPServerSocket> server(
+ std::unique_ptr<UDPServerSocket> server(
new UDPServerSocket(nullptr, NetLog::Source()));
#if defined(OS_WIN)
if (use_nonblocking_io)
@@ -100,7 +100,7 @@ void UDPSocketPerfTest::WriteBenchmark(bool use_nonblocking_io) {
// Setup the client.
IPEndPoint server_address;
CreateUDPAddress("127.0.0.1", kPort, &server_address);
- scoped_ptr<UDPClientSocket> client(
+ std::unique_ptr<UDPClientSocket> client(
new UDPClientSocket(DatagramSocket::DEFAULT_BIND, RandIntCallback(),
nullptr, NetLog::Source()));
#if defined(OS_WIN)
« no previous file with comments | « net/udp/udp_net_log_parameters.cc ('k') | net/udp/udp_socket_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698