| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/dns_test_util.h" | 5 #include "net/dns/dns_test_util.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 } // namespace | 203 } // namespace |
| 204 | 204 |
| 205 // static | 205 // static |
| 206 scoped_ptr<DnsClient> CreateMockDnsClient(const DnsConfig& config, | 206 scoped_ptr<DnsClient> CreateMockDnsClient(const DnsConfig& config, |
| 207 const MockDnsClientRuleList& rules) { | 207 const MockDnsClientRuleList& rules) { |
| 208 return scoped_ptr<DnsClient>(new MockDnsClient(config, rules)); | 208 return scoped_ptr<DnsClient>(new MockDnsClient(config, rules)); |
| 209 } | 209 } |
| 210 | 210 |
| 211 MockDnsConfigService::~MockDnsConfigService() { | |
| 212 } | |
| 213 | |
| 214 void MockDnsConfigService::OnDNSChanged(unsigned detail) { | |
| 215 } | |
| 216 | |
| 217 void MockDnsConfigService::ChangeConfig(const DnsConfig& config) { | |
| 218 DnsConfigService::OnConfigRead(config); | |
| 219 } | |
| 220 | |
| 221 void MockDnsConfigService::ChangeHosts(const DnsHosts& hosts) { | |
| 222 DnsConfigService::OnHostsRead(hosts); | |
| 223 } | |
| 224 | |
| 225 } // namespace net | 211 } // namespace net |
| OLD | NEW |