| 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/in_process_browser_test.h" | 5 #include "chrome/test/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 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
| 22 #include "chrome/browser/profiles/profile_manager.h" | 22 #include "chrome/browser/profiles/profile_manager.h" |
| 23 #include "chrome/browser/tabs/tab_strip_model.h" | 23 #include "chrome/browser/tabs/tab_strip_model.h" |
| 24 #include "chrome/browser/ui/browser.h" | 24 #include "chrome/browser/ui/browser.h" |
| 25 #include "chrome/browser/ui/browser_navigator.h" | 25 #include "chrome/browser/ui/browser_navigator.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/main_function_params.h" | 30 #include "chrome/common/main_function_params.h" |
| 31 #include "chrome/common/notification_type.h" | |
| 32 #include "chrome/common/url_constants.h" | 31 #include "chrome/common/url_constants.h" |
| 33 #include "chrome/test/test_launcher_utils.h" | 32 #include "chrome/test/test_launcher_utils.h" |
| 34 #include "chrome/test/testing_browser_process.h" | 33 #include "chrome/test/testing_browser_process.h" |
| 35 #include "chrome/test/ui_test_utils.h" | 34 #include "chrome/test/ui_test_utils.h" |
| 36 #include "content/browser/browser_thread.h" | 35 #include "content/browser/browser_thread.h" |
| 37 #include "content/browser/renderer_host/render_process_host.h" | 36 #include "content/browser/renderer_host/render_process_host.h" |
| 38 #include "content/browser/tab_contents/tab_contents.h" | 37 #include "content/browser/tab_contents/tab_contents.h" |
| 38 #include "content/common/notification_type.h" |
| 39 #include "net/base/mock_host_resolver.h" | 39 #include "net/base/mock_host_resolver.h" |
| 40 #include "net/test/test_server.h" | 40 #include "net/test/test_server.h" |
| 41 #include "sandbox/src/dep.h" | 41 #include "sandbox/src/dep.h" |
| 42 | 42 |
| 43 #if defined(OS_MACOSX) | 43 #if defined(OS_MACOSX) |
| 44 #include "base/mac/mac_util.h" | 44 #include "base/mac/mac_util.h" |
| 45 #endif | 45 #endif |
| 46 | 46 |
| 47 #if defined(OS_WIN) | 47 #if defined(OS_WIN) |
| 48 #include "chrome/browser/ui/views/frame/browser_frame_win.h" | 48 #include "chrome/browser/ui/views/frame/browser_frame_win.h" |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 return; | 336 return; |
| 337 | 337 |
| 338 // Invoke CloseAllBrowsersAndExit on a running message loop. | 338 // Invoke CloseAllBrowsersAndExit on a running message loop. |
| 339 // CloseAllBrowsersAndExit exits the message loop after everything has been | 339 // CloseAllBrowsersAndExit exits the message loop after everything has been |
| 340 // shut down properly. | 340 // shut down properly. |
| 341 MessageLoopForUI::current()->PostTask( | 341 MessageLoopForUI::current()->PostTask( |
| 342 FROM_HERE, | 342 FROM_HERE, |
| 343 NewRunnableFunction(&BrowserList::CloseAllBrowsersAndExit)); | 343 NewRunnableFunction(&BrowserList::CloseAllBrowsersAndExit)); |
| 344 ui_test_utils::RunMessageLoop(); | 344 ui_test_utils::RunMessageLoop(); |
| 345 } | 345 } |
| OLD | NEW |