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

Unified Diff: snapshot/test/test_process_snapshot.cc

Issue 1364053002: win: Save contents of PEB to minidump (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@save-teb
Patch Set: mac2 Created 5 years, 3 months 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
Index: snapshot/test/test_process_snapshot.cc
diff --git a/snapshot/test/test_process_snapshot.cc b/snapshot/test/test_process_snapshot.cc
index c87d7a63606c55b5ac76f9b7cbdb1132556e8455..847b6e52148d35110495f84b45a5ddba60e7c195 100644
--- a/snapshot/test/test_process_snapshot.cc
+++ b/snapshot/test/test_process_snapshot.cc
@@ -30,6 +30,7 @@ TestProcessSnapshot::TestProcessSnapshot()
client_id_(),
annotations_simple_map_(),
system_(),
+ peb_(),
threads_(),
modules_(),
exception_() {
@@ -97,5 +98,12 @@ const ExceptionSnapshot* TestProcessSnapshot::Exception() const {
return exception_.get();
}
+std::vector<const MemorySnapshot*> TestProcessSnapshot::ExtraMemory() const {
+ std::vector<const MemorySnapshot*> extra_memory;
+ if (peb_)
+ extra_memory.push_back(peb_.get());
+ return extra_memory;
+}
+
} // namespace test
} // namespace crashpad

Powered by Google App Engine
This is Rietveld 408576698