chromium/base/debug/crash_logging_unittest.cc

// Copyright 2013 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/debug/crash_logging.h"

#include <map>
#include <memory>
#include <sstream>
#include <string_view>

#include "base/memory/raw_ref.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

ElementsAre;
IsEmpty;
Pair;

namespace base {
namespace debug {

namespace {

class TestCrashKeyImplementation : public CrashKeyImplementation {};

}  // namespace

class CrashLoggingTest : public ::testing::Test {};

// Should not crash.
TEST(UninitializedCrashLoggingTest, Basic) {}

TEST_F(CrashLoggingTest, Basic) {}

// Verify that the macros are properly setting crash keys.
TEST_F(CrashLoggingTest, Macros) {}

// Test that the helper macros properly uniqify the internal variable used for
// the scoper.
TEST_F(CrashLoggingTest, MultipleCrashKeysInSameScope) {}

}  // namespace debug
}  // namespace base