Lines Matching refs:Path
93 const char* path;
947 TEST(URLCanonTest, Path) {
949 // ----- path collapsing tests -----
1002 // the path on an already-parsed URL) should be escaped.
1297 // Common case of truncating the path.
1300 {"http://a:b@google.com:22/foo;bar?baz@cat", "https", "me", "pw", "host.com", "99", "/path", "query", "ref", "https://me:pw@host.com:99/path?query#ref"},
1321 SetupReplComp(&R::SetPath, &R::ClearPath, &r, cur.path);
1335 // The path pointer should be ignored if the address is invalid.
1343 // Replace the path to 0 length string. By using 1 as the string address,
1354 // Same with an "invalid" path.
1370 // Clear non-path components (common)
1372 // Replace path with something that doesn't begin with a slash and make
1394 SetupReplComp(&R::SetPath, &R::ClearPath, &r, cur.path);
1434 SetupReplComp(&R::SetPath, &R::ClearPath, &r, cur.path);
1455 // Replace the path
1459 // Replace the path and query
1465 // Clear the path
1467 // Clear the path + query
1486 SetupReplComp(&R::SetPath, &R::ClearPath, &r, cur.path);
1514 {"file:UNChost/path", "file://unchost/path", true, url_parse::Component(7, 7), url_parse::Component(14, 5)},
1587 EXPECT_EQ(cases[i].expected_path.begin, out_parsed.path.begin);
1588 EXPECT_EQ(cases[i].expected_path.len, out_parsed.path.len);
1593 // Path URLs should get canonicalized schemes but nothing else.
1622 // When we end with a colon at the end, there should be no path.
1624 EXPECT_EQ(0, out_parsed.path.begin);
1625 EXPECT_EQ(-1, out_parsed.path.len);
1681 EXPECT_EQ(cases[i].expected_path.begin, out_parsed.path.begin);
1682 EXPECT_EQ(cases[i].expected_path.len, out_parsed.path.len);
1774 a.path.begin == b.path.begin && a.path.len == b.path.len &&
1798 // Spaces at the ends of the relative path should be ignored.
1803 {"http://host/a", true, false, "http:path", true, true, true, "http://host/path"},
1804 {"http://host/a/", true, false, "http:path", true, true, true, "http://host/a/path"},
1805 {"http://host/a", true, false, "http:/path", true, true, true, "http://host/path"},
1806 {"http://host/a", true, false, "HTTP:/path", true, true, true, "http://host/path"},
1810 // Absolute path input
1817 // Relative path input
1856 {"http://host/a", true, false, "//another/path?query#ref", true, true, true, "http://another/path?query#ref"},
1857 {"http://host/a", true, false, "///another/path", true, true, true, "http://another/path"},
1858 {"http://host/a", true, false, "//Another\\path", true, true, true, "http://another/path"},
1862 {"http://host/a", true, false, "\\/another/path", true, true, true, "http://another/path"},
1863 {"http://host/a", true, false, "/\\Another\\path", true, true, true, "http://another/path"},
1872 {"http://host/a", true, false, "\\\\another\\path", true, false, false, NULL},
1875 // an absolute path or UNC depending on what it looks like.
1890 // means that the path is UNC.
1891 {"file:///C:/something", true, true, "//somehost/path", true, true, true, "file://somehost/path"},
1892 {"file:///C:/something", true, true, "/\\//somehost/path", true, true, true, "file://somehost/path"},
1896 {"http://host/a", true, false, "\\\\Another\\path", true, true, true, "http://another/path"},
1967 // Override two components, the path