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

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

Issue 1898033006: DNS: Add stubs for persisting data across restarts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: *silently glares at editor, reuploads with proper spacing* Created 4 years, 4 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
« no previous file with comments | « net/dns/dns_test_util.h ('k') | net/dns/host_resolver.h » ('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/big_endian.h" 9 #include "base/big_endian.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 } 214 }
215 215
216 DnsTransactionFactory* MockDnsClient::GetTransactionFactory() { 216 DnsTransactionFactory* MockDnsClient::GetTransactionFactory() {
217 return config_.IsValid() ? factory_.get() : NULL; 217 return config_.IsValid() ? factory_.get() : NULL;
218 } 218 }
219 219
220 AddressSorter* MockDnsClient::GetAddressSorter() { 220 AddressSorter* MockDnsClient::GetAddressSorter() {
221 return address_sorter_.get(); 221 return address_sorter_.get();
222 } 222 }
223 223
224 void MockDnsClient::ApplyPersistentData(const base::Value& data) {}
225
226 std::unique_ptr<const base::Value> MockDnsClient::GetPersistentData() const {
227 return std::unique_ptr<const base::Value>();
228 }
229
224 void MockDnsClient::CompleteDelayedTransactions() { 230 void MockDnsClient::CompleteDelayedTransactions() {
225 factory_->CompleteDelayedTransactions(); 231 factory_->CompleteDelayedTransactions();
226 } 232 }
227 233
228 } // namespace net 234 } // namespace net
OLDNEW
« no previous file with comments | « net/dns/dns_test_util.h ('k') | net/dns/host_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698