Chromium Code Reviews| Index: chrome/browser/process_singleton_win_unittest.cc |
| diff --git a/chrome/browser/process_singleton_win_unittest.cc b/chrome/browser/process_singleton_win_unittest.cc |
| index 7bd6f79fcc3d075cf46c12054534fe511d81453e..16b4c21dc5f34ad0ed41094d21bb4c8c1749d582 100644 |
| --- a/chrome/browser/process_singleton_win_unittest.cc |
| +++ b/chrome/browser/process_singleton_win_unittest.cc |
| @@ -264,13 +264,16 @@ TEST_F(ProcessSingletonTest, KillsHungBrowserWithNoWindows) { |
| // user interaction. |
| ProcessSingleton::NotifyResult notify_result = |
| test_singleton()->NotifyOtherProcessOrCreate(); |
| - ASSERT_EQ(ProcessSingleton::PROFILE_IN_USE, notify_result); |
| + |
| + // The hung process was killed and the nitification is equivalent to |
|
grt (UTC plus 2)
2016/08/26 09:26:43
notification
gcomanici
2016/08/26 17:27:00
Done.
|
| + // a non existent process. |
| + ASSERT_EQ(ProcessSingleton::PROCESS_NONE, notify_result); |
| // The should-kill callback should not have been called, as the "browser" does |
| // not have visible window. |
| EXPECT_FALSE(should_kill_called()); |
| - // Verify that the hung browser has beem terminated with the |
| + // Verify that the hung browser has been terminated with the |
| // RESULT_CODE_HUNG exit code. |
| int exit_code = 0; |
| EXPECT_TRUE( |
| @@ -304,13 +307,16 @@ TEST_F(ProcessSingletonTest, KillWithUserPermission) { |
| // before killing the hung process. |
| ProcessSingleton::NotifyResult notify_result = |
| test_singleton()->NotifyOtherProcessOrCreate(); |
| - ASSERT_EQ(ProcessSingleton::PROFILE_IN_USE, notify_result); |
| + |
| + // The hung process was killed and the nitification is equivalent to |
| + // a non existent process. |
| + ASSERT_EQ(ProcessSingleton::PROCESS_NONE, notify_result); |
| // The should-kill callback should have been called, as the "browser" has a |
| // visible window. |
| EXPECT_TRUE(should_kill_called()); |
| - // Verify that the hung browser has beem terminated with the |
| + // Verify that the hung browser has been terminated with the |
| // RESULT_CODE_HUNG exit code. |
| int exit_code = 0; |
| EXPECT_TRUE( |