chromium/v8/test/unittests/heap/cppgc/heap-object-header-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 "src/heap/cppgc/heap-object-header.h"

#include <atomic>
#include <memory>

#include "include/cppgc/allocation.h"
#include "src/base/atomic-utils.h"
#include "src/base/macros.h"
#include "src/base/platform/platform.h"
#include "src/heap/cppgc/globals.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace cppgc {
namespace internal {

TEST(HeapObjectHeaderTest, Constructor) {}

TEST(HeapObjectHeaderTest, Payload) {}

TEST(HeapObjectHeaderTest, PayloadEnd) {}

TEST(HeapObjectHeaderTest, GetGCInfoIndex) {}

TEST(HeapObjectHeaderTest, AllocatedSize) {}

TEST(HeapObjectHeaderTest, IsLargeObject) {}

TEST(HeapObjectHeaderTest, MarkObjectAsFullyConstructed) {}

TEST(HeapObjectHeaderTest, TryMark) {}

TEST(HeapObjectHeaderTest, Unmark) {}

namespace {

struct Payload {};

class ConcurrentGCThread final : public v8::base::Thread {};

}  // namespace

TEST(HeapObjectHeaderTest, ConstructionBitProtectsNonAtomicWrites) {}

#ifdef DEBUG

TEST(HeapObjectHeaderDeathTest, ConstructorTooLargeSize) {}

TEST(HeapObjectHeaderDeathTest, ConstructorTooLargeGCInfoIndex) {}

#endif  // DEBUG

}  // namespace internal
}  // namespace cppgc