| OLD | NEW |
| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 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_METHOD1(SetMulticastInterface, int(uint32 interface_index)); |
| 49 | 49 MOCK_METHOD1(JoinGroup, int(const IPAddressNumber& group_address)); |
| 50 MOCK_CONST_METHOD1(LeaveGroup, int(const IPAddressNumber& address)); | 50 MOCK_METHOD1(LeaveGroup, int(const IPAddressNumber& address)); |
| 51 | |
| 52 MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl)); | 51 MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl)); |
| 53 | |
| 54 MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback)); | 52 MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback)); |
| 55 | 53 |
| 56 MOCK_METHOD1(SetDiffServCodePoint, int(DiffServCodePoint dscp)); | 54 MOCK_METHOD1(SetDiffServCodePoint, int(DiffServCodePoint dscp)); |
| 57 | 55 |
| 58 void SetResponsePacket(std::string response_packet); | 56 void SetResponsePacket(std::string response_packet); |
| 59 | 57 |
| 60 int HandleRecvNow(IOBuffer* buffer, int size, IPEndPoint* address, | 58 int HandleRecvNow(IOBuffer* buffer, int size, IPEndPoint* address, |
| 61 const CompletionCallback& callback); | 59 const CompletionCallback& callback); |
| 62 | 60 |
| 63 int HandleRecvLater(IOBuffer* buffer, int size, IPEndPoint* address, | 61 int HandleRecvLater(IOBuffer* buffer, int size, IPEndPoint* address, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 94 ScopedVector<DatagramServerSocket>* sockets); | 92 ScopedVector<DatagramServerSocket>* sockets); |
| 95 | 93 |
| 96 scoped_refptr<IOBuffer> recv_buffer_; | 94 scoped_refptr<IOBuffer> recv_buffer_; |
| 97 int recv_buffer_size_; | 95 int recv_buffer_size_; |
| 98 CompletionCallback recv_callback_; | 96 CompletionCallback recv_callback_; |
| 99 }; | 97 }; |
| 100 | 98 |
| 101 } // namespace net | 99 } // namespace net |
| 102 | 100 |
| 103 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ | 101 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ |
| OLD | NEW |