#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>> { … };
}
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) { … }
}
}