#include "include/v8-object.h"
#include "src/api/api-inl.h"
#include "src/execution/isolate.h"
#include "src/heap/combined-heap.h"
#include "src/heap/heap.h"
#include "src/heap/read-only-heap.h"
#include "src/heap/read-only-spaces.h"
#include "src/objects/heap-object.h"
#include "src/objects/objects.h"
#include "src/roots/roots-inl.h"
#include "test/unittests/test-utils.h"
namespace v8::internal::heap {
using IteratorsTest = TestWithNativeContext;
namespace {
template <typename T>
void TestIterator(T it) { … }
}
TEST_F(IteratorsTest, HeapObjectIteratorNullPastEnd) { … }
TEST_F(IteratorsTest, ReadOnlyHeapObjectIteratorNullPastEnd) { … }
TEST_F(IteratorsTest, CombinedHeapObjectIteratorNullPastEnd) { … }
namespace {
Tagged<Object> CreateWritableObject(v8::Isolate* isolate) { … }
}
TEST_F(IteratorsTest, ReadOnlyHeapObjectIterator) { … }
TEST_F(IteratorsTest, HeapObjectIterator) { … }
TEST_F(IteratorsTest, CombinedHeapObjectIterator) { … }
TEST_F(IteratorsTest, PagedSpaceIterator) { … }
TEST_F(IteratorsTest, SpaceIterator) { … }
}