| Index: chrome/browser/extensions/api/declarative/url_matcher_unittest.cc
|
| diff --git a/chrome/browser/extensions/api/declarative/url_matcher_unittest.cc b/chrome/browser/extensions/api/declarative/url_matcher_unittest.cc
|
| index 082d3ccc838351aee165d102cd298909ec284fd6..60026d2ef9909b1bddb2ef1cdabb69ca6fe07fe5 100644
|
| --- a/chrome/browser/extensions/api/declarative/url_matcher_unittest.cc
|
| +++ b/chrome/browser/extensions/api/declarative/url_matcher_unittest.cc
|
| @@ -152,6 +152,7 @@ TEST(URLMatcherConditionFactoryTest, TestSingletonProperty) {
|
| // ForgetUnusedPatterns.
|
| SubstringPattern::ID old_id_1 = c1.substring_pattern()->id();
|
| factory.ForgetUnusedPatterns(std::set<SubstringPattern::ID>());
|
| + EXPECT_TRUE(factory.IsCompletelyEmpty());
|
| URLMatcherCondition c4 = factory.CreateHostEqualsCondition("www.google.com");
|
| EXPECT_NE(old_id_1, c4.substring_pattern()->id());
|
| }
|
| @@ -386,6 +387,8 @@ TEST(URLMatcherTest, FullTest) {
|
| EXPECT_EQ(0u, matcher.MatchURL(url1).size());
|
| EXPECT_EQ(0u, matcher.MatchURL(url2).size());
|
|
|
| + EXPECT_TRUE(matcher.IsCompletelyEmpty());
|
| +
|
| // The cached singleton in matcher.condition_factory_ should be destroyed to
|
| // free memory.
|
| int patternId2 = factory->CreateHostSuffixCondition(
|
|
|