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

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

Issue 2470233009: WTF/std normalization: replace WTF::Vector::first() with ::front() (Closed)
Patch Set: rebase Created 4 years, 1 month 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/web/SuspendableScriptExecutor.cpp ('k') | third_party/WebKit/Source/wtf/Vector.h » ('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 2d47cd8ee860131c105129de99526366cf7c7a71..dec7dd561906834c60d5b302d7919e50f68068f6 100644
--- a/third_party/WebKit/Source/wtf/HashMapTest.cpp
+++ b/third_party/WebKit/Source/wtf/HashMapTest.cpp
@@ -266,14 +266,14 @@ TEST(HashMapTest, AddResultVectorValue) {
result.storedValue->value.append(11);
EXPECT_EQ(1u, map.find(1)->value.size());
- EXPECT_EQ(11, map.find(1)->value.first());
+ EXPECT_EQ(11, map.find(1)->value.front());
IntVectorMap::AddResult result2 = map.add(1, Vector<int>());
EXPECT_FALSE(result2.isNewEntry);
EXPECT_EQ(1, result.storedValue->key);
EXPECT_EQ(1u, result.storedValue->value.size());
- EXPECT_EQ(11, result.storedValue->value.first());
- EXPECT_EQ(11, map.find(1)->value.first());
+ EXPECT_EQ(11, result.storedValue->value.front());
+ EXPECT_EQ(11, map.find(1)->value.front());
}
class InstanceCounter {
« no previous file with comments | « third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp ('k') | third_party/WebKit/Source/wtf/Vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698