chromium/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/check.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "partition_alloc/partition_alloc_base/check.h"

#include "partition_alloc/partition_alloc_base/logging.h"

namespace partition_alloc::internal::logging {

// TODO(crbug.com/40158212): Make CheckError not to allocate memory. So we can
// use CHECK() inside PartitionAllocator when PartitionAllocator-Everywhere is
// enabled. (Also need to modify LogMessage).

CheckError::CheckError(const char* file,
                       int line,
                       LogSeverity severity,
                       const char* condition)
    :{}

CheckError::CheckError(const char* file, int line, LogSeverity severity)
    :{}

CheckError::CheckError(const char* file,
                       int line,
                       LogSeverity severity,
                       const char* condition,
                       SystemErrorCode err_code)
    :{}

check_error::Check::Check(const char* file, int line, const char* condition)
    :{}

check_error::DCheck::DCheck(const char* file, int line, const char* condition)
    :{}

check_error::PCheck::PCheck(const char* file, int line, const char* condition)
    :{}

check_error::PCheck::PCheck(const char* file, int line)
    :{}

check_error::DPCheck::DPCheck(const char* file, int line, const char* condition)
    :{}

check_error::NotImplemented::NotImplemented(const char* file,
                                            int line,
                                            const char* function)
    :{}

base::strings::CStringBuilder& CheckError::stream() {}

CheckError::~CheckError() {}

void RawCheckFailure(const char* message) {}

}  // namespace partition_alloc::internal::logging