#include "base/test/memory/dangling_ptr_instrumentation.h"
#include <cstdint>
#include <string_view>
#include "base/allocator/partition_alloc_features.h"
#include "base/check_op.h"
#include "base/feature_list.h"
#include "base/memory/raw_ptr.h"
#include "partition_alloc/dangling_raw_ptr_checks.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base::test {
base::expected<DanglingPtrInstrumentation, std::string_view>
DanglingPtrInstrumentation::Create() { … }
DanglingPtrInstrumentation::DanglingPtrInstrumentation() { … }
DanglingPtrInstrumentation::~DanglingPtrInstrumentation() { … }
DanglingPtrInstrumentation::DanglingPtrInstrumentation(
DanglingPtrInstrumentation&& old) { … }
DanglingPtrInstrumentation& DanglingPtrInstrumentation::operator=(
DanglingPtrInstrumentation&& old) { … }
void DanglingPtrInstrumentation::Register() { … }
void DanglingPtrInstrumentation::Unregister() { … }
raw_ptr<DanglingPtrInstrumentation> DanglingPtrInstrumentation::g_observer = …;
void DanglingPtrInstrumentation::IncreaseCountDetected(std::uintptr_t) { … }
void DanglingPtrInstrumentation::IncreaseCountReleased(std::uintptr_t) { … }
}