#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) { … }
}
TEST(FatalOutOfMemoryHandlerDeathTest, CustomHandlerCrashes) { … }
TEST(FatalOutOfMemoryHandlerDeathTest, CustomHandlerWithHeapState) { … }
}
}