| 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/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "chrome/common/chrome_constants.h" | 32 #include "chrome/common/chrome_constants.h" |
| 33 #include "chrome/common/chrome_paths.h" | 33 #include "chrome/common/chrome_paths.h" |
| 34 #include "chrome/common/chrome_switches.h" | 34 #include "chrome/common/chrome_switches.h" |
| 35 #include "chrome/common/logging_chrome.h" | 35 #include "chrome/common/logging_chrome.h" |
| 36 #include "chrome/common/url_constants.h" | 36 #include "chrome/common/url_constants.h" |
| 37 #include "chrome/renderer/chrome_content_renderer_client.h" | 37 #include "chrome/renderer/chrome_content_renderer_client.h" |
| 38 #include "chrome/test/base/chrome_test_suite.h" | 38 #include "chrome/test/base/chrome_test_suite.h" |
| 39 #include "chrome/test/base/test_launcher_utils.h" | 39 #include "chrome/test/base/test_launcher_utils.h" |
| 40 #include "chrome/test/base/test_switches.h" | 40 #include "chrome/test/base/test_switches.h" |
| 41 #include "chrome/test/base/testing_browser_process.h" | 41 #include "chrome/test/base/testing_browser_process.h" |
| 42 #include "chrome/test/base/ui_test_utils.h" | |
| 43 #include "components/google/core/browser/google_util.h" | 42 #include "components/google/core/browser/google_util.h" |
| 44 #include "components/os_crypt/os_crypt.h" | 43 #include "components/os_crypt/os_crypt.h" |
| 45 #include "content/public/browser/notification_service.h" | 44 #include "content/public/browser/notification_service.h" |
| 46 #include "content/public/browser/notification_types.h" | 45 #include "content/public/browser/notification_types.h" |
| 47 #include "content/public/test/browser_test_utils.h" | 46 #include "content/public/test/browser_test_utils.h" |
| 48 #include "content/public/test/test_launcher.h" | 47 #include "content/public/test/test_launcher.h" |
| 49 #include "content/public/test/test_navigation_observer.h" | 48 #include "content/public/test/test_navigation_observer.h" |
| 50 #include "net/test/embedded_test_server/embedded_test_server.h" | 49 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 51 #include "net/test/spawned_test_server/spawned_test_server.h" | 50 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 52 | 51 |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 // On the Mac, this eventually reaches | 478 // On the Mac, this eventually reaches |
| 480 // -[BrowserWindowController windowWillClose:], which will post a deferred | 479 // -[BrowserWindowController windowWillClose:], which will post a deferred |
| 481 // -autorelease on itself to ultimately destroy the Browser object. The line | 480 // -autorelease on itself to ultimately destroy the Browser object. The line |
| 482 // below is necessary to pump these pending messages to ensure all Browsers | 481 // below is necessary to pump these pending messages to ensure all Browsers |
| 483 // get deleted. | 482 // get deleted. |
| 484 content::RunAllPendingInMessageLoop(); | 483 content::RunAllPendingInMessageLoop(); |
| 485 delete autorelease_pool_; | 484 delete autorelease_pool_; |
| 486 autorelease_pool_ = NULL; | 485 autorelease_pool_ = NULL; |
| 487 #endif | 486 #endif |
| 488 } | 487 } |
| OLD | NEW |