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

Unified Diff: net/udp/udp_socket_perftest.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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
Index: net/udp/udp_socket_perftest.cc
diff --git a/net/udp/udp_socket_perftest.cc b/net/udp/udp_socket_perftest.cc
index 059d019c92fc0d06cd513db31e87de2f29db9b17..e89968ed1db20aa07b1a49b51fa551530cfe2ebf 100644
--- a/net/udp/udp_socket_perftest.cc
+++ b/net/udp/udp_socket_perftest.cc
@@ -11,6 +11,7 @@
#include "net/base/ip_endpoint.h"
#include "net/base/net_errors.h"
#include "net/base/test_completion_callback.h"
+#include "net/log/net_log_source.h"
#include "net/test/gtest_util.h"
#include "net/test/net_test_suite.h"
#include "net/udp/udp_client_socket.h"
@@ -93,7 +94,7 @@ void UDPSocketPerfTest::WriteBenchmark(bool use_nonblocking_io) {
IPEndPoint bind_address;
CreateUDPAddress("127.0.0.1", kPort, &bind_address);
std::unique_ptr<UDPServerSocket> server(
- new UDPServerSocket(nullptr, NetLog::Source()));
+ new UDPServerSocket(nullptr, NetLogSource()));
if (use_nonblocking_io)
server->UseNonBlockingIO();
int rv = server->Listen(bind_address);
@@ -104,7 +105,7 @@ void UDPSocketPerfTest::WriteBenchmark(bool use_nonblocking_io) {
CreateUDPAddress("127.0.0.1", kPort, &server_address);
std::unique_ptr<UDPClientSocket> client(
new UDPClientSocket(DatagramSocket::DEFAULT_BIND, RandIntCallback(),
- nullptr, NetLog::Source()));
+ nullptr, NetLogSource()));
if (use_nonblocking_io)
client->UseNonBlockingIO();
rv = client->Connect(server_address);

Powered by Google App Engine
This is Rietveld 408576698