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

Unified Diff: snapshot/test/test_exception_snapshot.h

Issue 1533183002: win: Capture some memory pointed at by context (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: mac Created 4 years, 11 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/snapshot.gyp ('k') | snapshot/test/test_exception_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/test/test_exception_snapshot.h
diff --git a/snapshot/test/test_exception_snapshot.h b/snapshot/test/test_exception_snapshot.h
index a17f3dc1d32dacc92c9593a21665c3af529f6145..638c0c92e44275edf429ce2493ab6d650371c2d9 100644
--- a/snapshot/test/test_exception_snapshot.h
+++ b/snapshot/test/test_exception_snapshot.h
@@ -20,8 +20,10 @@
#include <vector>
#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
#include "snapshot/cpu_context.h"
#include "snapshot/exception_snapshot.h"
+#include "util/stdlib/pointer_container.h"
namespace crashpad {
namespace test {
@@ -57,6 +59,9 @@ class TestExceptionSnapshot final : public ExceptionSnapshot {
exception_address_ = exception_address;
}
void SetCodes(const std::vector<uint64_t>& codes) { codes_ = codes; }
+ void AddExtraMemory(scoped_ptr<MemorySnapshot> extra_memory) {
+ extra_memory_.push_back(extra_memory.release());
+ }
// ExceptionSnapshot:
@@ -66,6 +71,7 @@ class TestExceptionSnapshot final : public ExceptionSnapshot {
uint32_t ExceptionInfo() const override;
uint64_t ExceptionAddress() const override;
const std::vector<uint64_t>& Codes() const override;
+ std::vector<const MemorySnapshot*> ExtraMemory() const override;
private:
union {
@@ -78,6 +84,7 @@ class TestExceptionSnapshot final : public ExceptionSnapshot {
uint32_t exception_info_;
uint64_t exception_address_;
std::vector<uint64_t> codes_;
+ PointerVector<MemorySnapshot> extra_memory_;
DISALLOW_COPY_AND_ASSIGN(TestExceptionSnapshot);
};
« no previous file with comments | « snapshot/snapshot.gyp ('k') | snapshot/test/test_exception_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698