#include "minidump/test/minidump_context_test_util.h"
#include <string.h>
#include <sys/types.h>
#include <iterator>
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
#include "gtest/gtest.h"
#include "snapshot/cpu_context.h"
#include "snapshot/test/test_cpu_context.h"
#include "test/hex_string.h"
namespace crashpad {
namespace test {
void InitializeMinidumpContextX86(MinidumpContextX86* context, uint32_t seed) { … }
void InitializeMinidumpContextAMD64(MinidumpContextAMD64* context,
uint32_t seed) { … }
void InitializeMinidumpContextARM(MinidumpContextARM* context, uint32_t seed) { … }
void InitializeMinidumpContextARM64(MinidumpContextARM64* context,
uint32_t seed) { … }
void InitializeMinidumpContextMIPS(MinidumpContextMIPS* context,
uint32_t seed) { … }
void InitializeMinidumpContextMIPS64(MinidumpContextMIPS64* context,
uint32_t seed) { … }
void InitializeMinidumpContextRISCV64(MinidumpContextRISCV64* context,
uint32_t seed) { … }
namespace {
template <typename FxsaveType>
void ExpectMinidumpContextFxsave(const FxsaveType* expected,
const FxsaveType* observed) { … }
}
void ExpectMinidumpContextX86(
uint32_t expect_seed, const MinidumpContextX86* observed, bool snapshot) { … }
void ExpectMinidumpContextAMD64(
uint32_t expect_seed, const MinidumpContextAMD64* observed, bool snapshot) { … }
void ExpectMinidumpContextARM(uint32_t expect_seed,
const MinidumpContextARM* observed,
bool snapshot) { … }
void ExpectMinidumpContextARM64(uint32_t expect_seed,
const MinidumpContextARM64* observed,
bool snapshot) { … }
void ExpectMinidumpContextMIPS(uint32_t expect_seed,
const MinidumpContextMIPS* observed,
bool snapshot) { … }
void ExpectMinidumpContextMIPS64(uint32_t expect_seed,
const MinidumpContextMIPS64* observed,
bool snapshot) { … }
void ExpectMinidumpContextRISCV64(uint32_t expect_seed,
const MinidumpContextRISCV64* observed,
bool snapshot) { … }
}
}