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

#include <algorithm>

#include "include/cppgc/allocation.h"
#include "include/cppgc/persistent.h"
#include "src/base/macros.h"
#include "src/heap/cppgc/globals.h"
#include "src/heap/cppgc/heap-object-header.h"
#include "src/heap/cppgc/page-memory.h"
#include "src/heap/cppgc/raw-heap.h"
#include "test/unittests/heap/cppgc/tests.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace cppgc {
namespace internal {

namespace {

class PageTest : public testing::TestWithHeap {};

template <size_t Size>
class GCed : public GarbageCollected<GCed<Size>> {};

}  // namespace

TEST_F(PageTest, SpaceIndexing) {}

TEST_F(PageTest, PredefinedSpaces) {}

TEST_F(PageTest, NormalPageIndexing) {}

TEST_F(PageTest, LargePageIndexing) {}

TEST_F(PageTest, HeapObjectHeaderOnBasePageIndexing) {}

TEST_F(PageTest, HeapObjectHeaderOnLargePageIndexing) {}

TEST_F(PageTest, NormalPageCreationDestruction) {}

TEST_F(PageTest, LargePageCreationDestruction) {}

#if DEBUG
TEST_F(PageTest, UnsweptPageDestruction) {}
#endif

TEST_F(PageTest, ObjectHeaderFromInnerAddress) {}

}  // namespace internal
}  // namespace cppgc