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

Unified Diff: third_party/WebKit/Source/wtf/HashMapTest.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 | « third_party/WebKit/Source/wtf/FunctionalTest.cpp ('k') | third_party/WebKit/Source/wtf/HashSetTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/HashMapTest.cpp
diff --git a/third_party/WebKit/Source/wtf/HashMapTest.cpp b/third_party/WebKit/Source/wtf/HashMapTest.cpp
index dec7dd561906834c60d5b302d7919e50f68068f6..7a6e32b6bb5a4f28df40d70d7e226c5a5d36860e 100644
--- a/third_party/WebKit/Source/wtf/HashMapTest.cpp
+++ b/third_party/WebKit/Source/wtf/HashMapTest.cpp
@@ -106,8 +106,8 @@ using OwnPtrHashMap = HashMap<int, std::unique_ptr<DestructCounter>>;
TEST(HashMapTest, OwnPtrAsValue) {
int destructNumber = 0;
OwnPtrHashMap map;
- map.add(1, wrapUnique(new DestructCounter(1, &destructNumber)));
- map.add(2, wrapUnique(new DestructCounter(2, &destructNumber)));
+ map.add(1, WTF::wrapUnique(new DestructCounter(1, &destructNumber)));
+ map.add(2, WTF::wrapUnique(new DestructCounter(2, &destructNumber)));
DestructCounter* counter1 = map.get(1);
EXPECT_EQ(1, counter1->get());
@@ -246,10 +246,10 @@ TEST(HashMapTest, AddResult) {
EXPECT_EQ(0, result.storedValue->value.get());
SimpleClass* simple1 = new SimpleClass(1);
- result.storedValue->value = wrapUnique(simple1);
+ result.storedValue->value = WTF::wrapUnique(simple1);
EXPECT_EQ(simple1, map.get(1));
- IntSimpleMap::AddResult result2 = map.add(1, makeUnique<SimpleClass>(2));
+ IntSimpleMap::AddResult result2 = map.add(1, WTF::makeUnique<SimpleClass>(2));
EXPECT_FALSE(result2.isNewEntry);
EXPECT_EQ(1, result.storedValue->key);
EXPECT_EQ(1, result.storedValue->value->v());
« no previous file with comments | « third_party/WebKit/Source/wtf/FunctionalTest.cpp ('k') | third_party/WebKit/Source/wtf/HashSetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698