Lines Matching defs:Overlaps
464 testing::AssertionResult Overlaps(const URLPattern& pattern1,
477 << pattern1.GetAsString() << " overlaps with " << pattern2.GetAsString();
480 TEST(ExtensionURLPatternTest, Overlaps) {
493 EXPECT_TRUE(Overlaps(pattern1, pattern1));
494 EXPECT_FALSE(Overlaps(pattern1, pattern2));
495 EXPECT_TRUE(Overlaps(pattern1, pattern3));
496 EXPECT_FALSE(Overlaps(pattern1, pattern4));
497 EXPECT_FALSE(Overlaps(pattern3, pattern4));
498 EXPECT_FALSE(Overlaps(pattern4, pattern5));
499 EXPECT_TRUE(Overlaps(pattern5, pattern6));
502 EXPECT_TRUE(Overlaps(pattern1, pattern8));
503 EXPECT_FALSE(Overlaps(pattern1, pattern9));
504 EXPECT_TRUE(Overlaps(pattern1, pattern10));
507 EXPECT_FALSE(Overlaps(pattern7, pattern8));
508 EXPECT_TRUE(Overlaps(pattern7, pattern10));
516 EXPECT_TRUE(Overlaps(pattern8, pattern12));
517 EXPECT_TRUE(Overlaps(pattern9, pattern12));
518 EXPECT_TRUE(Overlaps(pattern10, pattern12));
519 EXPECT_TRUE(Overlaps(pattern11, pattern12));
520 EXPECT_TRUE(Overlaps(pattern12, pattern13));
521 EXPECT_TRUE(Overlaps(pattern11, pattern13));
522 EXPECT_FALSE(Overlaps(pattern14, pattern12));
523 EXPECT_FALSE(Overlaps(pattern14, pattern13));