Index: third_party/crashpad/crashpad/snapshot/test/test_process_snapshot.h |
diff --git a/third_party/crashpad/crashpad/snapshot/test/test_process_snapshot.h b/third_party/crashpad/crashpad/snapshot/test/test_process_snapshot.h |
index f771944e73e3dd8682e42dd71f4a1fa1c49c0c60..f47b856da2b1342167a34d2c4b82ba9729cfb701 100644 |
--- a/third_party/crashpad/crashpad/snapshot/test/test_process_snapshot.h |
+++ b/third_party/crashpad/crashpad/snapshot/test/test_process_snapshot.h |
@@ -33,6 +33,7 @@ |
#include "snapshot/process_snapshot.h" |
#include "snapshot/system_snapshot.h" |
#include "snapshot/thread_snapshot.h" |
+#include "snapshot/unloaded_module_snapshot.h" |
#include "util/misc/uuid.h" |
#include "util/stdlib/pointer_container.h" |
@@ -92,6 +93,15 @@ class TestProcessSnapshot final : public ProcessSnapshot { |
modules_.push_back(module.release()); |
} |
+ //! \brief Adds an unloaded module snapshot to be returned by |
+ //! UnloadedModules(). |
+ //! |
+ //! \param[in] unloaded_module The unloaded module snapshot that will be |
+ //! included in UnloadedModules(). |
+ void AddModule(const UnloadedModuleSnapshot& unloaded_module) { |
+ unloaded_modules_.push_back(unloaded_module); |
+ } |
+ |
//! \brief Sets the exception snapshot to be returned by Exception(). |
//! |
//! \param[in] exception The exception snapshot that Exception() will return. |
@@ -139,6 +149,7 @@ class TestProcessSnapshot final : public ProcessSnapshot { |
const SystemSnapshot* System() const override; |
std::vector<const ThreadSnapshot*> Threads() const override; |
std::vector<const ModuleSnapshot*> Modules() const override; |
+ std::vector<UnloadedModuleSnapshot> UnloadedModules() const override; |
const ExceptionSnapshot* Exception() const override; |
std::vector<const MemoryMapRegionSnapshot*> MemoryMap() const override; |
std::vector<HandleSnapshot> Handles() const override; |
@@ -157,6 +168,7 @@ class TestProcessSnapshot final : public ProcessSnapshot { |
scoped_ptr<SystemSnapshot> system_; |
PointerVector<ThreadSnapshot> threads_; |
PointerVector<ModuleSnapshot> modules_; |
+ std::vector<UnloadedModuleSnapshot> unloaded_modules_; |
scoped_ptr<ExceptionSnapshot> exception_; |
PointerVector<MemoryMapRegionSnapshot> memory_map_; |
std::vector<HandleSnapshot> handles_; |