An internal::MinidumpWritable that carries a uint32_t
for testing.
More...
#include "minidump/test/minidump_writable_test_util.h"
|
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...
|
|
static constexpr size_t | kInvalidSize = std::numeric_limits<size_t>::max() |
| A size value used to signal failure by methods that return size_t .
|
|
An internal::MinidumpWritable that carries a uint32_t
for testing.
◆ SizeOfObject()
size_t crashpad::test::TestUInt32MinidumpWritable::SizeOfObject |
( |
| ) |
|
|
overrideprotectedvirtual |
Returns the amount of space that this object will consume when written to a minidump file, in bytes, not including any leading or trailing padding necessary to maintain proper alignment.
- Note
- Valid in kStateFrozen or any subsequent state.
Implements crashpad::internal::MinidumpWritable.
◆ WriteObject()
bool crashpad::test::TestUInt32MinidumpWritable::WriteObject |
( |
FileWriterInterface * |
file_writer | ) |
|
|
overrideprotectedvirtual |
Writes the object’s content.
- Parameters
-
[in] | file_writer | The file writer to receive the object’s content. |
- Returns
true
on success. false
on error, indicating that the content could not be written to the minidump file.
- Note
- Valid in kStateWritable. The object will transition to kStateWritten after this method returns.
Implements crashpad::internal::MinidumpWritable.
The documentation for this class was generated from the following files:
- minidump/test/minidump_writable_test_util.h
- minidump/test/minidump_writable_test_util.cc