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

Unified Diff: chrome/browser/extensions/api/socket/tcp_socket_unittest.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: chrome/browser/extensions/api/socket/tcp_socket_unittest.cc
diff --git a/chrome/browser/extensions/api/socket/tcp_socket_unittest.cc b/chrome/browser/extensions/api/socket/tcp_socket_unittest.cc
index 892778d32f167794a12d799852930d812d8bee71..dd435b25afb51347af5d8b33a31018052f294f59 100644
--- a/chrome/browser/extensions/api/socket/tcp_socket_unittest.cc
+++ b/chrome/browser/extensions/api/socket/tcp_socket_unittest.cc
@@ -11,6 +11,7 @@
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/base/rand_callback.h"
+#include "net/log/net_log_source.h"
#include "net/socket/tcp_client_socket.h"
#include "net/socket/tcp_server_socket.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -25,7 +26,7 @@ namespace extensions {
class MockTCPSocket : public net::TCPClientSocket {
public:
explicit MockTCPSocket(const net::AddressList& address_list)
- : net::TCPClientSocket(address_list, NULL, NULL, net::NetLog::Source()) {}
+ : net::TCPClientSocket(address_list, NULL, NULL, net::NetLogSource()) {}
MOCK_METHOD3(Read, int(net::IOBuffer* buf, int buf_len,
const net::CompletionCallback& callback));
@@ -43,7 +44,7 @@ class MockTCPSocket : public net::TCPClientSocket {
class MockTCPServerSocket : public net::TCPServerSocket {
public:
- MockTCPServerSocket() : net::TCPServerSocket(NULL, net::NetLog::Source()) {}
+ MockTCPServerSocket() : net::TCPServerSocket(NULL, net::NetLogSource()) {}
MOCK_METHOD2(Listen, int(const net::IPEndPoint& address, int backlog));
MOCK_METHOD2(Accept,
int(std::unique_ptr<net::StreamSocket>* socket,

Powered by Google App Engine
This is Rietveld 408576698