| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/process_util.h" | |
| 7 #include "chrome/browser/chrome_notification_types.h" | 6 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/devtools/devtools_window.h" | 7 #include "chrome/browser/devtools/devtools_window.h" |
| 9 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/browser_commands.h" | 9 #include "chrome/browser/ui/browser_commands.h" |
| 11 #include "chrome/browser/ui/singleton_tabs.h" | 10 #include "chrome/browser/ui/singleton_tabs.h" |
| 12 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 13 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
| 14 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
| 15 #include "chrome/test/base/in_process_browser_test.h" | 14 #include "chrome/test/base/in_process_browser_test.h" |
| 16 #include "chrome/test/base/ui_test_utils.h" | 15 #include "chrome/test/base/ui_test_utils.h" |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 chrome::NOTIFICATION_BROWSER_CLOSED, | 410 chrome::NOTIFICATION_BROWSER_CLOSED, |
| 412 content::NotificationService::AllSources()); | 411 content::NotificationService::AllSources()); |
| 413 | 412 |
| 414 // Kill the renderer process, simulating a crash. This should the ProcessDied | 413 // Kill the renderer process, simulating a crash. This should the ProcessDied |
| 415 // method to be called. Alternatively, RenderProcessHost::OnChannelError can | 414 // method to be called. Alternatively, RenderProcessHost::OnChannelError can |
| 416 // be called to directly force a call to ProcessDied. | 415 // be called to directly force a call to ProcessDied. |
| 417 base::KillProcess(wc1->GetRenderProcessHost()->GetHandle(), -1, true); | 416 base::KillProcess(wc1->GetRenderProcessHost()->GetHandle(), -1, true); |
| 418 | 417 |
| 419 observer.Wait(); | 418 observer.Wait(); |
| 420 } | 419 } |
| OLD | NEW |