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

Unified Diff: url/url_canon_unittest.cc

Issue 23526048: Support URL fragment resolution againt non-hierarchical schemes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clea Created 7 years, 3 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 | « url/url_canon_relative.cc ('k') | url/url_parse_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/url_canon_unittest.cc
diff --git a/url/url_canon_unittest.cc b/url/url_canon_unittest.cc
index f6cd3a207e1e5ab105b95849969518faf584ca15..d020e481258618d1d79e35d62e5f356594eacca4 100644
--- a/url/url_canon_unittest.cc
+++ b/url/url_canon_unittest.cc
@@ -1700,6 +1700,7 @@ TEST(URLCanonTest, CanonicalizePathURL) {
{"javascript:", "javascript:"},
{"JavaScript:Foo", "javascript:Foo"},
{":\":This /is interesting;?#", ":\":This /is interesting;?#"},
+ {"data:text/html, one ? two # ", "data:text/html, one ? two #"},
};
for (size_t i = 0; i < ARRAYSIZE(path_cases); i++) {
@@ -1723,8 +1724,8 @@ TEST(URLCanonTest, CanonicalizePathURL) {
// When we end with a colon at the end, there should be no path.
if (path_cases[i].input[url_len - 1] == ':') {
- EXPECT_EQ(0, out_parsed.path.begin);
- EXPECT_EQ(-1, out_parsed.path.len);
+ EXPECT_EQ(0, out_parsed.Content().begin);
+ EXPECT_EQ(-1, out_parsed.Content().len);
}
}
}
« no previous file with comments | « url/url_canon_relative.cc ('k') | url/url_parse_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698