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..5d0839af9eb7da817a6e69c8a9644fd292348575 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.IsEmpty()); |
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.IsEmpty()); |
+ |
// The cached singleton in matcher.condition_factory_ should be destroyed to |
// free memory. |
int patternId2 = factory->CreateHostSuffixCondition( |