| 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 #include "net/dns/mock_mdns_socket_factory.h" | 5 #include "net/dns/mock_mdns_socket_factory.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
| 14 | 14 |
| 15 using testing::_; | 15 using testing::_; |
| 16 using testing::Invoke; | 16 using testing::Invoke; |
| 17 | 17 |
| 18 namespace net { | 18 namespace net { |
| 19 | 19 |
| 20 MockMDnsDatagramServerSocket::MockMDnsDatagramServerSocket( | 20 MockMDnsDatagramServerSocket::MockMDnsDatagramServerSocket( |
| 21 AddressFamily address_family) { | 21 AddressFamily address_family) { |
| 22 local_address_ = GetMDnsIPEndPoint(address_family); | 22 local_address_ = GetMDnsIPEndPoint(address_family); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 } | 113 } |
| 114 | 114 |
| 115 int MockMDnsSocketFactory::SendToInternal( | 115 int MockMDnsSocketFactory::SendToInternal( |
| 116 const std::string& packet, const std::string& address, | 116 const std::string& packet, const std::string& address, |
| 117 const CompletionCallback& callback) { | 117 const CompletionCallback& callback) { |
| 118 OnSendTo(packet); | 118 OnSendTo(packet); |
| 119 return packet.size(); | 119 return packet.size(); |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace net | 122 } // namespace net |
| OLD | NEW |