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

Unified Diff: snapshot/test/test_process_snapshot.cc

Issue 1377133006: Mostly-boilerplate to add MemoryMapSnapshot (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@memory-info-to-misc
Patch Set: fixes Created 5 years, 2 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
« no previous file with comments | « snapshot/test/test_process_snapshot.h ('k') | snapshot/win/memory_map_region_snapshot_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/test/test_process_snapshot.cc
diff --git a/snapshot/test/test_process_snapshot.cc b/snapshot/test/test_process_snapshot.cc
index 1d21212dba31de031ef263d14c0f54f6ef2000a6..d388c6016a100a80279cde820fb53621b7f49752 100644
--- a/snapshot/test/test_process_snapshot.cc
+++ b/snapshot/test/test_process_snapshot.cc
@@ -33,6 +33,7 @@ TestProcessSnapshot::TestProcessSnapshot()
threads_(),
modules_(),
exception_(),
+ memory_map_(),
extra_memory_() {
}
@@ -98,6 +99,14 @@ const ExceptionSnapshot* TestProcessSnapshot::Exception() const {
return exception_.get();
}
+std::vector<const MemoryMapRegionSnapshot*> TestProcessSnapshot::MemoryMap()
+ const {
+ std::vector<const MemoryMapRegionSnapshot*> memory_map;
+ for (const auto& item : memory_map_)
+ memory_map.push_back(item);
+ return memory_map;
+}
+
std::vector<const MemorySnapshot*> TestProcessSnapshot::ExtraMemory() const {
std::vector<const MemorySnapshot*> extra_memory;
for (const auto& em : extra_memory_)
« no previous file with comments | « snapshot/test/test_process_snapshot.h ('k') | snapshot/win/memory_map_region_snapshot_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698