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

Unified Diff: components/url_matcher/regex_set_matcher_unittest.cc

Issue 2231753002: components: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more call site Created 4 years, 4 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 | « components/url_matcher/regex_set_matcher.cc ('k') | components/url_matcher/url_matcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/url_matcher/regex_set_matcher_unittest.cc
diff --git a/components/url_matcher/regex_set_matcher_unittest.cc b/components/url_matcher/regex_set_matcher_unittest.cc
index dd54e51d2fbb19872212b3c254157ff771db21c6..49d9a57761b6c2977014f463ad48a5a3753032b6 100644
--- a/components/url_matcher/regex_set_matcher_unittest.cc
+++ b/components/url_matcher/regex_set_matcher_unittest.cc
@@ -26,14 +26,14 @@ TEST(RegexSetMatcherTest, MatchRegexes) {
std::set<StringPattern::ID> result1;
matcher.Match("http://abracadabra.com", &result1);
EXPECT_EQ(2U, result1.size());
- EXPECT_TRUE(ContainsKey(result1, 42));
- EXPECT_TRUE(ContainsKey(result1, 239));
+ EXPECT_TRUE(base::ContainsKey(result1, 42));
+ EXPECT_TRUE(base::ContainsKey(result1, 239));
std::set<StringPattern::ID> result2;
matcher.Match("https://abfffffffffffffffffffffffffffffff.fi/cf", &result2);
EXPECT_EQ(2U, result2.size());
- EXPECT_TRUE(ContainsKey(result2, 17));
- EXPECT_TRUE(ContainsKey(result2, 42));
+ EXPECT_TRUE(base::ContainsKey(result2, 17));
+ EXPECT_TRUE(base::ContainsKey(result2, 42));
std::set<StringPattern::ID> result3;
matcher.Match("http://nothing.com/", &result3);
@@ -56,7 +56,7 @@ TEST(RegexSetMatcherTest, CaseSensitivity) {
std::set<StringPattern::ID> result2;
matcher.Match("http://aaa.net/quaaACK", &result2);
EXPECT_EQ(1U, result2.size());
- EXPECT_TRUE(ContainsKey(result2, 57));
+ EXPECT_TRUE(base::ContainsKey(result2, 57));
}
} // namespace url_matcher
« no previous file with comments | « components/url_matcher/regex_set_matcher.cc ('k') | components/url_matcher/url_matcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698