#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 { … };
}
TEST(HeapObjectHeaderTest, ConstructionBitProtectsNonAtomicWrites) { … }
#ifdef DEBUG
TEST(HeapObjectHeaderDeathTest, ConstructorTooLargeSize) { … }
TEST(HeapObjectHeaderDeathTest, ConstructorTooLargeGCInfoIndex) { … }
#endif
}
}