Home | History | Annotate | Download | only in src

Lines Matching refs:GURL

4 #include "googleurl/src/gurl.h"
60 GURL gurl(type_cases[i].src);
61 EXPECT_STREQ(type_cases[i].expected, gurl.spec().c_str());
65 // Test the basic creation and querying of components in a GURL. We assume
69 GURL url(WStringToUTF16(L"http://user:pass@google.com:99/foo;bar?q=a#ref"));
89 GURL url;
105 GURL url(WStringToUTF16(L"http://user:pass@google.com:99/foo;bar?q=a#ref"));
107 GURL url2(url);
122 GURL invalid;
123 GURL invalid2(invalid);
139 GURL url("http:google.com:foo");
156 // canonicalizer unit test. Here, we just test that the GURL integration
179 GURL input(resolve_cases[i].base);
180 GURL output = input.Resolve(resolve_cases[i].relative);
185 GURL inputw(ConvertUTF8ToUTF16(resolve_cases[i].base));
186 GURL outputw =
206 GURL url(cases[i].input);
207 GURL origin = url.GetOrigin();
223 GURL url(cases[i].input);
224 GURL empty_path = url.GetWithEmptyPath();
255 GURL url(cur.base);
256 GURL::Replacements repl;
257 SetupReplacement(&GURL::Replacements::SetScheme, &repl, cur.scheme);
258 SetupReplacement(&GURL::Replacements::SetUsername, &repl, cur.username);
259 SetupReplacement(&GURL::Replacements::SetPassword, &repl, cur.password);
260 SetupReplacement(&GURL::Replacements::SetHost, &repl, cur.host);
261 SetupReplacement(&GURL::Replacements::SetPort, &repl, cur.port);
262 SetupReplacement(&GURL::Replacements::SetPath, &repl, cur.path);
263 SetupReplacement(&GURL::Replacements::SetQuery, &repl, cur.query);
264 SetupReplacement(&GURL::Replacements::SetRef, &repl, cur.ref);
265 GURL output = url.ReplaceComponents(repl);
284 GURL url(cases[i].input);
325 GURL url(port_tests[i].spec);
346 GURL url(ip_tests[i].spec);
371 GURL url(cases[i].input);
380 GURL url_1("http://www.google.com:99/foo");
383 GURL url_2("http://google.com:99/foo");
386 GURL url_3("http://google.com./foo");
389 GURL url_4("http://google.com/foo");
392 GURL url_5("http://google.com./foo");
395 GURL url_6("http://www.google.com./foo");
398 GURL url_7("http://www.balabala.com/foo");
401 GURL url_8("http://www.google.com.cn/foo");
404 GURL url_9("http://www.iamnotgoogle.com/foo");
407 GURL url_10("http://www.iamnotgoogle.com../foo");
414 GURL url_1(" \t ht\ntp://\twww.goo\rgle.com/as\ndf \n ");
418 GURL url_2 = url_1.Resolve(" \n /fo\to\r ");
425 GURL a("http:foo/bar");
428 GURL b("foo:bar/baz");
431 GURL c("foo://bar/baz");