chromium/v8/test/unittests/heap/iterators-unittest.cc

// Copyright 2019 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 "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) {}
}  // namespace

TEST_F(IteratorsTest, HeapObjectIteratorNullPastEnd) {}

TEST_F(IteratorsTest, ReadOnlyHeapObjectIteratorNullPastEnd) {}

TEST_F(IteratorsTest, CombinedHeapObjectIteratorNullPastEnd) {}

namespace {
// An arbitrary object guaranteed to live on the non-read-only heap.
Tagged<Object> CreateWritableObject(v8::Isolate* isolate) {}
}  // namespace

TEST_F(IteratorsTest, ReadOnlyHeapObjectIterator) {}

TEST_F(IteratorsTest, HeapObjectIterator) {}

TEST_F(IteratorsTest, CombinedHeapObjectIterator) {}

TEST_F(IteratorsTest, PagedSpaceIterator) {}

TEST_F(IteratorsTest, SpaceIterator) {}

}  // namespace v8::internal::heap