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

Unified Diff: net/base/net_util_unittest.cc

Issue 7222019: Allow hyphens at the beginning of domain components, except for the last domain component. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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/base/net_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util_unittest.cc
===================================================================
--- net/base/net_util_unittest.cc (revision 89207)
+++ net/base/net_util_unittest.cc (working copy)
@@ -1019,9 +1019,11 @@
{"9.a", "", true},
{"a.9", "", false},
{"_9a", "", false},
+ {"-9a", "", false},
{"a.a9", "", true},
{"a.9a", "", false},
{"a+9a", "", false},
+ {"-a.a9", "", true},
{"1-.a-b", "", false},
{"1-2.a_b", "", true},
{"a.b.c.d.e", "", true},
« no previous file with comments | « net/base/net_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698