diff options
-rw-r--r-- | DEPS | 2 | ||||
-rw-r--r-- | chrome/browser/net/url_fixer_upper_unittest.cc | 42 |
2 files changed, 43 insertions, 1 deletions
@@ -10,7 +10,7 @@ deps = { "http://google-breakpad.googlecode.com/svn/trunk/src@346", "src/googleurl": - "http://google-url.googlecode.com/svn/trunk@105", + "http://google-url.googlecode.com/svn/trunk@106", "src/sdch/open-vcdiff": "http://open-vcdiff.googlecode.com/svn/trunk@26", diff --git a/chrome/browser/net/url_fixer_upper_unittest.cc b/chrome/browser/net/url_fixer_upper_unittest.cc index 0405935..05ff728 100644 --- a/chrome/browser/net/url_fixer_upper_unittest.cc +++ b/chrome/browser/net/url_fixer_upper_unittest.cc @@ -108,6 +108,48 @@ static const segment_case segment_cases[] = { url_parse::Component(), // query url_parse::Component(), // ref }, + // Incomplete IPv6 addresses (will not canonicalize). + { "[2001:4860:", "http", + url_parse::Component(), // scheme + url_parse::Component(), // username + url_parse::Component(), // password + url_parse::Component(0, 11), // host + url_parse::Component(), // port + url_parse::Component(), // path + url_parse::Component(), // query + url_parse::Component(), // ref + }, + { "[2001:4860:/foo", "http", + url_parse::Component(), // scheme + url_parse::Component(), // username + url_parse::Component(), // password + url_parse::Component(0, 11), // host + url_parse::Component(), // port + url_parse::Component(11, 4), // path + url_parse::Component(), // query + url_parse::Component(), // ref + }, + { "http://:b005::68]", "http", + url_parse::Component(0, 4), // scheme + url_parse::Component(), // username + url_parse::Component(), // password + url_parse::Component(7, 10), // host + url_parse::Component(), // port + url_parse::Component(), // path + url_parse::Component(), // query + url_parse::Component(), // ref + }, + // Can't do anything useful with this. + { ":b005::68]", "", + url_parse::Component(0, 0), // scheme + url_parse::Component(), // username + url_parse::Component(), // password + url_parse::Component(), // host + url_parse::Component(), // port + url_parse::Component(), // path + url_parse::Component(), // query + url_parse::Component(), // ref + }, }; TEST(URLFixerUpperTest, SegmentURL) { |