chromium/base/test/memory/dangling_ptr_instrumentation.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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 {

// static
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 =;

// static
void DanglingPtrInstrumentation::IncreaseCountDetected(std::uintptr_t) {}

// static
void DanglingPtrInstrumentation::IncreaseCountReleased(std::uintptr_t) {}

}  // namespace base::test