chromium/v8/test/unittests/heap/cppgc/object-size-trait-unittest.cc

// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {};

}  // namespace

TEST_F(ObjectSizeTraitTest, GarbageCollected) {}

TEST_F(ObjectSizeTraitTest, GarbageCollectedMixin) {}

}  // namespace internal
}  // namespace cppgc