A SnapshotMinidumpMemoryWriter implementation used for testing. More...
#include "minidump/test/minidump_memory_writer_test_util.h"
Public Member Functions | |
TestMinidumpMemoryWriter (uint64_t base_address, size_t size, uint8_t value) | |
TestMinidumpMemoryWriter (const TestMinidumpMemoryWriter &)=delete | |
TestMinidumpMemoryWriter & | operator= (const TestMinidumpMemoryWriter &)=delete |
void | SetShouldFailRead (bool should_fail) |
![]() | |
SnapshotMinidumpMemoryWriter (const MemorySnapshot *memory_snapshot) | |
SnapshotMinidumpMemoryWriter (const SnapshotMinidumpMemoryWriter &)=delete | |
SnapshotMinidumpMemoryWriter & | operator= (const SnapshotMinidumpMemoryWriter &)=delete |
const MINIDUMP_MEMORY_DESCRIPTOR * | MinidumpMemoryDescriptor () const |
Returns a MINIDUMP_MEMORY_DESCRIPTOR referencing the data that this object writes. | |
void | RegisterMemoryDescriptor (MINIDUMP_MEMORY_DESCRIPTOR *memory_descriptor) |
Registers a memory descriptor as one that should point to the object on which this method is called. | |
void | SetSnapshot (const MemorySnapshot *memory_snapshot) |
Sets the underlying memory snapshot. Does not take ownership of memory_snapshot. | |
![]() | |
MinidumpWritable (const MinidumpWritable &)=delete | |
MinidumpWritable & | operator= (const MinidumpWritable &)=delete |
virtual bool | WriteEverything (FileWriterInterface *file_writer) |
Writes an object and all of its children to a minidump file. | |
void | RegisterRVA (RVA *rva) |
Registers a file offset pointer as one that should point to the object on which this method is called. | |
void | RegisterRVA (RVA64 *rva) |
void | RegisterLocationDescriptor (MINIDUMP_LOCATION_DESCRIPTOR *location_descriptor) |
Registers a location descriptor as one that should point to the object on which this method is called. | |
void | RegisterLocationDescriptor (MINIDUMP_LOCATION_DESCRIPTOR64 *location_descriptor64) |
Additional Inherited Members | |
![]() | |
enum | State |
Identifies the state of an object. More... | |
enum | Phase |
Identifies the phase during which an object will be written to a minidump file. More... | |
![]() | |
State | state () const |
The state of the object. | |
virtual std::vector< MinidumpWritable * > | Children () |
Returns the object’s children. | |
size_t | WillWriteAtOffset (Phase phase, FileOffset *offset, std::vector< MinidumpWritable * > *write_sequence) |
Prepares the object to be written at a known file offset, transitioning it from kStateFrozen to kStateWritable. | |
bool | WritePaddingAndObject (FileWriterInterface *file_writer) |
Writes the object, transitioning it from kStateWritable to kStateWritten. | |
![]() | |
static constexpr size_t | kInvalidSize = std::numeric_limits<size_t>::max() |
A size value used to signal failure by methods that return size_t . | |
A SnapshotMinidumpMemoryWriter implementation used for testing.
TestMinidumpMemoryWriter objects are created with a fixed base address and size, and will write the same byte (value) repeatedly, size times.