#include "minidump/test/minidump_string_writer_test_util.h"
#include <sys/types.h>
#include "gtest/gtest.h"
#include "minidump/minidump_extensions.h"
#include "minidump/test/minidump_writable_test_util.h"
namespace crashpad {
namespace test {
namespace {
template <
typename T,
typename RVAType = RVA,
typename MinidumpLocationDescriptorType = MINIDUMP_LOCATION_DESCRIPTOR>
const T* TMinidumpStringAtRVA(const std::string& file_contents, RVAType rva) { … }
template <typename StringType,
typename MinidumpStringType,
typename RVAType,
typename MinidumpLocationDescriptorType>
StringType TMinidumpStringAtRVAAsString(const std::string& file_contents,
RVAType rva) { … }
}
const MINIDUMP_STRING* MinidumpStringAtRVA(const std::string& file_contents,
RVA rva) { … }
const MINIDUMP_STRING* MinidumpStringAtRVA(const std::string& file_contents,
RVA64 rva) { … }
const MinidumpUTF8String* MinidumpUTF8StringAtRVA(
const std::string& file_contents,
RVA rva) { … }
const MinidumpUTF8String* MinidumpUTF8StringAtRVA(
const std::string& file_contents,
RVA64 rva) { … }
std::u16string MinidumpStringAtRVAAsString(const std::string& file_contents,
RVA rva) { … }
std::u16string MinidumpStringAtRVAAsString(const std::string& file_contents,
RVA64 rva) { … }
std::string MinidumpUTF8StringAtRVAAsString(const std::string& file_contents,
RVA rva) { … }
std::string MinidumpUTF8StringAtRVAAsString(const std::string& file_contents,
RVA64 rva) { … }
}
}