| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/test/base/in_process_browser_test.h" | 5 #include "chrome/test/base/in_process_browser_test.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/mac/scoped_nsautorelease_pool.h" | 10 #include "base/mac/scoped_nsautorelease_pool.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/browser/ui/browser.h" | 22 #include "chrome/browser/ui/browser.h" |
| 23 #include "chrome/browser/ui/browser_list.h" | 23 #include "chrome/browser/ui/browser_list.h" |
| 24 #include "chrome/browser/ui/browser_navigator.h" | 24 #include "chrome/browser/ui/browser_navigator.h" |
| 25 #include "chrome/browser/ui/browser_window.h" | 25 #include "chrome/browser/ui/browser_window.h" |
| 26 #include "chrome/common/chrome_constants.h" | 26 #include "chrome/common/chrome_constants.h" |
| 27 #include "chrome/common/chrome_paths.h" | 27 #include "chrome/common/chrome_paths.h" |
| 28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
| 29 #include "chrome/common/logging_chrome.h" | 29 #include "chrome/common/logging_chrome.h" |
| 30 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
| 31 #include "chrome/test/base/test_launcher_utils.h" | 31 #include "chrome/test/base/test_launcher_utils.h" |
| 32 #include "chrome/test/base/testing_browser_process.h" |
| 32 #include "chrome/test/base/ui_test_utils.h" | 33 #include "chrome/test/base/ui_test_utils.h" |
| 33 #include "chrome/test/testing_browser_process.h" | |
| 34 #include "content/browser/browser_thread.h" | 34 #include "content/browser/browser_thread.h" |
| 35 #include "content/browser/renderer_host/render_process_host.h" | 35 #include "content/browser/renderer_host/render_process_host.h" |
| 36 #include "content/browser/tab_contents/tab_contents.h" | 36 #include "content/browser/tab_contents/tab_contents.h" |
| 37 #include "content/common/content_notification_types.h" | 37 #include "content/common/content_notification_types.h" |
| 38 #include "content/common/main_function_params.h" | 38 #include "content/common/main_function_params.h" |
| 39 #include "content/renderer/mock_content_renderer_client.h" | 39 #include "content/renderer/mock_content_renderer_client.h" |
| 40 #include "net/base/mock_host_resolver.h" | 40 #include "net/base/mock_host_resolver.h" |
| 41 #include "net/test/test_server.h" | 41 #include "net/test/test_server.h" |
| 42 #include "sandbox/src/dep.h" | 42 #include "sandbox/src/dep.h" |
| 43 | 43 |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 return; | 359 return; |
| 360 | 360 |
| 361 // Invoke CloseAllBrowsersAndMayExit on a running message loop. | 361 // Invoke CloseAllBrowsersAndMayExit on a running message loop. |
| 362 // CloseAllBrowsersAndMayExit exits the message loop after everything has been | 362 // CloseAllBrowsersAndMayExit exits the message loop after everything has been |
| 363 // shut down properly. | 363 // shut down properly. |
| 364 MessageLoopForUI::current()->PostTask( | 364 MessageLoopForUI::current()->PostTask( |
| 365 FROM_HERE, | 365 FROM_HERE, |
| 366 NewRunnableFunction(&BrowserList::AttemptExit)); | 366 NewRunnableFunction(&BrowserList::AttemptExit)); |
| 367 ui_test_utils::RunMessageLoop(); | 367 ui_test_utils::RunMessageLoop(); |
| 368 } | 368 } |
| OLD | NEW |