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

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

Issue 1576813002: Update Crashpad to 417097b91fe872404db257532d5126cfd7bfb438 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: third_party/crashpad/crashpad/snapshot/test/test_exception_snapshot.h
diff --git a/third_party/crashpad/crashpad/snapshot/test/test_exception_snapshot.h b/third_party/crashpad/crashpad/snapshot/test/test_exception_snapshot.h
index a17f3dc1d32dacc92c9593a21665c3af529f6145..638c0c92e44275edf429ce2493ab6d650371c2d9 100644
--- a/third_party/crashpad/crashpad/snapshot/test/test_exception_snapshot.h
+++ b/third_party/crashpad/crashpad/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);
};

Powered by Google App Engine
This is Rietveld 408576698