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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 MOCK_METHOD1(SetReceiveBufferSize, int(int32_t size)); | 44 MOCK_METHOD1(SetReceiveBufferSize, int(int32_t size)); |
45 MOCK_METHOD1(SetSendBufferSize, int(int32_t size)); | 45 MOCK_METHOD1(SetSendBufferSize, int(int32_t size)); |
46 MOCK_METHOD0(SetDoNotFragment, int()); | 46 MOCK_METHOD0(SetDoNotFragment, int()); |
47 | 47 |
48 MOCK_METHOD0(Close, void()); | 48 MOCK_METHOD0(Close, void()); |
49 | 49 |
50 MOCK_CONST_METHOD1(GetPeerAddress, int(IPEndPoint* address)); | 50 MOCK_CONST_METHOD1(GetPeerAddress, int(IPEndPoint* address)); |
51 int GetLocalAddress(IPEndPoint* address) const override; | 51 int GetLocalAddress(IPEndPoint* address) const override; |
52 MOCK_METHOD0(UseNonBlockingIO, void()); | 52 MOCK_METHOD0(UseNonBlockingIO, void()); |
53 MOCK_CONST_METHOD0(NetLog, const BoundNetLog&()); | 53 MOCK_CONST_METHOD0(NetLog, const NetLogWithSource&()); |
54 | 54 |
55 MOCK_METHOD0(AllowAddressReuse, void()); | 55 MOCK_METHOD0(AllowAddressReuse, void()); |
56 MOCK_METHOD0(AllowBroadcast, void()); | 56 MOCK_METHOD0(AllowBroadcast, void()); |
57 | 57 |
58 MOCK_CONST_METHOD1(JoinGroup, int(const IPAddress& group_address)); | 58 MOCK_CONST_METHOD1(JoinGroup, int(const IPAddress& group_address)); |
59 MOCK_CONST_METHOD1(LeaveGroup, int(const IPAddress& address)); | 59 MOCK_CONST_METHOD1(LeaveGroup, int(const IPAddress& address)); |
60 | 60 |
61 MOCK_METHOD1(SetMulticastInterface, int(uint32_t interface_index)); | 61 MOCK_METHOD1(SetMulticastInterface, int(uint32_t interface_index)); |
62 MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl)); | 62 MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl)); |
63 MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback)); | 63 MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback)); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 std::vector<std::unique_ptr<DatagramServerSocket>>* sockets); | 106 std::vector<std::unique_ptr<DatagramServerSocket>>* sockets); |
107 | 107 |
108 scoped_refptr<IOBuffer> recv_buffer_; | 108 scoped_refptr<IOBuffer> recv_buffer_; |
109 int recv_buffer_size_; | 109 int recv_buffer_size_; |
110 CompletionCallback recv_callback_; | 110 CompletionCallback recv_callback_; |
111 }; | 111 }; |
112 | 112 |
113 } // namespace net | 113 } // namespace net |
114 | 114 |
115 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ | 115 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ |
OLD | NEW |