chromium/v8/test/unittests/heap/cppgc/name-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/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 {};

}  // namespace

TEST(NameTraitTest, InternalNamesHiddenInOfficialBuild) {}

TEST(NameTraitTest, DefaultName) {}

TEST(NameTraitTest, CustomName) {}

namespace {

class TraitTester : public NameTraitBase {};

}  // namespace

TEST(NameTraitTest, NoTypeAvailable) {}

TEST(NameTraitTest, ParsingPrettyFunction) {}

class HeapObjectHeaderNameTest : public testing::TestWithHeap {};

TEST_F(HeapObjectHeaderNameTest, LookupNameThroughGCInfo) {}

}  // namespace internal
}  // namespace cppgc