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

Side by Side Diff: net/dns/mock_mdns_socket_factory.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: Rebase 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 | « net/dns/address_sorter_posix_unittest.cc ('k') | net/quic/chromium/quic_stream_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ 5 #ifndef NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_
6 #define NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ 6 #define NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 25 matching lines...) Expand all
36 int buf_len, 36 int buf_len,
37 const IPEndPoint& address, 37 const IPEndPoint& address,
38 const CompletionCallback& callback) override; 38 const CompletionCallback& callback) override;
39 39
40 MOCK_METHOD3(SendToInternal, int(const std::string& packet, 40 MOCK_METHOD3(SendToInternal, int(const std::string& packet,
41 const std::string address, 41 const std::string address,
42 const CompletionCallback& callback)); 42 const CompletionCallback& callback));
43 43
44 MOCK_METHOD1(SetReceiveBufferSize, int(int32_t size)); 44 MOCK_METHOD1(SetReceiveBufferSize, int(int32_t size));
45 MOCK_METHOD1(SetSendBufferSize, int(int32_t size)); 45 MOCK_METHOD1(SetSendBufferSize, int(int32_t size));
46 MOCK_METHOD0(SetDoNotFragment, int());
46 47
47 MOCK_METHOD0(Close, void()); 48 MOCK_METHOD0(Close, void());
48 49
49 MOCK_CONST_METHOD1(GetPeerAddress, int(IPEndPoint* address)); 50 MOCK_CONST_METHOD1(GetPeerAddress, int(IPEndPoint* address));
50 int GetLocalAddress(IPEndPoint* address) const override; 51 int GetLocalAddress(IPEndPoint* address) const override;
51 MOCK_METHOD0(UseNonBlockingIO, void()); 52 MOCK_METHOD0(UseNonBlockingIO, void());
52 MOCK_CONST_METHOD0(NetLog, const BoundNetLog&()); 53 MOCK_CONST_METHOD0(NetLog, const BoundNetLog&());
53 54
54 MOCK_METHOD0(AllowAddressReuse, void()); 55 MOCK_METHOD0(AllowAddressReuse, void());
55 MOCK_METHOD0(AllowBroadcast, void()); 56 MOCK_METHOD0(AllowBroadcast, void());
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 std::vector<std::unique_ptr<DatagramServerSocket>>* sockets); 106 std::vector<std::unique_ptr<DatagramServerSocket>>* sockets);
106 107
107 scoped_refptr<IOBuffer> recv_buffer_; 108 scoped_refptr<IOBuffer> recv_buffer_;
108 int recv_buffer_size_; 109 int recv_buffer_size_;
109 CompletionCallback recv_callback_; 110 CompletionCallback recv_callback_;
110 }; 111 };
111 112
112 } // namespace net 113 } // namespace net
113 114
114 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ 115 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_
OLDNEW
« no previous file with comments | « net/dns/address_sorter_posix_unittest.cc ('k') | net/quic/chromium/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698