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

Unified Diff: third_party/WebKit/Source/wtf/VectorTest.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
Index: third_party/WebKit/Source/wtf/VectorTest.cpp
diff --git a/third_party/WebKit/Source/wtf/VectorTest.cpp b/third_party/WebKit/Source/wtf/VectorTest.cpp
index 0060c3705ba81a829749a6389cadaa9331484cee..94d3df9bed05c5eaf978cbe197f29d2cbf57267d 100644
--- a/third_party/WebKit/Source/wtf/VectorTest.cpp
+++ b/third_party/WebKit/Source/wtf/VectorTest.cpp
@@ -160,8 +160,8 @@ typedef WTF::Vector<std::unique_ptr<DestructCounter>> OwnPtrVector;
TEST(VectorTest, OwnPtr) {
int destructNumber = 0;
OwnPtrVector vector;
- vector.append(wrapUnique(new DestructCounter(0, &destructNumber)));
- vector.append(wrapUnique(new DestructCounter(1, &destructNumber)));
+ vector.append(WTF::wrapUnique(new DestructCounter(0, &destructNumber)));
+ vector.append(WTF::wrapUnique(new DestructCounter(1, &destructNumber)));
EXPECT_EQ(2u, vector.size());
std::unique_ptr<DestructCounter>& counter0 = vector.front();
@@ -205,7 +205,7 @@ TEST(VectorTest, OwnPtr) {
size_t count = 1025;
destructNumber = 0;
for (size_t i = 0; i < count; i++)
- vector.prepend(wrapUnique(new DestructCounter(i, &destructNumber)));
+ vector.prepend(WTF::wrapUnique(new DestructCounter(i, &destructNumber)));
// Vector relocation must not destruct std::unique_ptr element.
EXPECT_EQ(0, destructNumber);
« no previous file with comments | « third_party/WebKit/Source/wtf/UniquePtrTransitionGuide.md ('k') | third_party/WebKit/Source/wtf/text/TextCodecICU.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698