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

Side by Side Diff: net/dns/mock_mdns_socket_factory.h

Issue 99923004: Add support of IP_MULTICAST_IF in UDP sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 9
10 #include "net/dns/mdns_client_impl.h" 10 #include "net/dns/mdns_client_impl.h"
(...skipping 28 matching lines...) Expand all
39 MOCK_METHOD0(Close, void()); 39 MOCK_METHOD0(Close, void());
40 40
41 MOCK_CONST_METHOD1(GetPeerAddress, int(IPEndPoint* address)); 41 MOCK_CONST_METHOD1(GetPeerAddress, int(IPEndPoint* address));
42 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 42 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
43 MOCK_CONST_METHOD0(NetLog, const BoundNetLog&()); 43 MOCK_CONST_METHOD0(NetLog, const BoundNetLog&());
44 44
45 MOCK_METHOD0(AllowAddressReuse, void()); 45 MOCK_METHOD0(AllowAddressReuse, void());
46 MOCK_METHOD0(AllowBroadcast, void()); 46 MOCK_METHOD0(AllowBroadcast, void());
47 47
48 MOCK_CONST_METHOD1(JoinGroup, int(const IPAddressNumber& group_address)); 48 MOCK_CONST_METHOD1(JoinGroup, int(const IPAddressNumber& group_address));
49
50 MOCK_CONST_METHOD1(LeaveGroup, int(const IPAddressNumber& address)); 49 MOCK_CONST_METHOD1(LeaveGroup, int(const IPAddressNumber& address));
51 50
51 MOCK_METHOD1(SetMulticastInterface, int(uint32 interface_index));
52 MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl)); 52 MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl));
53
54 MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback)); 53 MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback));
55 54
56 MOCK_METHOD1(SetDiffServCodePoint, int(DiffServCodePoint dscp)); 55 MOCK_METHOD1(SetDiffServCodePoint, int(DiffServCodePoint dscp));
57 56
58 void SetResponsePacket(std::string response_packet); 57 void SetResponsePacket(std::string response_packet);
59 58
60 int HandleRecvNow(IOBuffer* buffer, int size, IPEndPoint* address, 59 int HandleRecvNow(IOBuffer* buffer, int size, IPEndPoint* address,
61 const CompletionCallback& callback); 60 const CompletionCallback& callback);
62 61
63 int HandleRecvLater(IOBuffer* buffer, int size, IPEndPoint* address, 62 int HandleRecvLater(IOBuffer* buffer, int size, IPEndPoint* address,
(...skipping 30 matching lines...) Expand all
94 ScopedVector<DatagramServerSocket>* sockets); 93 ScopedVector<DatagramServerSocket>* sockets);
95 94
96 scoped_refptr<IOBuffer> recv_buffer_; 95 scoped_refptr<IOBuffer> recv_buffer_;
97 int recv_buffer_size_; 96 int recv_buffer_size_;
98 CompletionCallback recv_callback_; 97 CompletionCallback recv_callback_;
99 }; 98 };
100 99
101 } // namespace net 100 } // namespace net
102 101
103 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ 102 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_udp_unittest.cc ('k') | net/udp/datagram_server_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698