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

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

Issue 22909037: [net/dns] Reland of 218616 (Simultaneous A/AAAA queries). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix printing unsigned Created 7 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 | « no previous file | net/base/prioritized_dispatcher.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 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 #include "chrome/browser/net/dns_probe_test_util.h" 5 #include "chrome/browser/net/dns_probe_test_util.h"
6 6
7 #include "chrome/browser/net/dns_probe_runner.h" 7 #include "chrome/browser/net/dns_probe_runner.h"
8 #include "net/dns/dns_config_service.h" 8 #include "net/dns/dns_config_service.h"
9 #include "net/dns/dns_protocol.h" 9 #include "net/dns/dns_protocol.h"
10 10
(...skipping 10 matching lines...) Expand all
21 scoped_ptr<DnsClient> CreateMockDnsClientForProbes( 21 scoped_ptr<DnsClient> CreateMockDnsClientForProbes(
22 MockDnsClientRule::Result result) { 22 MockDnsClientRule::Result result) {
23 DnsConfig config; 23 DnsConfig config;
24 IPAddressNumber dns_ip; 24 IPAddressNumber dns_ip;
25 ParseIPLiteralToNumber("192.168.1.1", &dns_ip); 25 ParseIPLiteralToNumber("192.168.1.1", &dns_ip);
26 const uint16 kDnsPort = net::dns_protocol::kDefaultPort; 26 const uint16 kDnsPort = net::dns_protocol::kDefaultPort;
27 config.nameservers.push_back(IPEndPoint(dns_ip, kDnsPort)); 27 config.nameservers.push_back(IPEndPoint(dns_ip, kDnsPort));
28 28
29 const uint16 kTypeA = net::dns_protocol::kTypeA; 29 const uint16 kTypeA = net::dns_protocol::kTypeA;
30 MockDnsClientRuleList rules; 30 MockDnsClientRuleList rules;
31 rules.push_back( 31 rules.push_back(MockDnsClientRule(DnsProbeRunner::kKnownGoodHostname, kTypeA,
32 MockDnsClientRule(DnsProbeRunner::kKnownGoodHostname, kTypeA, result)); 32 result, false));
33 33
34 return CreateMockDnsClient(config, rules).Pass(); 34 return scoped_ptr<DnsClient>(new net::MockDnsClient(config, rules));
35 } 35 }
36 36
37 } // namespace chrome_browser_net 37 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « no previous file | net/base/prioritized_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698