| 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 25 matching lines...) Expand all Loading... |
| 36 MOCK_METHOD1(SetReceiveBufferSize, int(int32 size)); | 36 MOCK_METHOD1(SetReceiveBufferSize, int(int32 size)); |
| 37 MOCK_METHOD1(SetSendBufferSize, int(int32 size)); | 37 MOCK_METHOD1(SetSendBufferSize, int(int32 size)); |
| 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_METHOD1(SetBroadcast, int(bool)); |
| 47 | 47 |
| 48 MOCK_CONST_METHOD1(JoinGroup, int(const IPAddressNumber& group_address)); | 48 MOCK_CONST_METHOD1(JoinGroup, int(const IPAddressNumber& group_address)); |
| 49 MOCK_CONST_METHOD1(LeaveGroup, int(const IPAddressNumber& address)); | 49 MOCK_CONST_METHOD1(LeaveGroup, int(const IPAddressNumber& address)); |
| 50 | 50 |
| 51 MOCK_METHOD1(SetMulticastInterface, int(uint32 interface_index)); | 51 MOCK_METHOD1(SetMulticastInterface, int(uint32 interface_index)); |
| 52 MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl)); | 52 MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl)); |
| 53 MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback)); | 53 MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback)); |
| 54 | 54 |
| 55 MOCK_METHOD1(SetDiffServCodePoint, int(DiffServCodePoint dscp)); | 55 MOCK_METHOD1(SetDiffServCodePoint, int(DiffServCodePoint dscp)); |
| 56 | 56 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 ScopedVector<DatagramServerSocket>* sockets); | 95 ScopedVector<DatagramServerSocket>* sockets); |
| 96 | 96 |
| 97 scoped_refptr<IOBuffer> recv_buffer_; | 97 scoped_refptr<IOBuffer> recv_buffer_; |
| 98 int recv_buffer_size_; | 98 int recv_buffer_size_; |
| 99 CompletionCallback recv_callback_; | 99 CompletionCallback recv_callback_; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace net | 102 } // namespace net |
| 103 | 103 |
| 104 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ | 104 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ |
| OLD | NEW |