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> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "net/dns/mdns_client_impl.h" | 14 #include "net/dns/mdns_client_impl.h" |
| 15 #include "net/log/net_log_with_source.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 | 19 |
19 class IPAddress; | 20 class IPAddress; |
20 | 21 |
21 class MockMDnsDatagramServerSocket : public DatagramServerSocket { | 22 class MockMDnsDatagramServerSocket : public DatagramServerSocket { |
22 public: | 23 public: |
23 explicit MockMDnsDatagramServerSocket(AddressFamily address_family); | 24 explicit MockMDnsDatagramServerSocket(AddressFamily address_family); |
24 ~MockMDnsDatagramServerSocket() override; | 25 ~MockMDnsDatagramServerSocket() override; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 std::vector<std::unique_ptr<DatagramServerSocket>>* sockets); | 107 std::vector<std::unique_ptr<DatagramServerSocket>>* sockets); |
107 | 108 |
108 scoped_refptr<IOBuffer> recv_buffer_; | 109 scoped_refptr<IOBuffer> recv_buffer_; |
109 int recv_buffer_size_; | 110 int recv_buffer_size_; |
110 CompletionCallback recv_callback_; | 111 CompletionCallback recv_callback_; |
111 }; | 112 }; |
112 | 113 |
113 } // namespace net | 114 } // namespace net |
114 | 115 |
115 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ | 116 #endif // NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_ |
OLD | NEW |