Lines Matching refs:path_cases
894 DualComponentCase path_cases[] = { in TEST() local
965 for (size_t i = 0; i < arraysize(path_cases); i++) { in TEST()
966 if (path_cases[i].input8) { in TEST()
967 int len = static_cast<int>(strlen(path_cases[i].input8)); in TEST()
972 bool success = url_canon::CanonicalizePath(path_cases[i].input8, in_comp, in TEST()
976 EXPECT_EQ(path_cases[i].expected_success, success); in TEST()
977 EXPECT_EQ(path_cases[i].expected_component.begin, out_comp.begin); in TEST()
978 EXPECT_EQ(path_cases[i].expected_component.len, out_comp.len); in TEST()
979 EXPECT_EQ(path_cases[i].expected, out_str); in TEST()
982 if (path_cases[i].input16) { in TEST()
983 string16 input16(WStringToUTF16(path_cases[i].input16)); in TEST()
994 EXPECT_EQ(path_cases[i].expected_success, success); in TEST()
995 EXPECT_EQ(path_cases[i].expected_component.begin, out_comp.begin); in TEST()
996 EXPECT_EQ(path_cases[i].expected_component.len, out_comp.len); in TEST()
997 EXPECT_EQ(path_cases[i].expected, out_str); in TEST()
1543 } path_cases[] = { in TEST() local
1549 for (size_t i = 0; i < ARRAYSIZE(path_cases); i++) { in TEST()
1550 int url_len = static_cast<int>(strlen(path_cases[i].input)); in TEST()
1552 url_parse::ParsePathURL(path_cases[i].input, url_len, &parsed); in TEST()
1557 bool success = url_canon::CanonicalizePathURL(path_cases[i].input, url_len, in TEST()
1563 EXPECT_EQ(path_cases[i].expected, out_str); in TEST()
1569 if (path_cases[i].input[url_len - 1] == ':') { in TEST()