Index: minidump/test/minidump_writable_test_util.cc |
diff --git a/minidump/test/minidump_writable_test_util.cc b/minidump/test/minidump_writable_test_util.cc |
index a964ad27013a9a3dcbfa33e2c0ebdc9c1cda1a36..4ebd7f08cce7a94abcc81e7251e16f743622d9c5 100644 |
--- a/minidump/test/minidump_writable_test_util.cc |
+++ b/minidump/test/minidump_writable_test_util.cc |
@@ -19,6 +19,7 @@ |
#include "base/basictypes.h" |
#include "base/strings/string16.h" |
#include "gtest/gtest.h" |
+#include "util/file/file_writer.h" |
namespace crashpad { |
namespace test { |
@@ -306,5 +307,21 @@ MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB70>( |
file_contents, location); |
} |
+TestUInt32MinidumpWritable::TestUInt32MinidumpWritable(uint32_t value) |
+ : MinidumpWritable(), |
+ value_(value) { |
+} |
+ |
+TestUInt32MinidumpWritable::~TestUInt32MinidumpWritable() { |
+} |
+ |
+size_t TestUInt32MinidumpWritable::SizeOfObject() { |
+ return sizeof(value_); |
+} |
+ |
+bool TestUInt32MinidumpWritable::WriteObject(FileWriterInterface* file_writer) { |
+ return file_writer->Write(&value_, sizeof(value_)); |
+} |
+ |
} // namespace test |
} // namespace crashpad |