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

Unified Diff: snapshot/crashpad_info_client_options_test.cc

Issue 1326443007: win: Fix incorrect thread suspend count due to ScopedProcessSuspend (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: assert some threads captured 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 | « handler/win/crash_report_exception_handler.cc ('k') | snapshot/win/exception_snapshot_win_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/crashpad_info_client_options_test.cc
diff --git a/snapshot/crashpad_info_client_options_test.cc b/snapshot/crashpad_info_client_options_test.cc
index acdc3257c58de96f07ee359a4f68d258439fa81c..933b77e172831b5c9f05163dee1ac921c8377586 100644
--- a/snapshot/crashpad_info_client_options_test.cc
+++ b/snapshot/crashpad_info_client_options_test.cc
@@ -75,7 +75,8 @@ TEST(CrashpadInfoClientOptions, OneModule) {
ASSERT_TRUE(process_snapshot.Initialize(mach_task_self()));
#elif defined(OS_WIN)
ProcessSnapshotWin process_snapshot;
- ASSERT_TRUE(process_snapshot.Initialize(GetCurrentProcess()));
+ ASSERT_TRUE(process_snapshot.Initialize(GetCurrentProcess(),
+ ProcessSuspensionState::kRunning));
#else
#error Port.
#endif // OS_MACOSX
@@ -188,7 +189,8 @@ TEST(CrashpadInfoClientOptions, TwoModules) {
ASSERT_TRUE(process_snapshot.Initialize(mach_task_self()));
#elif defined(OS_WIN)
ProcessSnapshotWin process_snapshot;
- ASSERT_TRUE(process_snapshot.Initialize(GetCurrentProcess()));
+ ASSERT_TRUE(process_snapshot.Initialize(GetCurrentProcess(),
+ ProcessSuspensionState::kRunning));
#else
#error Port.
#endif // OS_MACOSX
« no previous file with comments | « handler/win/crash_report_exception_handler.cc ('k') | snapshot/win/exception_snapshot_win_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698