Lines Matching full:http
53 EXPECT_EQ("http://hostname.com/", TypesTestCase("http:HOSTNAME.com"));
54 EXPECT_EQ("http://hostname.com/", TypesTestCase("http:/HOSTNAME.com"));
55 EXPECT_EQ("http://hostname.com/", TypesTestCase("http://HOSTNAME.com"));
56 EXPECT_EQ("http://hostname.com/", TypesTestCase("http:///HOSTNAME.com"));
71 GURL url(WStringToUTF16(L"http://user:pass@google.com:99/foo;bar?q=a#ref"));
73 EXPECT_TRUE(url.SchemeIs("http"));
77 EXPECT_EQ("http://user:pass@google.com:99/foo;bar?q=a#ref", url.spec());
79 EXPECT_EQ("http", url.scheme());
107 GURL url(WStringToUTF16(L"http://user:pass@google.com:99/foo;bar?q=a#ref"));
112 EXPECT_EQ("http://user:pass@google.com:99/foo;bar?q=a#ref", url2.spec());
113 EXPECT_EQ("http", url2.scheme());
171 GURL url("http:google.com:foo");
173 EXPECT_EQ("http://google.com:foo/", url.possibly_invalid_spec());
175 EXPECT_EQ("http", url.scheme());
196 {"http://www.google.com/", "foo.html", true, "http://www.google.com/foo.html"},
197 {"http://www.google.com/", "http://images.google.com/foo.html", true, "http://images.google.com/foo.html"},
198 {"http://www.google.com/blah/bloo?c#d", "../../../hello/./world.html?a#b", true, "http://www.google.com/hello/world.html?a#b"},
199 {"http://www.google.com/foo#bar", "#com", true, "http://www.google.com/foo#com"},
200 {"http://www.google.com/", "Https:images.google.com", true, "https://images.google.com/"},
202 {"data:blahblah", "http://google.com/", true, "http://google.com/"},
203 {"data:blahblah", "http:google.com", true, "http://google.com/"},
205 {"filesystem:http://www.google.com/type/", "foo.html", true, "filesystem:http://www.google.com/type/foo.html"},
206 {"filesystem:http://www.google.com/type/", "../foo.html", true, "filesystem:http://www.google.com/type/foo.html"},
232 {"http://www.google.com", "http://www.google.com/"},
234 {"http://user:pass@www.google.com:21/blah#baz", "http://www.google.com:21/"},
235 {"http://user@www.google.com", "http://www.google.com/"},
236 {"http://:pass@www.google.com", "http://www.google.com/"},
237 {"http://:@www.google.com", "http://www.google.com/"},
238 {"filesystem:http://www.google.com/temp/foo?q#b", "http://www.google.com/"},
239 {"filesystem:http://user:pass@google.com:21/blah#baz", "http://google.com:21/"},
253 {"http://www.google.com", "http://www.google.com/"},
255 {"http://www.google.com/foo/bar.html?baz=22", "http://www.google.com/"},
256 {"filesystem:http://www.google.com/temporary/bar.html?baz=22", "filesystem:http://www.google.com/temporary/"},
283 {"http://www.google.com/foo/bar.html?foo#bar", NULL, NULL, NULL, NULL, NULL, "/", "", "", "http://www.google.com/"},
284 {"http://www.google.com/foo/bar.html?foo#bar", "javascript", "", "", "", "", "window.open('foo');", "", "", "javascript:window.open('foo');"},
285 {"file:///C:/foo/bar.txt", "http", NULL, NULL, "www.google.com", "99", "/foo","search", "ref", "http://www.google.com:99/foo?search#ref"},
287 {"http://www.google.com/foo/bar.html?foo#bar", "file", "", "", "", "", "c:\\", "", "", "file:///C:/"},
289 {"filesystem:http://www.google.com/foo/bar.html?foo#bar", NULL, NULL, NULL, NULL, NULL, "/", "", "", "filesystem:http://www.google.com/foo/"},
312 // http://crbug.com/291747 - a data URL may legitimately have trailing
341 {"http://www.google.com", "/", NULL},
342 {"http://www.google.com/", "/", NULL},
343 {"http://www.google.com/foo/bar.html?baz=22", "/foo/bar.html?baz=22", NULL},
344 {"http://www.google.com/foo/bar.html#ref", "/foo/bar.html", NULL},
345 {"http://www.google.com/foo/bar.html?query#ref", "/foo/bar.html?query", NULL},
346 {"filesystem:http://www.google.com/temporary/foo/bar.html?query#ref", "/foo/bar.html?query", "/temporary"},
347 {"filesystem:http://www.google.com/temporary/foo/bar.html?query", "/foo/bar.html?query", "/temporary"},
365 // http
366 {"http://www.google.com/", 80},
367 {"http://www.google.com:80/", 80},
368 {"http://www.google.com:443/", 443},
394 {"filesystem:http://www.google.com:90/t/foo", url_parse::PORT_UNSPECIFIED},
409 {"http://www.google.com/", false},
410 {"http://192.168.9.1/", true},
411 {"http://192.168.9.1.2/", false},
412 {"http://192.168.m.1/", false},
413 {"http://2001:db8::1/", false},
414 {"http://[2001:db8::1]/", true},
431 {"http://www.google.com", "www.google.com", "www.google.com"},
432 {"http://[2001:db8::1]/", "[2001:db8::1]", "2001:db8::1"},
433 {"http://[::]/", "[::]", "::"},
436 {"http://[]/", "[]", ""},
437 {"http://[x]/", "[x]", "x"},
438 {"http://[x/", "[x", "[x"},
439 {"http://x]/", "x]", "x]"},
440 {"http://[/", "[", "["},
441 {"http
454 GURL url_1("http://www.google.com:99/foo");
457 GURL url_2("http://google.com:99/foo");
460 GURL url_3("http://google.com./foo");
463 GURL url_4("http://google.com/foo");
466 GURL url_5("http://google.com./foo");
469 GURL url_6("http://www.google.com./foo");
472 GURL url_7("http://www.balabala.com/foo");
475 GURL url_8("http://www.google.com.cn/foo");
478 GURL url_9("http://www.iamnotgoogle.com/foo");
481 GURL url_10("http://www.iamnotgoogle.com../foo");
484 GURL url_11("filesystem:http://www.google.com:99/foo/");
487 GURL url_12("filesystem:http://www.iamnotgoogle.com/foo/");
495 EXPECT_EQ("http://www.google.com/asdf", url_1.spec());
499 EXPECT_EQ("http://www.google.com/foo", url_2.spec());
505 GURL a("http:foo/bar");