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/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 Loading... |
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 |
OLD | NEW |