chromium/v8/test/unittests/heap/cppgc/heap-registry-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 <algorithm>

#include "include/cppgc/allocation.h"
#include "include/cppgc/heap.h"
#include "src/heap/cppgc/heap-base.h"
#include "src/heap/cppgc/process-heap.h"
#include "test/unittests/heap/cppgc/tests.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace cppgc {
namespace internal {

class HeapRegistryTest : public testing::TestWithPlatform {};

TEST_F(HeapRegistryTest, Empty) {}

namespace {

bool Contains(const HeapRegistry::Storage& storage, const cppgc::Heap* needle) {}

}  // namespace

TEST_F(HeapRegistryTest, RegisterUnregisterHeaps) {}

TEST_F(HeapRegistryTest, DoesNotFindNullptr) {}

TEST_F(HeapRegistryTest, DoesNotFindStackAddress) {}

TEST_F(HeapRegistryTest, DoesNotFindOffHeap) {}

namespace {

class GCed final : public GarbageCollected<GCed> {};

}  // namespace

TEST_F(HeapRegistryTest, FindsRightHeapForOnHeapAddress) {}

}  // namespace internal
}  // namespace cppgc