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

Unified Diff: Source/platform/heap/HeapTest.cpp

Issue 293543003: Oilpan: add NeedsAdjustAndMark<T> unit test. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698