| 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/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "chrome/test/base/test_launcher_utils.h" | 38 #include "chrome/test/base/test_launcher_utils.h" |
| 39 #include "chrome/test/base/testing_browser_process.h" | 39 #include "chrome/test/base/testing_browser_process.h" |
| 40 #include "chrome/test/base/ui_test_utils.h" | 40 #include "chrome/test/base/ui_test_utils.h" |
| 41 #include "content/public/browser/notification_service.h" | 41 #include "content/public/browser/notification_service.h" |
| 42 #include "content/public/browser/notification_types.h" | 42 #include "content/public/browser/notification_types.h" |
| 43 #include "content/public/test/browser_test_utils.h" | 43 #include "content/public/test/browser_test_utils.h" |
| 44 #include "content/public/test/test_browser_thread.h" | 44 #include "content/public/test/test_browser_thread.h" |
| 45 #include "content/public/test/test_launcher.h" | 45 #include "content/public/test/test_launcher.h" |
| 46 #include "content/public/test/test_navigation_observer.h" | 46 #include "content/public/test/test_navigation_observer.h" |
| 47 #include "net/dns/mock_host_resolver.h" | 47 #include "net/dns/mock_host_resolver.h" |
| 48 #include "net/test/spawned_test_server.h" | 48 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 49 #include "ui/compositor/compositor_switches.h" | 49 #include "ui/compositor/compositor_switches.h" |
| 50 | 50 |
| 51 #if defined(OS_CHROMEOS) | 51 #if defined(OS_CHROMEOS) |
| 52 #include "chrome/browser/chromeos/audio/audio_handler.h" | 52 #include "chrome/browser/chromeos/audio/audio_handler.h" |
| 53 #elif defined(OS_MACOSX) | 53 #elif defined(OS_MACOSX) |
| 54 #include "base/mac/scoped_nsautorelease_pool.h" | 54 #include "base/mac/scoped_nsautorelease_pool.h" |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 57 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 58 #include "chrome/browser/captive_portal/captive_portal_service.h" | 58 #include "chrome/browser/captive_portal/captive_portal_service.h" |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 // On the Mac, this eventually reaches | 395 // On the Mac, this eventually reaches |
| 396 // -[BrowserWindowController windowWillClose:], which will post a deferred | 396 // -[BrowserWindowController windowWillClose:], which will post a deferred |
| 397 // -autorelease on itself to ultimately destroy the Browser object. The line | 397 // -autorelease on itself to ultimately destroy the Browser object. The line |
| 398 // below is necessary to pump these pending messages to ensure all Browsers | 398 // below is necessary to pump these pending messages to ensure all Browsers |
| 399 // get deleted. | 399 // get deleted. |
| 400 content::RunAllPendingInMessageLoop(); | 400 content::RunAllPendingInMessageLoop(); |
| 401 delete autorelease_pool_; | 401 delete autorelease_pool_; |
| 402 autorelease_pool_ = NULL; | 402 autorelease_pool_ = NULL; |
| 403 #endif | 403 #endif |
| 404 } | 404 } |
| OLD | NEW |