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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 3945 matching lines...) Expand 10 before | Expand all | Expand 10 after
3956 }; 3956 };
3957 3957
3958 volatile bool GCParkingThreadTester::s_sleeperRunning = false; 3958 volatile bool GCParkingThreadTester::s_sleeperRunning = false;
3959 volatile bool GCParkingThreadTester::s_sleeperDone = false; 3959 volatile bool GCParkingThreadTester::s_sleeperDone = false;
3960 3960
3961 TEST(HeapTest, GCParkingTimeout) 3961 TEST(HeapTest, GCParkingTimeout)
3962 { 3962 {
3963 GCParkingThreadTester::test(); 3963 GCParkingThreadTester::test();
3964 } 3964 }
3965 3965
3966 TEST(HeapTest, NeedsAdjustAndMark)
3967 {
3968 // class Mixin : public GarbageCollectedMixin {};
3969 EXPECT_TRUE(NeedsAdjustAndMark<Mixin>::value);
3970 EXPECT_TRUE(NeedsAdjustAndMark<const Mixin>::value);
3971
3972 // class SimpleObject : public GarbageCollected<SimpleObject> {};
3973 EXPECT_FALSE(NeedsAdjustAndMark<SimpleObject>::value);
3974 EXPECT_FALSE(NeedsAdjustAndMark<const SimpleObject>::value);
3975
3976 // class UseMixin : public SimpleObject, public Mixin {};
3977 EXPECT_FALSE(NeedsAdjustAndMark<UseMixin>::value);
3978 EXPECT_FALSE(NeedsAdjustAndMark<const UseMixin>::value);
3979 }
3980
3966 } // WebCore namespace 3981 } // WebCore namespace
OLDNEW
« 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