#include "minidump/minidump_user_stream_writer.h"
#include <string>
#include <utility>
#include "gtest/gtest.h"
#include "minidump/minidump_file_writer.h"
#include "minidump/test/minidump_file_writer_test_util.h"
#include "minidump/test/minidump_user_extension_stream_util.h"
#include "minidump/test/minidump_writable_test_util.h"
#include "snapshot/test/test_memory_snapshot.h"
#include "util/file/string_file.h"
namespace crashpad {
namespace test {
namespace {
void GetUserStream(const std::string& file_contents,
MINIDUMP_LOCATION_DESCRIPTOR* user_stream_location,
uint32_t stream_type,
size_t stream_size) { … }
constexpr MinidumpStreamType kTestStreamId = …;
TEST(MinidumpUserStreamWriter, InitializeFromSnapshotNoData) { … }
TEST(MinidumpUserStreamWriter, InitializeFromUserExtensionStreamNoData) { … }
TEST(MinidumpUserStreamWriter, InitializeFromSnapshotOneStream) { … }
TEST(MinidumpUserStreamWriter, InitializeFromBufferOneStream) { … }
}
}
}