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

Unified Diff: net/dns/dns_hosts_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/dns/dns_hosts.cc ('k') | net/dns/file_path_watcher_wrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_hosts_unittest.cc
diff --git a/net/dns/dns_hosts_unittest.cc b/net/dns/dns_hosts_unittest.cc
index 6da41a945e1ac5ecab348e4751fadee254a455b6..0a0691fd87485fa0b622c4ce86092371f4f2b18c 100644
--- a/net/dns/dns_hosts_unittest.cc
+++ b/net/dns/dns_hosts_unittest.cc
@@ -18,7 +18,7 @@ TEST(DnsHostsTest, ParseHosts) {
"fe00::x example company # ignored, malformed IPv6\n"
"1.0.0.300 company # ignored, malformed IPv4\n"
"1.0.0.1 # ignored, missing hostname\n"
- "1.0.0.1\t company \n"
+ "1.0.0.1\t CoMpANy # normalized to 'company' \n"
"::1\tlocalhost ip6-localhost ip6-loopback # comment # within a comment\n"
"\t fe00::0 ip6-localnet\r\n"
"2048::2 example\n"
« no previous file with comments | « net/dns/dns_hosts.cc ('k') | net/dns/file_path_watcher_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698