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 "chrome/test/base/in_process_browser_test.h" | 5 #include "chrome/test/base/in_process_browser_test.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/stack_trace.h" | 10 #include "base/debug/stack_trace.h" |
(...skipping 17 matching lines...) Expand all Loading... |
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/chrome_test_suite.h" | 31 #include "chrome/test/base/chrome_test_suite.h" |
32 #include "chrome/test/base/test_launcher_utils.h" | 32 #include "chrome/test/base/test_launcher_utils.h" |
33 #include "chrome/test/base/testing_browser_process.h" | 33 #include "chrome/test/base/testing_browser_process.h" |
34 #include "chrome/test/base/ui_test_utils.h" | 34 #include "chrome/test/base/ui_test_utils.h" |
35 #include "content/public/browser/notification_service.h" | 35 #include "content/public/browser/notification_service.h" |
36 #include "content/public/browser/notification_types.h" | 36 #include "content/public/browser/notification_types.h" |
37 #include "content/public/browser/render_process_host.h" | 37 #include "content/public/browser/render_process_host.h" |
| 38 #include "content/public/test/test_browser_thread.h" |
38 #include "content/renderer/mock_content_renderer_client.h" | 39 #include "content/renderer/mock_content_renderer_client.h" |
39 #include "content/test/test_browser_thread.h" | |
40 #include "content/test/test_launcher.h" | 40 #include "content/test/test_launcher.h" |
41 #include "net/base/mock_host_resolver.h" | 41 #include "net/base/mock_host_resolver.h" |
42 #include "net/test/test_server.h" | 42 #include "net/test/test_server.h" |
43 #include "ui/compositor/compositor_switches.h" | 43 #include "ui/compositor/compositor_switches.h" |
44 | 44 |
45 #if defined(OS_CHROMEOS) | 45 #if defined(OS_CHROMEOS) |
46 #include "chrome/browser/chromeos/audio/audio_handler.h" | 46 #include "chrome/browser/chromeos/audio/audio_handler.h" |
47 #elif defined(OS_MACOSX) | 47 #elif defined(OS_MACOSX) |
48 #include "base/mac/scoped_nsautorelease_pool.h" | 48 #include "base/mac/scoped_nsautorelease_pool.h" |
49 #endif | 49 #endif |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 // On the Mac, this eventually reaches | 396 // On the Mac, this eventually reaches |
397 // -[BrowserWindowController windowWillClose:], which will post a deferred | 397 // -[BrowserWindowController windowWillClose:], which will post a deferred |
398 // -autorelease on itself to ultimately destroy the Browser object. The line | 398 // -autorelease on itself to ultimately destroy the Browser object. The line |
399 // below is necessary to pump these pending messages to ensure all Browsers | 399 // below is necessary to pump these pending messages to ensure all Browsers |
400 // get deleted. | 400 // get deleted. |
401 ui_test_utils::RunAllPendingInMessageLoop(); | 401 ui_test_utils::RunAllPendingInMessageLoop(); |
402 delete autorelease_pool_; | 402 delete autorelease_pool_; |
403 autorelease_pool_ = NULL; | 403 autorelease_pool_ = NULL; |
404 #endif | 404 #endif |
405 } | 405 } |
OLD | NEW |