chromium/third_party/crashpad/crashpad/util/posix/symbolic_constants_posix_test.cc

// Copyright 2014 The Crashpad Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "util/posix/symbolic_constants_posix.h"

#include <signal.h>
#include <sys/types.h>

#include <iterator>
#include <string_view>

#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "gtest/gtest.h"

#define NUL_TEST_DATA(string)

namespace crashpad {
namespace test {
namespace {

constexpr struct {} kSignalTestData[] =;

// If |expect| is nullptr, the conversion is expected to fail. If |expect| is
// empty, the conversion is expected to succeed, but the precise returned string
// value is unknown. Otherwise, the conversion is expected to succeed, and
// |expect| contains the precise expected string value to be returned.
//
// Only set kUseFullName or kUseShortName when calling this. Other options are
// exercised directly by this function.
void TestSignalToStringOnce(int value,
                            const char* expect,
                            SymbolicConstantToStringOptions options) {}

void TestSignalToString(int value,
                        const char* expect_full,
                        const char* expect_short) {}

TEST(SymbolicConstantsPOSIX, SignalToString) {}

void TestStringToSignal(std::string_view string,
                        StringToSymbolicConstantOptions options,
                        bool expect_result,
                        int expect_value) {}

TEST(SymbolicConstantsPOSIX, StringToSignal) {}

}  // namespace
}  // namespace test
}  // namespace crashpad