• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "base/debug/crash_logging.h"
6 
7 #include "testing/gtest/include/gtest/gtest.h"
8 
TEST(CrashLoggingTest,UninitializedCrashKeyStringSupport)9 TEST(CrashLoggingTest, UninitializedCrashKeyStringSupport) {
10   auto* crash_key = base::debug::AllocateCrashKeyString(
11       "test", base::debug::CrashKeySize::Size32);
12   EXPECT_FALSE(crash_key);
13 
14   base::debug::SetCrashKeyString(crash_key, "value");
15 
16   base::debug::ClearCrashKeyString(crash_key);
17 }
18