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

Unified Diff: net/test/spawned_test_server/base_test_server.cc

Issue 1177933002: Resolve RFC 6761 localhost names to loopback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve test server addresses to IPv4 Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/dns/host_resolver_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/spawned_test_server/base_test_server.cc
diff --git a/net/test/spawned_test_server/base_test_server.cc b/net/test/spawned_test_server/base_test_server.cc
index 5d97f8dd6bca5ce51a7f0f51bb723cddac66486c..a211f29430b3a8684ae049c5503d3771f2aead67 100644
--- a/net/test/spawned_test_server/base_test_server.cc
+++ b/net/test/spawned_test_server/base_test_server.cc
@@ -236,6 +236,8 @@ bool BaseTestServer::GetAddressList(AddressList* address_list) const {
scoped_ptr<HostResolver> resolver(HostResolver::CreateDefaultResolver(NULL));
HostResolver::RequestInfo info(host_port_pair_);
+ // Do an IPv4 lookup since kLocalhost is IPv4.
Ryan Sleevi 2015/06/19 23:08:16 nit: maybe expand/reword the comment // Limit the
estark 2015/06/19 23:17:36 Done.
+ info.set_address_family(ADDRESS_FAMILY_IPV4);
TestCompletionCallback callback;
int rv = resolver->Resolve(info,
DEFAULT_PRIORITY,
« no previous file with comments | « net/dns/host_resolver_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698