#include "src/base/virtual-address-space.h"
#include "src/base/emulated-virtual-address-subspace.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace base {
constexpr size_t KB = …;
constexpr size_t MB = …;
void TestRandomPageAddressGeneration(v8::VirtualAddressSpace* space) { … }
void TestBasicPageAllocation(v8::VirtualAddressSpace* space) { … }
void TestPageAllocationAlignment(v8::VirtualAddressSpace* space) { … }
void TestParentSpaceCannotAllocateInChildSpace(v8::VirtualAddressSpace* parent,
v8::VirtualAddressSpace* child) { … }
void TestSharedPageAllocation(v8::VirtualAddressSpace* space) { … }
TEST(VirtualAddressSpaceTest, TestPagePermissionSubsets) { … }
TEST(VirtualAddressSpaceTest, TestRootSpace) { … }
TEST(VirtualAddressSpaceTest, TestSubspace) { … }
TEST(VirtualAddressSpaceTest, TestEmulatedSubspace) { … }
}
}