• Home
  • Raw
  • Download

Lines Matching full:url

11 #include "url/gurl.h"
12 #include "url/origin.h"
13 #include "url/url_util.h"
19 url::Origin kTestOrigins[] = { in TEST()
20 url::Origin::Create(GURL("http://a.foo.test")), in TEST()
21 url::Origin::Create(GURL("http://b.foo.test")), in TEST()
22 url::Origin::Create(GURL("http://foo.test")), in TEST()
23 url::Origin::Create(GURL("http://a.b.foo.test"))}; in TEST()
35 url::Origin kTestOrigins[] = { in TEST()
36 url::Origin::Create(GURL("data:text/html,<body>Hello World</body>")), in TEST()
37 url::Origin::Create(GURL("file://foo")), in TEST()
38 url::Origin::Create(GURL("http://a.bar.test")), in TEST()
39 url::Origin::Create(GURL("http://c.test")), in TEST()
40 url::Origin::Create(GURL("http://d.test")), in TEST()
41 url::Origin::Create(GURL("http://a.foo.test")), in TEST()
42 url::Origin::Create(GURL("https://a.bar.test")), in TEST()
43 url::Origin::Create(GURL("https://c.test")), in TEST()
44 url::Origin::Create(GURL("https://d.test")), in TEST()
45 url::Origin::Create(GURL("https://a.foo.test"))}; in TEST()
75 url::Origin origin_a = url::Origin::Create(GURL("https://foo.test")); in TEST()
76 url::Origin origin_b = url::Origin::Create(GURL("http://foo.test")); in TEST()
82 url::Origin origin_a = url::Origin::Create(GURL("https://foo.test:80")); in TEST()
83 url::Origin origin_b = url::Origin::Create(GURL("https://foo.test:2395")); in TEST()
89 url::Origin origin_tld = url::Origin::Create(GURL("https://com")); in TEST()
90 EXPECT_EQ(url::Origin::Create(GURL("https://com")), in TEST()
94 url::Origin origin_tld_unknown = in TEST()
95 url::Origin::Create(GURL("https://bar:1234")); in TEST()
96 EXPECT_EQ(url::Origin::Create(GURL("https://bar")), in TEST()
100 url::Origin origin_two_part_tld = url::Origin::Create(GURL("http://a.co.uk")); in TEST()
101 EXPECT_EQ(url::Origin::Create(GURL("http://a.co.uk")), in TEST()
106 url::ScopedSchemeRegistryForTests scoped_registry; in TEST()
107 url::AddStandardScheme("foo", url::SCHEME_WITH_HOST); in TEST()
108 url::Origin origin = url::Origin::Create(GURL("foo://a.b.test")); in TEST()
113 EXPECT_EQ(url::Origin::Create(GURL("foo://a.b.test")), in TEST()
120 url::Origin origin_ipv4_a = in TEST()
121 url::Origin::Create(GURL("http://127.0.0.1:1234")); in TEST()
122 url::Origin origin_ipv4_b = url::Origin::Create(GURL("http://127.0.0.1")); in TEST()
123 EXPECT_EQ(url::Origin::Create(GURL("http://127.0.0.1")), in TEST()
127 url::Origin origin_ipv6 = url::Origin::Create(GURL("https://[::1]")); in TEST()
128 EXPECT_EQ(url::Origin::Create(GURL("https://[::1]")), in TEST()
133 url::Origin opaque_origin_a = in TEST()
134 url::Origin::Create(GURL("data:text/html,<body>Hello World</body>")); in TEST()
140 url::Origin opaque_origin_b = in TEST()
141 url::Origin::Create(GURL("data:text/html,<body>Hello World</body>")); in TEST()
148 SchemefulSite site1(url::Origin::Create(GURL("file:///"))); in TEST()
149 SchemefulSite site2(url::Origin::Create(GURL("file:///path/"))); in TEST()
156 url::ScopedSchemeRegistryForTests scheme_registry; in TEST()
157 AddStandardScheme("network", url::SCHEME_WITH_HOST_PORT_AND_USER_INFORMATION); in TEST()
158 AddStandardScheme("non-network", url::SCHEME_WITH_HOST); in TEST()
165 url::Origin::Create(GURL("network://site.example.test:1337"))); in TEST()
174 url::Origin::Create(GURL("non-network://site.example.test"))); in TEST()
186 url::Origin origin_file = in TEST()
187 url::Origin::Create(GURL("file:///dir1/dir2/file.txt")); in TEST()
190 EXPECT_EQ(url::Origin::Create(GURL("file:///")), in TEST()
194 url::Origin origin_file_with_host = in TEST()
195 url::Origin::Create(GURL("file://host.example.test/file")); in TEST()
198 EXPECT_EQ(url::Origin::Create(GURL("file://example.test")), in TEST()
202 url::Origin origin_file_registrable_domain = in TEST()
203 url::Origin::Create(GURL("file://example.test/file")); in TEST()
206 EXPECT_EQ(url::Origin::Create(GURL("file://example.test")), in TEST()
215 url::ScopedSchemeRegistryForTests scoped_registry; in TEST()
216 url::AddStandardScheme("chrome", url::SCHEME_WITH_HOST); in TEST()
220 SchemefulSite(url::Origin::Create(GURL("http://a.foo.test"))), in TEST()
221 SchemefulSite(url::Origin::Create(GURL("https://b.foo.test"))), in TEST()
222 SchemefulSite(url::Origin::Create(GURL("http://b.foo.test"))), in TEST()
223 SchemefulSite(url::Origin::Create(GURL("http://a.b.foo.test"))), in TEST()
224 SchemefulSite(url::Origin::Create(GURL("chrome://a.b.test")))}; in TEST()
273 SchemefulSite(), SchemefulSite(url::Origin()), in TEST()
288 EXPECT_TRUE(SchemefulSite::FromWire(url::Origin(), &out)); in TEST()
293 url::Origin::Create(GURL("https://example.test")), &out)); in TEST()
294 EXPECT_EQ(SchemefulSite(url::Origin::Create(GURL("https://example.test"))), in TEST()
299 url::Origin::Create(GURL("https://sub.example.test")), &out)); in TEST()
303 url::Origin::Create(GURL("https://example.test:1337")), &out)); in TEST()
315 url::Origin origin = url::Origin::Create(GURL(site)); in TEST()
328 url::Origin origin = url::Origin::Create(GURL(site)); in TEST()
336 SchemefulSite ws_site(url::Origin::Create(GURL("ws://site.example.test"))); in TEST()
338 url::Origin::Create(GURL("http://site.example.test"))); in TEST()
339 SchemefulSite wss_site(url::Origin::Create(GURL("wss://site.example.test"))); in TEST()
341 url::Origin::Create(GURL("https://site.example.test"))); in TEST()
359 EXPECT_EQ(url::kHttpScheme, in TEST()
362 SchemefulSite file_site(url::Origin::Create(GURL("file:///"))); in TEST()
364 EXPECT_EQ(url::kFileScheme, file_site.GetInternalOriginForTesting().scheme()); in TEST()
369 url::Origin origin; in TEST()
373 url::Origin::Create(GURL("data:text/html,<body>Hello World</body>")), in TEST()
376 {url::Origin::Create(GURL("file://foo")), GURL("file:///")}, in TEST()
377 {url::Origin::Create(GURL("http://a.bar.test")), GURL("http://bar.test")}, in TEST()
378 {url::Origin::Create(GURL("http://c.test")), GURL("http://c.test")}, in TEST()
379 {url::Origin::Create(GURL("http://c.test:8000")), GURL("http://c.test")}, in TEST()
381 url::Origin::Create(GURL("https://a.bar.test")), in TEST()
385 url::Origin::Create(GURL("https://c.test")), in TEST()
389 url::Origin::Create(GURL("https://c.test:1337")), in TEST()
401 url::Origin origin = url::Origin::Create(GURL("https://example.com")); in TEST()
404 url::Origin opaque_origin; in TEST()