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

Side by Side Diff: chrome/browser/net/dns_probe_test_util.h

Issue 2567623003: Make ERR_ICANN_NAME_COLLISION work for async DNS resolver. (Closed)
Patch Set: address Matt's comments Created 4 years 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
OLDNEW
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 #ifndef CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_
6 #define CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_ 6 #define CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "net/dns/dns_client.h" 10 #include "net/dns/dns_client.h"
11 #include "net/dns/dns_test_util.h" 11 #include "net/dns/dns_test_util.h"
12 12
13 namespace chrome_browser_net { 13 namespace chrome_browser_net {
14 14
15 // Creates a mock DNS client with a single rule for the known-good query 15 // Creates a mock DNS client with a single rule for the known-good query
16 // (currently google.com) that returns |result|. 16 // (currently google.com) that returns |result| for A queries.
17 std::unique_ptr<net::DnsClient> CreateMockDnsClientForProbes( 17 std::unique_ptr<net::DnsClient> CreateMockDnsClientForProbes(
18 net::MockDnsClientRule::Result result); 18 net::MockDnsClientRule::ResultType result);
19 19
20 } // namespace chrome_browser_net 20 } // namespace chrome_browser_net
21 21
22 #endif // CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_ 22 #endif // CHROME_BROWSER_NET_DNS_PROBE_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/dns_probe_service_unittest.cc ('k') | chrome/browser/net/dns_probe_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698