Lines Matching defs:set1
94 URLPatternSet set1;
95 AddPattern(&set1, "http://www.google.com/f*");
96 AddPattern(&set1, "http://www.yahoo.com/b*");
106 EXPECT_FALSE(set1.OverlapsWith(set2));
107 EXPECT_FALSE(set2.OverlapsWith(set1));
109 EXPECT_TRUE(set1.OverlapsWith(set3));
110 EXPECT_TRUE(set3.OverlapsWith(set1));
115 URLPatternSet set1;
117 AddPattern(&set1, "http://www.google.com/f*");
118 AddPattern(&set1, "http://www.yahoo.com/b*");
122 URLPatternSet::CreateDifference(set1, set2, &result);
123 EXPECT_EQ(set1, result);
133 URLPatternSet::CreateDifference(set1, set2, &result);
136 EXPECT_TRUE(set1.Contains(result));
148 URLPatternSet set1;
149 AddPattern(&set1, "http://www.google.com/f*");
150 AddPattern(&set1, "http://www.yahoo.com/b*");
154 URLPatternSet::CreateIntersection(set1, empty_set, &result);
159 EXPECT_TRUE(set1.Contains(result));
170 URLPatternSet::CreateIntersection(set1, set2, &result);
173 EXPECT_TRUE(set1.Contains(result));
180 URLPatternSet set1;
181 AddPattern(&set1, "http://www.google.com/f*");
182 AddPattern(&set1, "http://www.yahoo.com/b*");
190 URLPatternSet::CreateUnion(set1, empty_set, &result);
203 URLPatternSet::CreateUnion(set1, set2, &result);
208 URLPatternSet set1;
212 AddPattern(&set1, "http://www.google.com/*");
213 AddPattern(&set1, "http://www.yahoo.com/*");
217 EXPECT_FALSE(set1.Contains(set2));
218 EXPECT_TRUE(set1.Contains(empty_set));
219 EXPECT_FALSE(empty_set.Contains(set1));
223 EXPECT_FALSE(set1.Contains(set2));
224 EXPECT_FALSE(set2.Contains(set1));
228 EXPECT_FALSE(set1.Contains(set2));
229 EXPECT_TRUE(set2.Contains(set1));
233 AddPattern(&set1, "http://*.reddit.com/*");
234 EXPECT_TRUE(set1.Contains(set2));
235 EXPECT_FALSE(set2.Contains(set1));
239 URLPatternSet set1;
242 AddPattern(&set1, "http://www.google.com/*");
245 AddPattern(&set1, "http://www.google.com/*");
248 EXPECT_EQ(set2, set1);
252 URLPatternSet set1;
260 AddPattern(&set1, patterns[i]);
264 scoped_ptr<base::ListValue> value(set1.ToValue());
266 EXPECT_EQ(set1, set2);
270 EXPECT_EQ(set1, set2);