Home | History | Annotate | Download | only in src

Lines Matching refs:TEST

73 // Test cases for CanonicalizeIPAddress().  The inputs are identical to
147 TEST(URLCanonTest, DoAppendUTF8) {
170 // cause the Chromium stacktrace dialog to appear and hang the test.
173 TEST(URLCanonTest, DoAppendUTF8Invalid) {
185 TEST(URLCanonTest, UTF) {
186 // Low-level test that we handle reading, canonicalization, and writing
196 // Test a characer that takes > 16 bits (U+10300 = old italic letter A)
208 // Test a UTF-8 encoded surrogate value is marked as invalid.
260 TEST(URLCanonTest, ICUCharsetConverter) {
293 // Test string sizes around the resize boundary for the output to make sure
312 TEST(URLCanonTest, Scheme) {
366 // Test the case where the scheme is declared nonexistant, it should be
381 TEST(URLCanonTest, Host) {
402 // Test name prepping, fullwidth input should be converted to ASCII and NOT
405 // Test that fullwidth escaped values are properly name-prepped,
542 TEST(URLCanonTest, IPv4) {
658 TEST(URLCanonTest, IPv6) {
807 TEST(URLCanonTest, IPEmpty) {
823 TEST(URLCanonTest, UserInfo) {
892 TEST(URLCanonTest, Port) {
893 // We only need to test that the number gets properly put into the output
894 // buffer. The parser unit tests will test scanning the number correctly.
947 TEST(URLCanonTest, Path) {
1055 // Manual test: embedded NULLs should be escaped and the URL should be marked
1070 TEST(URLCanonTest, Query) {
1146 // Extra test for input with embedded NULL;
1156 TEST(URLCanonTest, Ref) {
1163 // Test a characer that takes > 16 bits (U+10300 = old italic letter A)
1170 // Test a Unicode invalid character.
1229 TEST(URLCanonTest, CanonicalizeStandardURL) {
1231 // for each of those components. Here, we just need to test that the various
1294 // need to test that things are replaced or not correctly.
1295 TEST(URLCanonTest, ReplaceStandardURL) {
1344 // the test should get an access violation if it tries to dereference it.
1364 TEST(URLCanonTest, ReplaceFileURL) {
1409 TEST(URLCanonTest, ReplacePathURL) {
1449 TEST(URLCanonTest, ReplaceMailtoURL) {
1501 TEST(URLCanonTest, CanonicalizeFileURL) {
1535 // would change the expected result on this test. We also currently allow
1555 {"///test", "file:///test", true, url_parse::Component(), url_parse::Component(7, 5)},
1556 {"file://test", "file://test/", true, url_parse::Component(7, 4), url_parse::Component(11, 1)},
1559 {"file://localhost/test", "file://localhost/test", true, url_parse::Component(7, 9), url_parse::Component(16, 5)},
1592 TEST(URLCanonTest, CanonicalizePathURL) {
1630 TEST(URLCanonTest, CanonicalizeMailtoURL) {
1661 // The 9th test case purposely has a '\0' in it -- don't count it
1691 TEST(URLCanonTest, _itoa_s) {
1701 // Test the edge cases - exactly the buffer size and one over
1711 // Test the template overload (note that this will see the full buffer)
1723 // Test that radix 16 is supported.
1730 TEST(URLCanonTest, _itow_s) {
1742 // Test the edge cases - exactly the buffer size and one over
1751 // Test the template overload (note that this will see the full buffer)
1779 TEST(URLCanonTest, ResolveRelativeURL) {
1784 const char* test; // Input URL to test against.
1786 bool is_rel; // Whether we expect |test| to be relative or not.
1917 int test_len = static_cast<int>(strlen(cur_case.test));
1921 cur_case.base, parsed, cur_case.test, test_len, cur_case.is_base_hier,
1925 "succeed is rel failure on " << cur_case.test;
1927 "is rel failure on " << cur_case.test;
1936 cur_case.test, relative_component, NULL, &output, &resolved_parsed);
1940 EXPECT_EQ(cur_case.resolved, resolved) << " on " << cur_case.test;
1961 TEST(URLCanonTest, ReplacementOverflow) {