#include "include/cppgc/internal/name-trait.h"
#include "include/cppgc/allocation.h"
#include "include/cppgc/garbage-collected.h"
#include "src/base/build_config.h"
#include "test/unittests/heap/cppgc/tests.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cppgc {
namespace internal {
namespace {
struct NoName : public GarbageCollected<NoName> { … };
struct OtherNoName : public GarbageCollected<OtherNoName> { … };
class ClassWithName final : public GarbageCollected<ClassWithName>,
public NameProvider { … };
}
TEST(NameTraitTest, InternalNamesHiddenInOfficialBuild) { … }
TEST(NameTraitTest, DefaultName) { … }
TEST(NameTraitTest, CustomName) { … }
namespace {
class TraitTester : public NameTraitBase { … };
}
TEST(NameTraitTest, NoTypeAvailable) { … }
TEST(NameTraitTest, ParsingPrettyFunction) { … }
class HeapObjectHeaderNameTest : public testing::TestWithHeap { … };
TEST_F(HeapObjectHeaderNameTest, LookupNameThroughGCInfo) { … }
}
}