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

Side by Side Diff: blimp/net/test_common.h

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef BLIMP_NET_TEST_COMMON_H_ 5 #ifndef BLIMP_NET_TEST_COMMON_H_
6 #define BLIMP_NET_TEST_COMMON_H_ 6 #define BLIMP_NET_TEST_COMMON_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 MOCK_METHOD3(Read, int(net::IOBuffer*, int, const net::CompletionCallback&)); 111 MOCK_METHOD3(Read, int(net::IOBuffer*, int, const net::CompletionCallback&));
112 MOCK_METHOD3(Write, int(net::IOBuffer*, int, const net::CompletionCallback&)); 112 MOCK_METHOD3(Write, int(net::IOBuffer*, int, const net::CompletionCallback&));
113 MOCK_METHOD1(SetReceiveBufferSize, int(int32_t)); 113 MOCK_METHOD1(SetReceiveBufferSize, int(int32_t));
114 MOCK_METHOD1(SetSendBufferSize, int(int32_t)); 114 MOCK_METHOD1(SetSendBufferSize, int(int32_t));
115 MOCK_METHOD1(Connect, int(const net::CompletionCallback&)); 115 MOCK_METHOD1(Connect, int(const net::CompletionCallback&));
116 MOCK_METHOD0(Disconnect, void()); 116 MOCK_METHOD0(Disconnect, void());
117 MOCK_CONST_METHOD0(IsConnected, bool()); 117 MOCK_CONST_METHOD0(IsConnected, bool());
118 MOCK_CONST_METHOD0(IsConnectedAndIdle, bool()); 118 MOCK_CONST_METHOD0(IsConnectedAndIdle, bool());
119 MOCK_CONST_METHOD1(GetPeerAddress, int(net::IPEndPoint*)); 119 MOCK_CONST_METHOD1(GetPeerAddress, int(net::IPEndPoint*));
120 MOCK_CONST_METHOD1(GetLocalAddress, int(net::IPEndPoint*)); 120 MOCK_CONST_METHOD1(GetLocalAddress, int(net::IPEndPoint*));
121 MOCK_CONST_METHOD0(NetLog, const net::BoundNetLog&()); 121 MOCK_CONST_METHOD0(NetLog, const net::NetLogWithSource&());
122 MOCK_METHOD0(SetSubresourceSpeculation, void()); 122 MOCK_METHOD0(SetSubresourceSpeculation, void());
123 MOCK_METHOD0(SetOmniboxSpeculation, void()); 123 MOCK_METHOD0(SetOmniboxSpeculation, void());
124 MOCK_CONST_METHOD0(WasEverUsed, bool()); 124 MOCK_CONST_METHOD0(WasEverUsed, bool());
125 MOCK_CONST_METHOD0(UsingTCPFastOpen, bool()); 125 MOCK_CONST_METHOD0(UsingTCPFastOpen, bool());
126 MOCK_CONST_METHOD0(NumBytesRead, int64_t()); 126 MOCK_CONST_METHOD0(NumBytesRead, int64_t());
127 MOCK_CONST_METHOD0(GetConnectTimeMicros, base::TimeDelta()); 127 MOCK_CONST_METHOD0(GetConnectTimeMicros, base::TimeDelta());
128 MOCK_CONST_METHOD0(WasNpnNegotiated, bool()); 128 MOCK_CONST_METHOD0(WasNpnNegotiated, bool());
129 MOCK_CONST_METHOD0(GetNegotiatedProtocol, net::NextProto()); 129 MOCK_CONST_METHOD0(GetNegotiatedProtocol, net::NextProto());
130 MOCK_METHOD1(GetSSLInfo, bool(net::SSLInfo*)); 130 MOCK_METHOD1(GetSSLInfo, bool(net::SSLInfo*));
131 MOCK_CONST_METHOD1(GetConnectionAttempts, void(net::ConnectionAttempts*)); 131 MOCK_CONST_METHOD1(GetConnectionAttempts, void(net::ConnectionAttempts*));
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 const net::CompletionCallback& callback) override; 213 const net::CompletionCallback& callback) override;
214 214
215 MOCK_METHOD2(MockableProcessMessage, 215 MOCK_METHOD2(MockableProcessMessage,
216 void(const BlimpMessage& message, 216 void(const BlimpMessage& message,
217 const net::CompletionCallback& callback)); 217 const net::CompletionCallback& callback));
218 }; 218 };
219 219
220 } // namespace blimp 220 } // namespace blimp
221 221
222 #endif // BLIMP_NET_TEST_COMMON_H_ 222 #endif // BLIMP_NET_TEST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698