llvm/lldb/unittests/Process/minidump/MinidumpParserTest.cpp

//===-- MinidumpTypesTest.cpp ---------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "Plugins/Process/minidump/MinidumpParser.h"
#include "Plugins/Process/minidump/MinidumpTypes.h"
#include "Plugins/Process/minidump/RegisterContextMinidump_x86_32.h"
#include "Plugins/Process/minidump/RegisterContextMinidump_x86_64.h"
#include "TestingSupport/SubsystemRAII.h"
#include "TestingSupport/TestUtilities.h"
#include "lldb/Host/FileSystem.h"
#include "lldb/Target/MemoryRegionInfo.h"
#include "lldb/Utility/ArchSpec.h"
#include "lldb/Utility/DataBufferHeap.h"
#include "lldb/Utility/DataExtractor.h"
#include "lldb/Utility/FileSpec.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ObjectYAML/yaml2obj.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/YAMLTraits.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"

// C includes

// C++ includes
#include <memory>
#include <optional>

usingnamespacelldb_private;
usingnamespaceminidump;

class MinidumpParserTest : public testing::Test {};

TEST_F(MinidumpParserTest, InvalidMinidump) {}

TEST_F(MinidumpParserTest, GetThreadsAndGetThreadContext) {}

TEST_F(MinidumpParserTest, GetArchitecture) {}

TEST_F(MinidumpParserTest, GetMiscInfo_no_stream) {}

TEST_F(MinidumpParserTest, GetLinuxProcStatus) {}

TEST_F(MinidumpParserTest, GetPid) {}

TEST_F(MinidumpParserTest, GetFilteredModuleList) {}

TEST_F(MinidumpParserTest, GetExceptionStream) {}

void check_mem_range_exists(MinidumpParser &parser, const uint64_t range_start,
                            const uint64_t range_size) {}

TEST_F(MinidumpParserTest, FindMemoryRange) {}

TEST_F(MinidumpParserTest, GetMemory) {}

TEST_F(MinidumpParserTest, FindMemoryRangeWithFullMemoryMinidump) {}

constexpr auto yes =;
constexpr auto no =;
constexpr auto unknown =;

TEST_F(MinidumpParserTest, GetMemoryRegionInfo) {}

TEST_F(MinidumpParserTest, GetMemoryRegionInfoFromMemoryList) {}

TEST_F(MinidumpParserTest, GetMemoryRegionInfoFromMemory64List) {}

TEST_F(MinidumpParserTest, GetMemoryRegionInfoLinuxMaps) {}

TEST_F(MinidumpParserTest, GetMemoryRegionInfoLinuxMapsError) {}

// Windows Minidump tests
TEST_F(MinidumpParserTest, GetArchitectureWindows) {}

TEST_F(MinidumpParserTest, GetLinuxProcStatus_no_stream) {}

TEST_F(MinidumpParserTest, GetMiscInfoWindows) {}

TEST_F(MinidumpParserTest, GetPidWindows) {}

// wow64
TEST_F(MinidumpParserTest, GetPidWow64) {}

// Register tests
#define REG_VAL32(x)
#define REG_VAL64(x)

TEST_F(MinidumpParserTest, GetThreadContext_x86_32) {}

TEST_F(MinidumpParserTest, GetThreadContext_x86_64) {}

TEST_F(MinidumpParserTest, GetThreadContext_x86_32_wow64) {}

TEST_F(MinidumpParserTest, MinidumpDuplicateModuleMinAddress) {}

TEST_F(MinidumpParserTest, MinidumpDuplicateModuleMappedFirst) {}

TEST_F(MinidumpParserTest, MinidumpDuplicateModuleMappedSecond) {}

TEST_F(MinidumpParserTest, MinidumpDuplicateModuleMappedSecondHigh) {}

TEST_F(MinidumpParserTest, MinidumpDuplicateModuleSeparateCode) {}

TEST_F(MinidumpParserTest, MinidumpModuleOrder) {}