| 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 "chrome/browser/local_discovery/test_service_discovery_client.h" | 5 #include "chrome/browser/local_discovery/test_service_discovery_client.h" |
| 6 | 6 |
| 7 #include "chrome/common/local_discovery/service_discovery_client_impl.h" | 7 #include "chrome/common/local_discovery/service_discovery_client_impl.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 #include "net/dns/mdns_client_impl.h" | 9 #include "net/dns/mdns_client_impl.h" |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 scoped_ptr<LocalDomainResolver> | 47 scoped_ptr<LocalDomainResolver> |
| 48 TestServiceDiscoveryClient::CreateLocalDomainResolver( | 48 TestServiceDiscoveryClient::CreateLocalDomainResolver( |
| 49 const std::string& domain, | 49 const std::string& domain, |
| 50 net::AddressFamily address_family, | 50 net::AddressFamily address_family, |
| 51 const LocalDomainResolver::IPAddressCallback& callback) { | 51 const LocalDomainResolver::IPAddressCallback& callback) { |
| 52 return service_discovery_client_impl_->CreateLocalDomainResolver( | 52 return service_discovery_client_impl_->CreateLocalDomainResolver( |
| 53 domain, address_family, callback); | 53 domain, address_family, callback); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void TestServiceDiscoveryClient::SimulateReceive(const uint8* packet, | 56 void TestServiceDiscoveryClient::SimulateReceive(const uint8_t* packet, |
| 57 int size) { | 57 int size) { |
| 58 mock_socket_factory_.SimulateReceive(packet, size); | 58 mock_socket_factory_.SimulateReceive(packet, size); |
| 59 } | 59 } |
| 60 | 60 |
| 61 } // namespace local_discovery | 61 } // namespace local_discovery |
| OLD | NEW |