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/utility/local_discovery/service_discovery_client_impl.h" |
8 #include "net/dns/mdns_client_impl.h" | 8 #include "net/dns/mdns_client_impl.h" |
9 | 9 |
10 namespace local_discovery { | 10 namespace local_discovery { |
11 | 11 |
12 TestServiceDiscoveryClient::TestServiceDiscoveryClient() { | 12 TestServiceDiscoveryClient::TestServiceDiscoveryClient() { |
13 } | 13 } |
14 | 14 |
15 TestServiceDiscoveryClient::~TestServiceDiscoveryClient() { | 15 TestServiceDiscoveryClient::~TestServiceDiscoveryClient() { |
16 } | 16 } |
17 | 17 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 return service_discovery_client_impl_->CreateLocalDomainResolver( | 49 return service_discovery_client_impl_->CreateLocalDomainResolver( |
50 domain, address_family, callback); | 50 domain, address_family, callback); |
51 } | 51 } |
52 | 52 |
53 void TestServiceDiscoveryClient::SimulateReceive(const uint8* packet, | 53 void TestServiceDiscoveryClient::SimulateReceive(const uint8* packet, |
54 int size) { | 54 int size) { |
55 mock_socket_factory_.SimulateReceive(packet, size); | 55 mock_socket_factory_.SimulateReceive(packet, size); |
56 } | 56 } |
57 | 57 |
58 } // namespace local_discovery | 58 } // namespace local_discovery |
OLD | NEW |