Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: net/dns/dns_test_util.cc

Issue 10873018: [net] Move DnsConfigService to NetworkChangeNotifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/dns/dns_test_util.h ('k') | net/net.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/dns/dns_test_util.h ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698