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 16 matching lines...) Expand all Loading... |
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/test_launcher_utils.h" | 31 #include "chrome/test/test_launcher_utils.h" |
32 #include "chrome/test/testing_browser_process.h" | 32 #include "chrome/test/testing_browser_process.h" |
33 #include "chrome/test/ui_test_utils.h" | 33 #include "chrome/test/ui_test_utils.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/main_function_params.h" | 38 #include "content/common/main_function_params.h" |
38 #include "content/common/notification_type.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 |
44 #if defined(OS_MACOSX) | 44 #if defined(OS_MACOSX) |
45 #include "base/mac/mac_util.h" | 45 #include "base/mac/mac_util.h" |
46 #include "base/system_monitor/system_monitor.h" | 46 #include "base/system_monitor/system_monitor.h" |
47 #endif | 47 #endif |
48 | 48 |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 return; | 353 return; |
354 | 354 |
355 // Invoke CloseAllBrowsersAndMayExit on a running message loop. | 355 // Invoke CloseAllBrowsersAndMayExit on a running message loop. |
356 // CloseAllBrowsersAndMayExit exits the message loop after everything has been | 356 // CloseAllBrowsersAndMayExit exits the message loop after everything has been |
357 // shut down properly. | 357 // shut down properly. |
358 MessageLoopForUI::current()->PostTask( | 358 MessageLoopForUI::current()->PostTask( |
359 FROM_HERE, | 359 FROM_HERE, |
360 NewRunnableFunction(&BrowserList::AttemptExit)); | 360 NewRunnableFunction(&BrowserList::AttemptExit)); |
361 ui_test_utils::RunMessageLoop(); | 361 ui_test_utils::RunMessageLoop(); |
362 } | 362 } |
OLD | NEW |