#include "snapshot/minidump/process_snapshot_minidump.h"
#include <windows.h>
#include <dbghelp.h>
#include <string.h>
#include <algorithm>
#include <iterator>
#include <memory>
#include "base/numerics/safe_math.h"
#include "base/strings/utf_string_conversions.h"
#include "gtest/gtest.h"
#include "minidump/minidump_context.h"
#include "snapshot/memory_map_region_snapshot.h"
#include "snapshot/minidump/minidump_annotation_reader.h"
#include "snapshot/module_snapshot.h"
#include "util/file/string_file.h"
#include "util/misc/pdb_structures.h"
namespace crashpad {
namespace test {
namespace {
class ReadToVector : public crashpad::MemorySnapshot::Delegate { … };
MinidumpContextARM64 GetArm64MinidumpContext() { … }
TEST(ProcessSnapshotMinidump, EmptyFile) { … }
TEST(ProcessSnapshotMinidump, InvalidSignatureAndVersion) { … }
TEST(ProcessSnapshotMinidump, Empty) { … }
RVA WriteString(FileWriterInterface* writer, const std::string& string) { … }
void WriteMinidumpSimpleStringDictionary(
MINIDUMP_LOCATION_DESCRIPTOR* location,
FileWriterInterface* writer,
const std::map<std::string, std::string>& dictionary) { … }
void WriteMinidumpStringList(MINIDUMP_LOCATION_DESCRIPTOR* location,
FileWriterInterface* writer,
const std::vector<std::string>& strings) { … }
RVA WriteByteArray(FileWriterInterface* writer,
const std::vector<uint8_t> data) { … }
void WriteMinidumpAnnotationList(
MINIDUMP_LOCATION_DESCRIPTOR* location,
FileWriterInterface* writer,
const std::vector<AnnotationSnapshot>& annotations) { … }
TEST(ProcessSnapshotMinidump, ClientID) { … }
TEST(ProcessSnapshotMinidump, ReadOldCrashpadInfo) { … }
TEST(ProcessSnapshotMinidump, AnnotationsSimpleMap) { … }
TEST(ProcessSnapshotMinidump, AnnotationObjects) { … }
TEST(ProcessSnapshotMinidump, Modules) { … }
TEST(ProcessSnapshotMinidump, ProcessID) { … }
TEST(ProcessSnapshotMinidump, SnapshotTime) { … }
TEST(ProcessSnapshotMinidump, MiscTimes) { … }
TEST(ProcessSnapshotMinidump, Threads) { … }
TEST(ProcessSnapshotMinidump, ThreadsWithNames) { … }
TEST(ProcessSnapshotMinidump, System) { … }
TEST(ProcessSnapshotMinidump, ThreadContextARM64) { … }
TEST(ProcessSnapshotMinidump, ThreadContextX86_64) { … }
TEST(ProcessSnapshotMinidump, MemoryMap) { … }
TEST(ProcessSnapshotMinidump, Stacks) { … }
TEST(ProcessSnapshotMinidump, CustomMinidumpStreams) { … }
TEST(ProcessSnapshotMinidump, Exception) { … }
TEST(ProcessSnapshotMinidump, NoExceptionInMinidump) { … }
}
}
}