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

Unified Diff: components/crash/content/app/fallback_crash_handler_launcher_win_unittest.cc

Issue 2733323002: Changing multiprocess test SpawnChild to return a struct. (Closed)
Patch Set: Synced Created 3 years, 9 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: components/crash/content/app/fallback_crash_handler_launcher_win_unittest.cc
diff --git a/components/crash/content/app/fallback_crash_handler_launcher_win_unittest.cc b/components/crash/content/app/fallback_crash_handler_launcher_win_unittest.cc
index c19ae79d17dca9ad4631a3b1fc5a6bca1a2350a8..07340432cece71376b7cc7b8a779de17f8191483 100644
--- a/components/crash/content/app/fallback_crash_handler_launcher_win_unittest.cc
+++ b/components/crash/content/app/fallback_crash_handler_launcher_win_unittest.cc
@@ -143,9 +143,10 @@ TEST_F(FallbackCrashHandlerLauncherTest, LaunchAndWaitForHandler) {
// Because this process is heavily multithreaded it's going to be flaky
// and generally fraught with peril to try and grab a minidump of it.
// Instead, fire off a sacrificial process to do the testing.
- base::Process test_process = SpawnChild("TestCrashHandlerLauncherMain");
+ base::SpawnChildResult spawn_child =
+ SpawnChild("TestCrashHandlerLauncherMain");
int exit_code = 0;
- ASSERT_TRUE(test_process.WaitForExit(&exit_code));
+ ASSERT_TRUE(spawn_child.process.WaitForExit(&exit_code));
ASSERT_EQ(0, exit_code);
}

Powered by Google App Engine
This is Rietveld 408576698