Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1045)

Unified Diff: minidump/test/minidump_writable_test_util.cc

Issue 704333002: Add MinidumpRVAListWriter and test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@minidump_location_descriptor_list
Patch Set: Rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « minidump/test/minidump_writable_test_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « minidump/test/minidump_writable_test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698