Chromium Code Reviews| Index: Source/platform/heap/HeapTest.cpp |
| diff --git a/Source/platform/heap/HeapTest.cpp b/Source/platform/heap/HeapTest.cpp |
| index 3a2fc82352eb5577309670aef54433018fc3fc6a..bb8e21c68cd50dd4047cb37ce1a931149647aec6 100644 |
| --- a/Source/platform/heap/HeapTest.cpp |
| +++ b/Source/platform/heap/HeapTest.cpp |
| @@ -341,6 +341,7 @@ public: |
| bool operator==(const OffHeapInt& other) const { return other.value() == value(); } |
| unsigned hash() { return IntHash<int>::hash(m_x); } |
| + void voidFunction() { } |
| protected: |
| OffHeapInt(int x) : m_x(x) { } |
| @@ -3989,6 +3990,8 @@ TEST(HeapTest, Bind) |
| Heap::collectGarbage(ThreadState::NoHeapPointersOnStack); |
| // The closure should have a persistent handle to the Bar. |
| EXPECT_EQ(2u, Bar::s_live); |
| + // RawPtr<OffHeaInt> should not make Persistent. |
|
Mads Ager (chromium)
2014/06/11 08:36:12
OffHeapInt
tkent
2014/06/11 08:39:47
Done.
|
| + Closure closure3 = bind(&OffHeapInt::voidFunction, RawPtr<OffHeapInt>(OffHeapInt::create(1).get())); |
|
tkent
2014/06/11 08:12:17
This was not compilable without the Handle.h chang
|
| UseMixin::s_traceCount = 0; |
| Mixin* mixin = UseMixin::create(); |