Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2807)

Unified Diff: chrome/browser/extensions/api/declarative/substring_set_matcher_unittest.cc

Issue 9830001: Initialize SubstringSetMatcher on construction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/declarative/substring_set_matcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/declarative/substring_set_matcher_unittest.cc
diff --git a/chrome/browser/extensions/api/declarative/substring_set_matcher_unittest.cc b/chrome/browser/extensions/api/declarative/substring_set_matcher_unittest.cc
index d18ba36e6b9a5ff61ebab33dba07d73a113f6877..0e8ce50c64d349771594499583069758579b3a6f 100644
--- a/chrome/browser/extensions/api/declarative/substring_set_matcher_unittest.cc
+++ b/chrome/browser/extensions/api/declarative/substring_set_matcher_unittest.cc
@@ -164,3 +164,10 @@ TEST(SubstringSetMatcherTest, RegisterAndRemove) {
EXPECT_TRUE(matches.end() != matches.find(1));
EXPECT_TRUE(matches.end() == matches.find(2));
}
+
+TEST(SubstringSetMatcherTest, TestEmptyMatcher) {
+ SubstringSetMatcher matcher;
+ std::set<int> matches;
+ matcher.Match("abd", &matches);
+ EXPECT_TRUE(matches.empty());
+}
« no previous file with comments | « chrome/browser/extensions/api/declarative/substring_set_matcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698