Home | History | Annotate | Download | only in proxy

Lines Matching full:http

24   EXPECT_TRUE(rules.Matches(GURL("http://www.google.com")));
29 EXPECT_FALSE(rules.Matches(GURL("http://foo.www.google.com")));
30 EXPECT_FALSE(rules.Matches(GURL("http://xxx.google.com")));
31 EXPECT_FALSE(rules.Matches(GURL("http://google.com")));
32 EXPECT_FALSE(rules.Matches(GURL("http://www.google.com.baz.org")));
44 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com")));
47 EXPECT_TRUE(rules.Matches(GURL("http://foo.google.com/x/y?q")));
48 EXPECT_TRUE(rules.Matches(GURL("http://foo:bar@baz.google.com#x")));
51 EXPECT_FALSE(rules.Matches(GURL("http://google.com")));
52 EXPECT_FALSE(rules.Matches(GURL("http://foo.google.com.baz.org")));
62 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com")));
67 EXPECT_FALSE(rules.Matches(GURL("http://google.com")));
68 EXPECT_FALSE(rules.Matches(GURL("http://foo.google.com.baz.org")));
71 EXPECT_FALSE(rules.Matches(GURL("http://www.google.com:90")));
81 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com")));
92 EXPECT_TRUE(rules.Matches(GURL("http://www.google.org:443")));
95 EXPECT_FALSE(rules.Matches(GURL("http://www.google.org")));
106 EXPECT_TRUE(rules.Matches(GURL("http://192.168.1.1")));
109 EXPECT_FALSE(rules.Matches(GURL("http://www.google.com")));
110 EXPECT_FALSE(rules.Matches(GURL("http://sup.192.168.1.1")));
119 EXPECT_TRUE(rules.Matches(GURL("http://192.168.1.1:33")));
121 EXPECT_FALSE(rules.Matches(GURL("http://www.google.com")));
122 EXPECT_FALSE(rules.Matches(GURL("http://192.168.1.1")));
123 EXPECT_FALSE(rules.Matches(GURL("http://sup.192.168.1.1:33")));
133 EXPECT_TRUE(rules.Matches(GURL("http://[3ffe:2a00:100:7031::1]")));
134 EXPECT_TRUE(rules.Matches(GURL("http://[3ffe:2a00:100:7031::1]:33")));
136 EXPECT_FALSE(rules.Matches(GURL("http://www.google.com")));
137 EXPECT_FALSE(rules.Matches(GURL("http://sup.192.168.1.1:33")));
146 EXPECT_TRUE(rules.Matches(GURL("http://[3ffe:2a00:100:7031::1]:33")));
148 EXPECT_FALSE(rules.Matches(GURL("http://[3ffe:2a00:100:7031::1]")));
149 EXPECT_FALSE(rules.Matches(GURL("http://www.google.com")));
154 rules.ParseFromString("http://www.google.com");
156 EXPECT_EQ("http://www.google.com", rules.rules()[0]->ToString());
158 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com/foo")));
159 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com:99")));
163 EXPECT_FALSE(rules.Matches(GURL("http://foo.www.google.com")));
164 EXPECT_FALSE(rules.Matches(GURL("http://www.google.com.org")));
170 rules.ParseFromString("http://*www.google.com");
172 EXPECT_EQ("http://*www.google.com", rules.rules()[0]->ToString());
174 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com/foo")));
175 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com:99")));
176 EXPECT_TRUE(rules.Matches(GURL("http://foo.www.google.com")));
180 EXPECT_FALSE(rules.Matches(GURL("http://www.google.com.org")));
188 "*foobar.com:80, *.foo, http://baz, <local>");
195 EXPECT_EQ("http://*baz", rules.rules()[5]->ToString());
198 EXPECT_TRUE(rules.Matches(GURL("http://foo1.com")));
199 EXPECT_TRUE(rules.Matches(GURL("http://aaafoo1.com")));
200 EXPECT_FALSE(rules.Matches(GURL("http://aaafoo1.com.net")));
208 EXPECT_TRUE(rules.Matches(GURL("http://baz.google.com:40")));
209 EXPECT_FALSE(rules.Matches(GURL("http://google.com:40")));
210 EXPECT_TRUE(rules.Matches(GURL("http://bar.foobar.com:30")));
211 EXPECT_FALSE(rules.Matches(GURL("http://bar.foobar.com")));
212 EXPECT_FALSE(rules.Matches(GURL("http://bar.foobar.com:33")));
219 EXPECT_FALSE(rules.AddRuleFromString("http://"));
247 {"http://localhost/x", true},
248 {"http://www", true},
251 {"http://127.0.0.1/x", true},
252 {"http://127.0.0.1:80/x", true},
255 {"http://[::1]:80/x", true},
256 {"http://[0:0::1]:6233/x", true},
257 {"http://[0:0:0:0:0:0:0:1]/x", true},
260 {"http://foo.com/", false},
261 {"http://localhost.i/", false},
262 {"http://www.google.com/", false},
263 {"http://192.168.0.1/", false},
271 {"http://www./x", false},
272 {"http://localhost./x", false},
291 EXPECT_TRUE(rules.Matches(GURL("http://192.168.1.1")));
294 EXPECT_TRUE(rules.Matches(GURL("http://[::ffff:192.168.11.11]")));
296 EXPECT_FALSE(rules.Matches(GURL("http://foobar.com")));
297 EXPECT_FALSE(rules.Matches(GURL("http://192.169.1.1")));
298 EXPECT_FALSE(rules.Matches(GURL("http://xxx.192.168.1.1")));
299 EXPECT_FALSE(rules.Matches(GURL("http://192.168.1.1.xx")));
308 EXPECT_TRUE(rules.Matches(GURL("http://[A:b:C:9::]")));
309 EXPECT_FALSE(rules.Matches(GURL("http://foobar.com")));
310 EXPECT_FALSE(rules.Matches(GURL("http://192.169.1.1")));