Lines Matching refs:url_canon
51 using url_canon::CanonHostInfo;
133 void (url_canon::Replacements<CHAR>::*set)(const CHAR*, in SetupReplComp()
135 void (url_canon::Replacements<CHAR>::*clear)(), in SetupReplComp()
136 url_canon::Replacements<CHAR>* rep, in SetupReplComp()
179 url_canon::StdStringCanonOutput output(&out_str); in TEST()
193 url_canon::StdStringCanonOutput output(&out_str); in TEST()
242 url_canon::ICUCharsetConverter converter(conv.converter()); in TEST()
245 url_canon::StdStringCanonOutput output(&str); in TEST()
260 url_canon::ICUCharsetConverter converter(conv.converter()); in TEST()
267 url_canon::RawCanonOutput<static_size> output; in TEST()
302 url_canon::StdStringCanonOutput output1(&out_str); in TEST()
303 bool success = url_canon::CanonicalizeScheme(scheme_cases[i].input, in TEST()
314 url_canon::StdStringCanonOutput output2(&out_str); in TEST()
318 success = url_canon::CanonicalizeScheme(wide_input.c_str(), in_comp, in TEST()
332 url_canon::StdStringCanonOutput output(&out_str); in TEST()
334 EXPECT_TRUE(url_canon::CanonicalizeScheme("", url_parse::Component(0, -1), in TEST()
416 url_canon::StdStringCanonOutput output(&out_str); in TEST()
418 bool success = url_canon::CanonicalizeHost(host_cases[i].input8, in_comp, in TEST()
437 url_canon::StdStringCanonOutput output(&out_str); in TEST()
439 bool success = url_canon::CanonicalizeHost(input16.c_str(), in_comp, in TEST()
459 url_canon::StdStringCanonOutput output(&out_str); in TEST()
462 url_canon::CanonicalizeHostVerbose(host_cases[i].input8, in_comp, in TEST()
484 url_canon::StdStringCanonOutput output(&out_str); in TEST()
487 url_canon::CanonicalizeHostVerbose(input16.c_str(), in_comp, in TEST()
584 url_canon::StdStringCanonOutput output1(&out_str1); in TEST()
585 url_canon::CanonHostInfo host_info; in TEST()
586 url_canon::CanonicalizeIPAddress(cases[i].input8, component, &output1, in TEST()
604 url_canon::StdStringCanonOutput output2(&out_str2); in TEST()
605 url_canon::CanonicalizeIPAddress(input16.c_str(), component, &output2, in TEST()
736 url_canon::StdStringCanonOutput output1(&out_str1); in TEST()
737 url_canon::CanonHostInfo host_info; in TEST()
738 url_canon::CanonicalizeIPAddress(cases[i].input8, component, &output1, in TEST()
755 url_canon::StdStringCanonOutput output2(&out_str2); in TEST()
756 url_canon::CanonicalizeIPAddress(input16.c_str(), component, &output2, in TEST()
801 url_canon::StdStringCanonOutput output1(&out_str); in TEST()
803 bool success = url_canon::CanonicalizeUserInfo(user_info_cases[i].input, in TEST()
820 url_canon::StdStringCanonOutput output2(&out_str); in TEST()
822 success = url_canon::CanonicalizeUserInfo(wide_input.c_str(), in TEST()
866 url_canon::StdStringCanonOutput output1(&out_str); in TEST()
867 bool success = url_canon::CanonicalizePort(port_cases[i].input, in_comp, in TEST()
879 url_canon::StdStringCanonOutput output2(&out_str); in TEST()
881 success = url_canon::CanonicalizePort(wide_input.c_str(), in_comp, in TEST()
971 url_canon::StdStringCanonOutput output(&out_str); in TEST()
972 bool success = url_canon::CanonicalizePath(path_cases[i].input8, in_comp, in TEST()
988 url_canon::StdStringCanonOutput output(&out_str); in TEST()
990 bool success = url_canon::CanonicalizePath(input16.c_str(), in_comp, in TEST()
1008 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1009 bool success = url_canon::CanonicalizePath(path_with_null, in_comp, in TEST()
1057 url_canon::ICUCharsetConverter converter(conv.converter()); in TEST()
1060 url_canon::ICUCharsetConverter* conv_pointer = &converter; in TEST()
1069 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1070 url_canon::CanonicalizeQuery(query_cases[i].input8, in_comp, in TEST()
1083 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1084 url_canon::CanonicalizeQuery(input16.c_str(), in_comp, in TEST()
1094 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1096 url_canon::CanonicalizeQuery("a \x00z\x01", url_parse::Component(0, 5), NULL, in TEST()
1131 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1132 url_canon::CanonicalizeRef(ref_cases[i].input8, in_comp, in TEST()
1149 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1150 url_canon::CanonicalizeRef(input16.c_str(), in_comp, &output, &out_comp); in TEST()
1165 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1166 url_canon::CanonicalizeRef(null_input, null_input_component, in TEST()
1229 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1230 bool success = url_canon::CanonicalizeStandardURL( in TEST()
1257 url_canon::Replacements<char> r; in TEST()
1258 typedef url_canon::Replacements<char> R; // Clean up syntax. in TEST()
1272 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1274 url_canon::ReplaceStandardURL(replace_cases[i].base, parsed, in TEST()
1291 url_canon::Replacements<char> r; in TEST()
1294 url_canon::StdStringCanonOutput output1(&out_str1); in TEST()
1296 url_canon::ReplaceStandardURL(src, parsed, r, NULL, &output1, &new_parsed); in TEST()
1303 url_canon::StdStringCanonOutput output2(&out_str2); in TEST()
1304 url_canon::ReplaceStandardURL(src, parsed, r, NULL, &output2, &new_parsed); in TEST()
1333 url_canon::Replacements<char> r; in TEST()
1334 typedef url_canon::Replacements<char> R; // Clean up syntax. in TEST()
1345 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1347 url_canon::ReplaceFileURL(cur.base, parsed, in TEST()
1373 url_canon::Replacements<char> r; in TEST()
1374 typedef url_canon::Replacements<char> R; // Clean up syntax. in TEST()
1385 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1387 url_canon::ReplacePathURL(cur.base, parsed, in TEST()
1425 url_canon::Replacements<char> r; in TEST()
1426 typedef url_canon::Replacements<char> R; in TEST()
1437 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1439 url_canon::ReplaceMailtoURL(cur.base, parsed, in TEST()
1516 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1517 bool success = url_canon::CanonicalizeFileURL(cases[i].input, url_len, in TEST()
1556 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1557 bool success = url_canon::CanonicalizePathURL(path_cases[i].input, url_len, in TEST()
1614 url_canon::StdStringCanonOutput output(&out_str); in TEST()
1615 bool success = url_canon::CanonicalizeMailtoURL(cases[i].input, url_len, in TEST()
1643 EXPECT_EQ(0, url_canon::_itoa_s(12, buf, sizeof(buf) - 1, 10)); in TEST()
1649 EXPECT_EQ(0, url_canon::_itoa_s(1234, buf, sizeof(buf) - 1, 10)); in TEST()
1654 EXPECT_EQ(EINVAL, url_canon::_itoa_s(12345, buf, sizeof(buf) - 1, 10)); in TEST()
1659 EXPECT_EQ(0, url_canon::_itoa_s(12, buf, 10)); in TEST()
1664 EXPECT_EQ(0, url_canon::_itoa_s(12345, buf, 10)); in TEST()
1667 EXPECT_EQ(EINVAL, url_canon::_itoa_s(123456, buf, 10)); in TEST()
1671 EXPECT_EQ(0, url_canon::_itoa_s(1234, buf, sizeof(buf) - 1, 16)); in TEST()
1684 EXPECT_EQ(0, url_canon::_itow_s(12, buf, sizeof(buf) / 2 - 1, 10)); in TEST()
1689 EXPECT_EQ(0, url_canon::_itow_s(1234, buf, sizeof(buf) / 2 - 1, 10)); in TEST()
1694 EXPECT_EQ(EINVAL, url_canon::_itow_s(12345, buf, sizeof(buf) / 2 - 1, 10)); in TEST()
1699 EXPECT_EQ(0, url_canon::_itow_s(12, buf, 10)); in TEST()
1704 EXPECT_EQ(0, url_canon::_itow_s(12345, buf, 10)); in TEST()
1707 EXPECT_EQ(EINVAL, url_canon::_itow_s(123456, buf, 10)); in TEST()
1863 bool succeed_is_rel = url_canon::IsRelativeURL( in TEST()
1874 url_canon::StdStringCanonOutput output(&resolved); in TEST()
1877 bool succeed_resolve = url_canon::ResolveRelativeURL( in TEST()
1912 url_canon::Replacements<char16> repl; in TEST()
1927 url_canon::StdStringCanonOutput repl_output(&repl_str); in TEST()
1928 url_canon::ReplaceFileURL(src, parsed, repl, NULL, &repl_output, &repl_parsed); in TEST()