| Index: snapshot/test/test_process_snapshot.h
|
| diff --git a/snapshot/test/test_process_snapshot.h b/snapshot/test/test_process_snapshot.h
|
| index 3d742f1658598c964c7f071105b1d01f4f387435..affecb3dfc3eaea92c455f2b1d99814042d52525 100644
|
| --- a/snapshot/test/test_process_snapshot.h
|
| +++ b/snapshot/test/test_process_snapshot.h
|
| @@ -26,6 +26,7 @@
|
| #include "base/basictypes.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "snapshot/exception_snapshot.h"
|
| +#include "snapshot/memory_snapshot.h"
|
| #include "snapshot/module_snapshot.h"
|
| #include "snapshot/process_snapshot.h"
|
| #include "snapshot/system_snapshot.h"
|
| @@ -71,6 +72,12 @@ class TestProcessSnapshot final : public ProcessSnapshot {
|
| //! TestProcessSnapshot object takes ownership of \a system.
|
| void SetSystem(scoped_ptr<SystemSnapshot> system) { system_ = system.Pass(); }
|
|
|
| + //! \brief Sets the PEB snapshot to be returned by Peb().
|
| + //!
|
| + //! \param[in] peb The PEB snapshot that Peb() will return. The
|
| + //! TestProcessSnapshot object takes ownership of \a peb.
|
| + void SetPeb(scoped_ptr<MemorySnapshot> peb) { peb_ = peb.Pass(); }
|
| +
|
| //! \brief Adds a thread snapshot to be returned by Threads().
|
| //!
|
| //! \param[in] thread The thread snapshot that will be included in Threads().
|
| @@ -107,6 +114,7 @@ class TestProcessSnapshot final : public ProcessSnapshot {
|
| const std::map<std::string, std::string>& AnnotationsSimpleMap()
|
| const override;
|
| const SystemSnapshot* System() const override;
|
| + const MemorySnapshot* Peb() const override;
|
| std::vector<const ThreadSnapshot*> Threads() const override;
|
| std::vector<const ModuleSnapshot*> Modules() const override;
|
| const ExceptionSnapshot* Exception() const override;
|
| @@ -122,6 +130,7 @@ class TestProcessSnapshot final : public ProcessSnapshot {
|
| UUID client_id_;
|
| std::map<std::string, std::string> annotations_simple_map_;
|
| scoped_ptr<SystemSnapshot> system_;
|
| + scoped_ptr<MemorySnapshot> peb_;
|
| PointerVector<ThreadSnapshot> threads_;
|
| PointerVector<ModuleSnapshot> modules_;
|
| scoped_ptr<ExceptionSnapshot> exception_;
|
|
|