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

Unified Diff: third_party/crashpad/crashpad/snapshot/test/test_process_snapshot.h

Issue 1704203004: Update Crashpad to badfacccee01895719d2aeb3ac50f64854abf10c (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 10 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698