Home | History | Annotate | Download | only in url_matcher

Lines Matching refs:IsMatch

42   EXPECT_TRUE(filter1.IsMatch(matching_url));
43 EXPECT_FALSE(filter1.IsMatch(non_matching_url));
44 EXPECT_TRUE(filter2.IsMatch(matching_url));
45 EXPECT_TRUE(filter2.IsMatch(non_matching_url));
53 EXPECT_TRUE(filter.IsMatch(GURL("http://www.example.com")));
54 EXPECT_TRUE(filter.IsMatch(GURL("http://www.example.com:80")));
55 EXPECT_TRUE(filter.IsMatch(GURL("http://www.example.com:81")));
56 EXPECT_TRUE(filter.IsMatch(GURL("http://www.example.com:90")));
57 EXPECT_TRUE(filter.IsMatch(GURL("http://www.example.com:8080")));
58 EXPECT_FALSE(filter.IsMatch(GURL("http://www.example.com:79")));
59 EXPECT_FALSE(filter.IsMatch(GURL("http://www.example.com:91")));
60 EXPECT_FALSE(filter.IsMatch(GURL("https://www.example.com")));
85 TEST(URLMatcherConditionTest, IsMatch) {
96 EXPECT_FALSE(m1.IsMatch(matching_patterns, url1));
100 EXPECT_TRUE(m1.IsMatch(matching_patterns, url1));
106 EXPECT_TRUE(m2.IsMatch(matching_patterns, url1));
107 EXPECT_FALSE(m2.IsMatch(matching_patterns, url2));
444 EXPECT_FALSE(condition_set->IsMatch(matching_patterns, url1));
447 EXPECT_TRUE(condition_set->IsMatch(matching_patterns, url1));
448 EXPECT_FALSE(condition_set->IsMatch(matching_patterns, url2));
457 EXPECT_FALSE(condition_set2->IsMatch(matching_patterns, url1));
464 EXPECT_TRUE(condition_set3->IsMatch(matching_patterns, url1));
473 EXPECT_TRUE(condition_set4->IsMatch(matching_patterns, url1));
474 EXPECT_TRUE(condition_set4->IsMatch(matching_patterns, url3));
475 EXPECT_FALSE(condition_set4->IsMatch(matching_patterns, url4));
484 EXPECT_FALSE(condition_set5->IsMatch(matching_patterns, url1));
486 EXPECT_TRUE(condition_set5->IsMatch(matching_patterns, url1));
491 EXPECT_FALSE(condition_set6->IsMatch(matching_patterns, url1));
493 EXPECT_TRUE(condition_set6->IsMatch(matching_patterns, url1));
501 EXPECT_FALSE(condition_set7->IsMatch(matching_patterns, url1));
503 EXPECT_TRUE(condition_set7->IsMatch(matching_patterns, url1));