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_) |