Index: content/common/process_watcher_unittest.cc |
diff --git a/content/common/process_watcher_unittest.cc b/content/common/process_watcher_unittest.cc |
index 260075bf653fcf5c42f38681b7ff36a975180316..f1890ad385674f1384aa7c8d543b6c6fa417dd3d 100644 |
--- a/content/common/process_watcher_unittest.cc |
+++ b/content/common/process_watcher_unittest.cc |
@@ -31,6 +31,7 @@ bool IsProcessDead(base::ProcessHandle child) { |
TEST_F(ProcessWatcherTest, DelayedTermination) { |
base::ProcessHandle child_process = |
SpawnChild("process_watcher_test_never_die", false); |
+ ASSERT_TRUE(child_process); |
ProcessWatcher::EnsureProcessTerminated(child_process); |
base::WaitForSingleProcess(child_process, 5000); |
@@ -49,6 +50,7 @@ MULTIPROCESS_TEST_MAIN(process_watcher_test_never_die) { |
TEST_F(ProcessWatcherTest, ImmediateTermination) { |
base::ProcessHandle child_process = |
SpawnChild("process_watcher_test_die_immediately", false); |
+ ASSERT_TRUE(child_process); |
// Give it time to die. |
sleep(2); |
ProcessWatcher::EnsureProcessTerminated(child_process); |