chromium/v8/test/unittests/heap/cppgc/platform-unittest.cc

// Copyright 2021 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 "src/heap/cppgc/platform.h"

#include "src/base/logging.h"
#include "src/base/page-allocator.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace cppgc {
namespace internal {

TEST(FatalOutOfMemoryHandlerDeathTest, DefaultHandlerCrashes) {}

namespace {

constexpr uintptr_t kHeapNeedle =;

[[noreturn]] void CustomHandler(const std::string&, const SourceLocation&,
                                HeapBase* heap) {}

}  // namespace

TEST(FatalOutOfMemoryHandlerDeathTest, CustomHandlerCrashes) {}

TEST(FatalOutOfMemoryHandlerDeathTest, CustomHandlerWithHeapState) {}

}  // namespace internal
}  // namespace cppgc