#include "minidump/test/minidump_memory_writer_test_util.h"
#include "gtest/gtest.h"
namespace crashpad {
namespace test {
TestMinidumpMemoryWriter::TestMinidumpMemoryWriter(uint64_t base_address,
size_t size,
uint8_t value)
: … { … }
TestMinidumpMemoryWriter::~TestMinidumpMemoryWriter() { … }
void TestMinidumpMemoryWriter::SetShouldFailRead(bool should_fail) { … }
void ExpectMinidumpMemoryDescriptor(
const MINIDUMP_MEMORY_DESCRIPTOR* expected,
const MINIDUMP_MEMORY_DESCRIPTOR* observed) { … }
void ExpectMinidumpMemoryDescriptorAndContents(
const MINIDUMP_MEMORY_DESCRIPTOR* expected,
const MINIDUMP_MEMORY_DESCRIPTOR* observed,
const std::string& file_contents,
uint8_t value,
bool at_eof) { … }
}
}