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

Side by Side Diff: chrome/browser/extensions/api/socket/tls_socket_unittest.cc

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <deque> 8 #include <deque>
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 MOCK_METHOD3(Write, 44 MOCK_METHOD3(Write,
45 int(net::IOBuffer* buf, 45 int(net::IOBuffer* buf,
46 int buf_len, 46 int buf_len,
47 const net::CompletionCallback& callback)); 47 const net::CompletionCallback& callback));
48 MOCK_METHOD1(SetReceiveBufferSize, int(int32_t)); 48 MOCK_METHOD1(SetReceiveBufferSize, int(int32_t));
49 MOCK_METHOD1(SetSendBufferSize, int(int32_t)); 49 MOCK_METHOD1(SetSendBufferSize, int(int32_t));
50 MOCK_METHOD1(Connect, int(const CompletionCallback&)); 50 MOCK_METHOD1(Connect, int(const CompletionCallback&));
51 MOCK_CONST_METHOD0(IsConnectedAndIdle, bool()); 51 MOCK_CONST_METHOD0(IsConnectedAndIdle, bool());
52 MOCK_CONST_METHOD1(GetPeerAddress, int(net::IPEndPoint*)); 52 MOCK_CONST_METHOD1(GetPeerAddress, int(net::IPEndPoint*));
53 MOCK_CONST_METHOD1(GetLocalAddress, int(net::IPEndPoint*)); 53 MOCK_CONST_METHOD1(GetLocalAddress, int(net::IPEndPoint*));
54 MOCK_CONST_METHOD0(NetLog, const net::BoundNetLog&()); 54 MOCK_CONST_METHOD0(NetLog, const net::NetLogWithSource&());
55 MOCK_METHOD0(SetSubresourceSpeculation, void()); 55 MOCK_METHOD0(SetSubresourceSpeculation, void());
56 MOCK_METHOD0(SetOmniboxSpeculation, void()); 56 MOCK_METHOD0(SetOmniboxSpeculation, void());
57 MOCK_CONST_METHOD0(WasEverUsed, bool()); 57 MOCK_CONST_METHOD0(WasEverUsed, bool());
58 MOCK_CONST_METHOD0(UsingTCPFastOpen, bool()); 58 MOCK_CONST_METHOD0(UsingTCPFastOpen, bool());
59 MOCK_CONST_METHOD0(WasNpnNegotiated, bool()); 59 MOCK_CONST_METHOD0(WasNpnNegotiated, bool());
60 MOCK_CONST_METHOD0(GetNegotiatedProtocol, net::NextProto()); 60 MOCK_CONST_METHOD0(GetNegotiatedProtocol, net::NextProto());
61 MOCK_METHOD1(GetSSLInfo, bool(net::SSLInfo*)); 61 MOCK_METHOD1(GetSSLInfo, bool(net::SSLInfo*));
62 MOCK_CONST_METHOD1(GetConnectionAttempts, void(net::ConnectionAttempts*)); 62 MOCK_CONST_METHOD1(GetConnectionAttempts, void(net::ConnectionAttempts*));
63 MOCK_METHOD0(ClearConnectionAttempts, void()); 63 MOCK_METHOD0(ClearConnectionAttempts, void());
64 MOCK_METHOD1(AddConnectionAttempts, void(const net::ConnectionAttempts&)); 64 MOCK_METHOD1(AddConnectionAttempts, void(const net::ConnectionAttempts&));
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 total_bytes_written += amount_written_invocation; 316 total_bytes_written += amount_written_invocation;
317 cb.first.Run(amount_written_invocation); 317 cb.first.Run(amount_written_invocation);
318 } 318 }
319 319
320 ASSERT_EQ(total_bytes_requested, total_bytes_written) 320 ASSERT_EQ(total_bytes_requested, total_bytes_written)
321 << "There should be exactly as many bytes written as originally " 321 << "There should be exactly as many bytes written as originally "
322 << "requested to Write()."; 322 << "requested to Write().";
323 } 323 }
324 324
325 } // namespace extensions 325 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698