Index: Source/platform/heap/HeapTest.cpp |
diff --git a/Source/platform/heap/HeapTest.cpp b/Source/platform/heap/HeapTest.cpp |
index bac15e14e080488c7a71abd1b49cfca5b6e3c185..5c93ea68e5a3d0207641dd5d8846a9288692f6cd 100644 |
--- a/Source/platform/heap/HeapTest.cpp |
+++ b/Source/platform/heap/HeapTest.cpp |
@@ -3963,4 +3963,19 @@ TEST(HeapTest, GCParkingTimeout) |
GCParkingThreadTester::test(); |
} |
+TEST(HeapTest, NeedsAdjustAndMark) |
+{ |
+ // class Mixin : public GarbageCollectedMixin {}; |
+ EXPECT_TRUE(NeedsAdjustAndMark<Mixin>::value); |
+ EXPECT_TRUE(NeedsAdjustAndMark<const Mixin>::value); |
+ |
+ // class SimpleObject : public GarbageCollected<SimpleObject> {}; |
+ EXPECT_FALSE(NeedsAdjustAndMark<SimpleObject>::value); |
+ EXPECT_FALSE(NeedsAdjustAndMark<const SimpleObject>::value); |
+ |
+ // class UseMixin : public SimpleObject, public Mixin {}; |
+ EXPECT_FALSE(NeedsAdjustAndMark<UseMixin>::value); |
+ EXPECT_FALSE(NeedsAdjustAndMark<const UseMixin>::value); |
+} |
+ |
} // WebCore namespace |