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

Unified Diff: chrome/browser/media_galleries/gallery_watch_manager_unittest.cc

Issue 2230203002: chrome: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed accidental components/ change 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
Index: chrome/browser/media_galleries/gallery_watch_manager_unittest.cc
diff --git a/chrome/browser/media_galleries/gallery_watch_manager_unittest.cc b/chrome/browser/media_galleries/gallery_watch_manager_unittest.cc
index 0c7388c4cffc874b7336f03b47aef0d7552cc4d6..517c852840d4807604705f03432f30ad811c6dca 100644
--- a/chrome/browser/media_galleries/gallery_watch_manager_unittest.cc
+++ b/chrome/browser/media_galleries/gallery_watch_manager_unittest.cc
@@ -239,22 +239,22 @@ TEST_F(GalleryWatchManagerTest, AddAndRemoveTwoWatches) {
MediaGalleryPrefIdSet set1 =
manager()->GetWatchSet(profile(), extension()->id());
EXPECT_EQ(1u, set1.size());
- EXPECT_TRUE(ContainsKey(set1, id1));
+ EXPECT_TRUE(base::ContainsKey(set1, id1));
// Test that the second watch was added correctly too.
AddAndConfirmWatch(id2);
MediaGalleryPrefIdSet set2 =
manager()->GetWatchSet(profile(), extension()->id());
EXPECT_EQ(2u, set2.size());
- EXPECT_TRUE(ContainsKey(set2, id1));
- EXPECT_TRUE(ContainsKey(set2, id2));
+ EXPECT_TRUE(base::ContainsKey(set2, id1));
+ EXPECT_TRUE(base::ContainsKey(set2, id2));
// Remove first watch and test that the second is still in there.
manager()->RemoveWatch(profile(), extension()->id(), id1);
MediaGalleryPrefIdSet set3 =
manager()->GetWatchSet(profile(), extension()->id());
EXPECT_EQ(1u, set3.size());
- EXPECT_TRUE(ContainsKey(set3, id2));
+ EXPECT_TRUE(base::ContainsKey(set3, id2));
// Try removing the first watch again and test that it has no effect.
manager()->RemoveWatch(profile(), extension()->id(), id1);

Powered by Google App Engine
This is Rietveld 408576698