| 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 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, int()); |
| 46 MOCK_METHOD0(AllowBroadcast, void()); | 46 MOCK_METHOD0(DisallowAddressReuse, int()); |
| 47 MOCK_METHOD0(AllowBroadcast, int()); |
| 48 MOCK_METHOD0(DisallowBroadcast, int()); |
| 47 | 49 |
| 48 MOCK_CONST_METHOD1(JoinGroup, int(const IPAddressNumber& group_address)); | 50 MOCK_CONST_METHOD1(JoinGroup, int(const IPAddressNumber& group_address)); |
| 49 MOCK_CONST_METHOD1(LeaveGroup, int(const IPAddressNumber& address)); | 51 MOCK_CONST_METHOD1(LeaveGroup, int(const IPAddressNumber& address)); |
| 50 | 52 |
| 51 MOCK_METHOD1(SetMulticastInterface, int(uint32 interface_index)); | 53 MOCK_METHOD1(SetMulticastInterface, int(uint32 interface_index)); |
| 52 MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl)); | 54 MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl)); |
| 53 MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback)); | 55 MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback)); |
| 54 | 56 |
| 55 MOCK_METHOD1(SetDiffServCodePoint, int(DiffServCodePoint dscp)); | 57 MOCK_METHOD1(SetDiffServCodePoint, int(DiffServCodePoint dscp)); |
| 56 | 58 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 ScopedVector<DatagramServerSocket>* sockets); | 97 ScopedVector<DatagramServerSocket>* sockets); |
| 96 | 98 |
| 97 scoped_refptr<IOBuffer> recv_buffer_; | 99 scoped_refptr<IOBuffer> recv_buffer_; |
| 98 int recv_buffer_size_; | 100 int recv_buffer_size_; |
| 99 CompletionCallback recv_callback_; | 101 CompletionCallback recv_callback_; |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 } // namespace net | 104 } // namespace net |
| 103 | 105 |
| 104 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ | 106 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ |
| OLD | NEW |