#include "include/cppgc/object-size-trait.h"
#include "include/cppgc/allocation.h"
#include "include/cppgc/garbage-collected.h"
#include "src/heap/cppgc/heap.h"
#include "test/unittests/heap/cppgc/tests.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cppgc {
namespace internal {
namespace {
class ObjectSizeTraitTest : public testing::TestWithHeap { … };
class GCed : public GarbageCollected<GCed> { … };
class NotGCed { … };
class Mixin : public GarbageCollectedMixin { … };
class UnmanagedMixinWithDouble { … };
class GCedWithMixin : public GarbageCollected<GCedWithMixin>,
public UnmanagedMixinWithDouble,
public Mixin { … };
}
TEST_F(ObjectSizeTraitTest, GarbageCollected) { … }
TEST_F(ObjectSizeTraitTest, GarbageCollectedMixin) { … }
}
}