Lines Matching refs:Matches

24   EXPECT_TRUE(rules.Matches(GURL("http://www.google.com")));
25 EXPECT_TRUE(rules.Matches(GURL("ftp://www.google.com:99")));
26 EXPECT_TRUE(rules.Matches(GURL("https://www.google.com:81")));
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")));
45 EXPECT_TRUE(rules.Matches(GURL("ftp://www.google.com:99")));
46 EXPECT_TRUE(rules.Matches(GURL("https://a.google.com:81")));
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")));
63 EXPECT_TRUE(rules.Matches(GURL("ftp://www.google.com:80")));
64 EXPECT_TRUE(rules.Matches(GURL("https://a.google.com:80?x")));
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")));
72 EXPECT_FALSE(rules.Matches(GURL("https://www.google.com")));
81 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com")));
82 EXPECT_TRUE(rules.Matches(GURL("ftp://www.foobar.com:99")));
83 EXPECT_TRUE(rules.Matches(GURL("https://a.google.com:80?x")));
92 EXPECT_TRUE(rules.Matches(GURL("http://www.google.org:443")));
93 EXPECT_TRUE(rules.Matches(GURL("https://www.google.org")));
95 EXPECT_FALSE(rules.Matches(GURL("http://www.google.org")));
96 EXPECT_FALSE(rules.Matches(GURL("https://www.google.com")));
97 EXPECT_FALSE(rules.Matches(GURL("https://www.google.org.com")));
106 EXPECT_TRUE(rules.Matches(GURL("http://192.168.1.1")));
107 EXPECT_TRUE(rules.Matches(GURL("https://192.168.1.1:90")));
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")));
158 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com/foo")));
159 EXPECT_TRUE(rules.Matches(GURL("http://www.google.com:99")));
161 EXPECT_FALSE(rules.Matches(GURL("https://www.google.com")));
162 EXPECT_FALSE(rules.Matches(GURL("ftp://www.google.com")));
163 EXPECT_FALSE(rules.Matches(GURL("http://foo.www.google.com")));
164 EXPECT_FALSE(rules.Matches(GURL("http://www.google.com.org")));
165 EXPECT_FALSE(rules.Matches(GURL("https://www.google.com")));
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")));
178 EXPECT_FALSE(rules.Matches(GURL("https://www.google.com")));
179 EXPECT_FALSE(rules.Matches(GURL("ftp://www.google.com")));
180 EXPECT_FALSE(rules.Matches(GURL("http://www.google.com.org")));
181 EXPECT_FALSE(rules.Matches(GURL("https://www.google.com")));
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")));
281 EXPECT_EQ(tests[i].expected_is_local, rules.Matches(GURL(tests[i].url)));
291 EXPECT_TRUE(rules.Matches(GURL("http://192.168.1.1")));
292 EXPECT_TRUE(rules.Matches(GURL("ftp://192.168.4.4")));
293 EXPECT_TRUE(rules.Matches(GURL("https://192.168.0.0:81")));
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")));