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

Unified Diff: Source/heap/HeapTest.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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 | « Source/heap/Handle.h ('k') | Source/modules/encoding/TextDecoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/heap/HeapTest.cpp
diff --git a/Source/heap/HeapTest.cpp b/Source/heap/HeapTest.cpp
index 379d2f0bf14168968ae5c4cee43bdf1c79b6ca44..a7e4509456f97169d53d3f4eabbd1c2c22bd8420 100644
--- a/Source/heap/HeapTest.cpp
+++ b/Source/heap/HeapTest.cpp
@@ -798,7 +798,7 @@ public:
static int s_aliveCount;
private:
- PointsBack() : m_backPointer(0)
+ PointsBack() : m_backPointer(nullptr)
{
++s_aliveCount;
}
@@ -1818,7 +1818,7 @@ TEST(HeapTest, HeapWeakCollectionSimple)
EXPECT_EQ(4u, weakSet->size());
}
- keepNumbersAlive[0] = 0;
+ keepNumbersAlive[0] = nullptr;
Heap::collectGarbage(ThreadState::NoHeapPointersOnStack);
@@ -1902,7 +1902,7 @@ TEST(HeapTest, HeapWeakCollectionTypes)
}
for (int i = 0; i < 128; i += 3)
- keepNumbersAlive[i] = 0;
+ keepNumbersAlive[i] = nullptr;
if (collectionNumber != weakStrongIndex)
weakStrong->clear();
@@ -1993,7 +1993,7 @@ TEST(HeapTest, HeapWeakCollectionTypes)
SetIteratorCheck(it4, weakSet->end(), (collectionNumber == weakSetIndex ? count : 0) + added);
}
for (unsigned i = 0; i < 128 + added; i++)
- keepNumbersAlive[i] = 0;
+ keepNumbersAlive[i] = nullptr;
Heap::collectGarbage(ThreadState::NoHeapPointersOnStack);
EXPECT_EQ(added, weakStrong->size());
EXPECT_EQ(added, strongWeak->size());
@@ -2207,7 +2207,7 @@ TEST(HeapTest, VisitOffHeapCollections)
Persistent<OffHeapContainer> container = OffHeapContainer::create();
Heap::collectGarbage(ThreadState::NoHeapPointersOnStack);
EXPECT_EQ(0, IntWrapper::s_destructorCalls);
- container = 0;
+ container = nullptr;
Heap::collectGarbage(ThreadState::NoHeapPointersOnStack);
EXPECT_EQ(7, IntWrapper::s_destructorCalls);
}
« no previous file with comments | « Source/heap/Handle.h ('k') | Source/modules/encoding/TextDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698