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 15 matching lines...) Expand all Loading... |
26 IPEndPoint* address, | 26 IPEndPoint* address, |
27 const CompletionCallback& callback)); | 27 const CompletionCallback& callback)); |
28 | 28 |
29 virtual int SendTo(IOBuffer* buf, int buf_len, const IPEndPoint& address, | 29 virtual int SendTo(IOBuffer* buf, int buf_len, const IPEndPoint& address, |
30 const CompletionCallback& callback) OVERRIDE; | 30 const CompletionCallback& callback) OVERRIDE; |
31 | 31 |
32 MOCK_METHOD3(SendToInternal, int(const std::string& packet, | 32 MOCK_METHOD3(SendToInternal, int(const std::string& packet, |
33 const std::string address, | 33 const std::string address, |
34 const CompletionCallback& callback)); | 34 const CompletionCallback& callback)); |
35 | 35 |
36 MOCK_METHOD1(SetReceiveBufferSize, bool(int32 size)); | 36 MOCK_METHOD1(SetReceiveBufferSize, int(int32 size)); |
37 MOCK_METHOD1(SetSendBufferSize, bool(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_METHOD0(AllowBroadcast, void()); |
47 | 47 |
(...skipping 47 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 |