Home | History | Annotate | Download | only in src

Lines Matching refs:gurl

4 #include "googleurl/src/gurl.h"
37 GURL gurl(src);
38 return gurl.possibly_invalid_spec();
66 // Test the basic creation and querying of components in a GURL. We assume
70 GURL url(WStringToUTF16(L"http://user:pass@google.com:99/foo;bar?q=a#ref"));
90 GURL url;
106 GURL url(WStringToUTF16(L"http://user:pass@google.com:99/foo;bar?q=a#ref"));
108 GURL url2(url);
123 GURL invalid;
124 GURL invalid2(invalid);
140 GURL url("http:google.com:foo");
157 // canonicalizer unit test. Here, we just test that the GURL integration
178 GURL input(resolve_cases[i].base);
179 GURL output = input.Resolve(resolve_cases[i].relative);
184 GURL inputw(ConvertUTF8ToUTF16(resolve_cases[i].base));
185 GURL outputw =
205 GURL url(cases[i].input);
206 GURL origin = url.GetOrigin();
222 GURL url(cases[i].input);
223 GURL empty_path = url.GetWithEmptyPath();
254 GURL url(cur.base);
255 GURL::Replacements repl;
256 SetupReplacement(&GURL::Replacements::SetScheme, &repl, cur.scheme);
257 SetupReplacement(&GURL::Replacements::SetUsername, &repl, cur.username);
258 SetupReplacement(&GURL::Replacements::SetPassword, &repl, cur.password);
259 SetupReplacement(&GURL::Replacements::SetHost, &repl, cur.host);
260 SetupReplacement(&GURL::Replacements::SetPort, &repl, cur.port);
261 SetupReplacement(&GURL::Replacements::SetPath, &repl, cur.path);
262 SetupReplacement(&GURL::Replacements::SetQuery, &repl, cur.query);
263 SetupReplacement(&GURL::Replacements::SetRef, &repl, cur.ref);
264 GURL output = url.ReplaceComponents(repl);
283 GURL url(cases[i].input);
324 GURL url(port_tests[i].spec);
345 GURL url(ip_tests[i].spec);
370 GURL url(cases[i].input);
379 GURL url_1("http://www.google.com:99/foo");
382 GURL url_2("http://google.com:99/foo");
385 GURL url_3("http://google.com./foo");
388 GURL url_4("http://google.com/foo");
391 GURL url_5("http://google.com./foo");
394 GURL url_6("http://www.google.com./foo");
397 GURL url_7("http://www.balabala.com/foo");
400 GURL url_8("http://www.google.com.cn/foo");
403 GURL url_9("http://www.iamnotgoogle.com/foo");
406 GURL url_10("http://www.iamnotgoogle.com../foo");
413 GURL url_1(" \t ht\ntp://\twww.goo\rgle.com/as\ndf \n ");
417 GURL url_2 = url_1.Resolve(" \n /fo\to\r ");
424 GURL a("http:foo/bar");
427 GURL b("foo:bar/baz");
430 GURL c("foo://bar/baz");