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

Unified Diff: net/base/host_resolver_impl_unittest.cc

Issue 9721002: [net/dns] Removes locking from DnsConfigServiceWin and adds local computer name. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move lowercasing to ServeFromHosts, add test. Reorganize OnHostsRead. Created 8 years, 9 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/base/host_resolver_impl.cc ('k') | net/dns/dns_config_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_resolver_impl_unittest.cc
diff --git a/net/base/host_resolver_impl_unittest.cc b/net/base/host_resolver_impl_unittest.cc
index 3ea7d04644d6f9a71cf47288322f92cf9a96028f..eff34a76f18c57a013a625f8a6abe34e5361483b 100644
--- a/net/base/host_resolver_impl_unittest.cc
+++ b/net/base/host_resolver_impl_unittest.cc
@@ -1928,6 +1928,11 @@ TEST_F(HostResolverImplTest, ServeFromHosts) {
if (ipv6string != "UNSUPPORTED")
EXPECT_EQ("[::1]:80", ipv6string);
EXPECT_EQ(1u, NumberOfAddresses(req6.addrlist()));
+
+ // Request with upper case.
+ ResolveRequest req7(host_resolver.get(), "er_IPV4", 80);
+ EXPECT_EQ(OK, req7.result());
+ EXPECT_EQ("127.0.0.1:80", FirstAddressToString(req7.addrlist()));
}
} // namespace net
« no previous file with comments | « net/base/host_resolver_impl.cc ('k') | net/dns/dns_config_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698