#include <algorithm>
#include <iterator>
#include <numeric>
#include "include/cppgc/allocation.h"
#include "include/cppgc/heap-consistency.h"
#include "include/cppgc/persistent.h"
#include "include/cppgc/prefinalizer.h"
#include "src/heap/cppgc/globals.h"
#include "src/heap/cppgc/heap-visitor.h"
#include "src/heap/cppgc/heap.h"
#include "src/heap/cppgc/object-view.h"
#include "test/unittests/heap/cppgc/tests.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cppgc {
namespace internal {
namespace {
class WorkloadsTest : public testing::TestWithHeap { … };
class SuperClass;
class PointsBack final : public GarbageCollected<PointsBack> { … };
int PointsBack::alive_count_ = …;
class SuperClass : public GarbageCollected<SuperClass> { … };
int SuperClass::alive_count_ = …;
class SubData final : public GarbageCollected<SubData> { … };
int SubData::alive_count_ = …;
class SubClass final : public SuperClass { … };
int SubClass::alive_count_ = …;
}
TEST_F(WorkloadsTest, Transition) { … }
namespace {
class DynamicallySizedObject final
: public GarbageCollected<DynamicallySizedObject> { … };
class ObjectSizeCounter final : private HeapVisitor<ObjectSizeCounter> { … };
}
TEST_F(WorkloadsTest, BasicFunctionality) { … }
}
}