| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 MOCK_CONST_METHOD1(JoinGroupInternal, int(const std::string& group)); | 50 MOCK_CONST_METHOD1(JoinGroupInternal, int(const std::string& group)); |
| 51 | 51 |
| 52 int LeaveGroup(const IPAddressNumber& group_address) const; | 52 int LeaveGroup(const IPAddressNumber& group_address) const; |
| 53 | 53 |
| 54 MOCK_CONST_METHOD1(LeaveGroupInternal, int(const std::string& group)); | 54 MOCK_CONST_METHOD1(LeaveGroupInternal, int(const std::string& group)); |
| 55 | 55 |
| 56 MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl)); | 56 MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl)); |
| 57 | 57 |
| 58 MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback)); | 58 MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback)); |
| 59 | 59 |
| 60 MOCK_METHOD1(SetToS, int(DiffServCodePoint dscp)); |
| 61 |
| 60 void SetResponsePacket(std::string response_packet); | 62 void SetResponsePacket(std::string response_packet); |
| 61 | 63 |
| 62 int HandleRecvNow(IOBuffer* buffer, int size, IPEndPoint* address, | 64 int HandleRecvNow(IOBuffer* buffer, int size, IPEndPoint* address, |
| 63 const CompletionCallback& callback); | 65 const CompletionCallback& callback); |
| 64 | 66 |
| 65 int HandleRecvLater(IOBuffer* buffer, int size, IPEndPoint* address, | 67 int HandleRecvLater(IOBuffer* buffer, int size, IPEndPoint* address, |
| 66 const CompletionCallback& callback); | 68 const CompletionCallback& callback); |
| 67 | 69 |
| 68 private: | 70 private: |
| 69 std::string response_packet_; | 71 std::string response_packet_; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 92 const CompletionCallback& callback); | 94 const CompletionCallback& callback); |
| 93 | 95 |
| 94 scoped_refptr<IOBuffer> recv_buffer_; | 96 scoped_refptr<IOBuffer> recv_buffer_; |
| 95 int recv_buffer_size_; | 97 int recv_buffer_size_; |
| 96 CompletionCallback recv_callback_; | 98 CompletionCallback recv_callback_; |
| 97 }; | 99 }; |
| 98 | 100 |
| 99 } // namespace net | 101 } // namespace net |
| 100 | 102 |
| 101 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ | 103 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ |
| OLD | NEW |