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

Unified Diff: snapshot/win/exception_snapshot_win_test.cc

Issue 1377963002: win: Add and use a custom CaptureContext() implementation (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feeback (2) Created 5 years, 3 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 | « client/simulate_crash_win.h ('k') | snapshot/win/process_reader_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/win/exception_snapshot_win_test.cc
diff --git a/snapshot/win/exception_snapshot_win_test.cc b/snapshot/win/exception_snapshot_win_test.cc
index 4108a575978f92dc10f2b325b64fb0a078aef71b..3fc8c6d16fd2a23d5a312bd74f2ef8fa8bfa32bf 100644
--- a/snapshot/win/exception_snapshot_win_test.cc
+++ b/snapshot/win/exception_snapshot_win_test.cc
@@ -192,8 +192,7 @@ class SimulateDelegate : public ExceptionHandlerServer::Delegate {
snapshot.Initialize(process, ProcessSuspensionState::kSuspended);
snapshot.InitializeException(exception_information_address);
EXPECT_TRUE(snapshot.Exception());
- EXPECT_EQ(0, snapshot.Exception()->Exception());
- EXPECT_EQ(0, snapshot.Exception()->ExceptionAddress());
+ EXPECT_EQ(0x517a7ed, snapshot.Exception()->Exception());
// Verify the dump was captured at the expected location with some slop
// space.
@@ -203,6 +202,9 @@ class SimulateDelegate : public ExceptionHandlerServer::Delegate {
EXPECT_LT(snapshot.Exception()->Context()->InstructionPointer(),
dump_near_ + kAllowedOffset);
+ EXPECT_EQ(snapshot.Exception()->Context()->InstructionPointer(),
+ snapshot.Exception()->ExceptionAddress());
+
SetEvent(completed_test_event_);
return 0;
« no previous file with comments | « client/simulate_crash_win.h ('k') | snapshot/win/process_reader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698