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

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

Issue 2235973002: Add a SetDoNotFragment() method to DatagramSocket, and call this for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Blimp Created 4 years, 4 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
« no previous file with comments | « no previous file | jingle/glue/fake_ssl_client_socket.h » ('j') | net/socket/tcp_client_socket.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 class MockStreamSocket : public net::StreamSocket { 105 class MockStreamSocket : public net::StreamSocket {
106 public: 106 public:
107 MockStreamSocket(); 107 MockStreamSocket();
108 virtual ~MockStreamSocket(); 108 virtual ~MockStreamSocket();
109 109
110 MOCK_METHOD3(Read, int(net::IOBuffer*, int, const net::CompletionCallback&)); 110 MOCK_METHOD3(Read, int(net::IOBuffer*, int, const net::CompletionCallback&));
111 MOCK_METHOD3(Write, int(net::IOBuffer*, int, const net::CompletionCallback&)); 111 MOCK_METHOD3(Write, int(net::IOBuffer*, int, const net::CompletionCallback&));
112 MOCK_METHOD1(SetReceiveBufferSize, int(int32_t)); 112 MOCK_METHOD1(SetReceiveBufferSize, int(int32_t));
113 MOCK_METHOD1(SetSendBufferSize, int(int32_t)); 113 MOCK_METHOD1(SetSendBufferSize, int(int32_t));
114 MOCK_METHOD1(SetDoNotFragment, int(bool));
114 MOCK_METHOD1(Connect, int(const net::CompletionCallback&)); 115 MOCK_METHOD1(Connect, int(const net::CompletionCallback&));
115 MOCK_METHOD0(Disconnect, void()); 116 MOCK_METHOD0(Disconnect, void());
116 MOCK_CONST_METHOD0(IsConnected, bool()); 117 MOCK_CONST_METHOD0(IsConnected, bool());
117 MOCK_CONST_METHOD0(IsConnectedAndIdle, bool()); 118 MOCK_CONST_METHOD0(IsConnectedAndIdle, bool());
118 MOCK_CONST_METHOD1(GetPeerAddress, int(net::IPEndPoint*)); 119 MOCK_CONST_METHOD1(GetPeerAddress, int(net::IPEndPoint*));
119 MOCK_CONST_METHOD1(GetLocalAddress, int(net::IPEndPoint*)); 120 MOCK_CONST_METHOD1(GetLocalAddress, int(net::IPEndPoint*));
120 MOCK_CONST_METHOD0(NetLog, const net::BoundNetLog&()); 121 MOCK_CONST_METHOD0(NetLog, const net::BoundNetLog&());
121 MOCK_METHOD0(SetSubresourceSpeculation, void()); 122 MOCK_METHOD0(SetSubresourceSpeculation, void());
122 MOCK_METHOD0(SetOmniboxSpeculation, void()); 123 MOCK_METHOD0(SetOmniboxSpeculation, void());
123 MOCK_CONST_METHOD0(WasEverUsed, bool()); 124 MOCK_CONST_METHOD0(WasEverUsed, bool());
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 const net::CompletionCallback& callback) override; 213 const net::CompletionCallback& callback) override;
213 214
214 MOCK_METHOD2(MockableProcessMessage, 215 MOCK_METHOD2(MockableProcessMessage,
215 void(const BlimpMessage& message, 216 void(const BlimpMessage& message,
216 const net::CompletionCallback& callback)); 217 const net::CompletionCallback& callback));
217 }; 218 };
218 219
219 } // namespace blimp 220 } // namespace blimp
220 221
221 #endif // BLIMP_NET_TEST_COMMON_H_ 222 #endif // BLIMP_NET_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « no previous file | jingle/glue/fake_ssl_client_socket.h » ('j') | net/socket/tcp_client_socket.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698