Lines Matching refs:PathMatch
1332 TEST_F(SdchFilterTest, PathMatch) {
1333 bool (*PathMatch)(const std::string& path, const std::string& restriction) =
1334 SdchManager::Dictionary::PathMatch;
1336 EXPECT_TRUE(PathMatch("/search", "/search"));
1337 EXPECT_TRUE(PathMatch("/search/", "/search/"));
1343 EXPECT_TRUE(PathMatch("/search/something", "/search"));
1344 EXPECT_TRUE(PathMatch("/search/s", "/search"));
1345 EXPECT_TRUE(PathMatch("/search/other", "/search"));
1346 EXPECT_TRUE(PathMatch("/search/something", "/search"));
1349 EXPECT_TRUE(PathMatch("/search/something", "/search/"));
1350 EXPECT_TRUE(PathMatch("/search/s", "/search/"));
1351 EXPECT_TRUE(PathMatch("/search/other", "/search/"));
1352 EXPECT_TRUE(PathMatch("/search/something", "/search/"));
1355 EXPECT_FALSE(PathMatch("/sear", "/search"));
1356 EXPECT_FALSE(PathMatch("/", "/search"));
1357 EXPECT_FALSE(PathMatch("", "/search"));
1360 EXPECT_FALSE(PathMatch("/search/something", "search/s"));
1361 EXPECT_FALSE(PathMatch("/search/", "/search/s"));
1364 EXPECT_FALSE(PathMatch("/searching", "/search/"));
1365 EXPECT_FALSE(PathMatch("/searching", "/search"));
1368 EXPECT_FALSE(PathMatch("/ABC", "/abc"));
1369 EXPECT_FALSE(PathMatch("/abc", "/ABC"));