| 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 "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/ref_counted.h" | 7 #include "base/ref_counted.h" |
| 8 #include "chrome/browser/download/download_manager.h" | 8 #include "chrome/browser/download/download_manager.h" |
| 9 #include "chrome/browser/extensions/extension_error_reporter.h" | 9 #include "chrome/browser/extensions/extension_error_reporter.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
| 13 #include "chrome/common/notification_details.h" | |
| 14 #include "chrome/common/notification_observer.h" | |
| 15 #include "chrome/common/notification_registrar.h" | |
| 16 #include "chrome/common/notification_type.h" | |
| 17 #include "chrome/test/in_process_browser_test.h" | 13 #include "chrome/test/in_process_browser_test.h" |
| 18 #include "chrome/test/ui_test_utils.h" | 14 #include "chrome/test/ui_test_utils.h" |
| 15 #include "content/browser/site_instance.h" |
| 19 #include "content/browser/tab_contents/tab_contents.h" | 16 #include "content/browser/tab_contents/tab_contents.h" |
| 20 #include "content/browser/site_instance.h" | 17 #include "content/common/notification_details.h" |
| 18 #include "content/common/notification_observer.h" |
| 19 #include "content/common/notification_registrar.h" |
| 20 #include "content/common/notification_type.h" |
| 21 #include "net/base/net_util.h" | 21 #include "net/base/net_util.h" |
| 22 #include "net/test/test_server.h" | 22 #include "net/test/test_server.h" |
| 23 | 23 |
| 24 class RenderViewHostManagerTest : public InProcessBrowserTest { | 24 class RenderViewHostManagerTest : public InProcessBrowserTest { |
| 25 public: | 25 public: |
| 26 RenderViewHostManagerTest() { | 26 RenderViewHostManagerTest() { |
| 27 EnableDOMAutomation(); | 27 EnableDOMAutomation(); |
| 28 } | 28 } |
| 29 | 29 |
| 30 static bool GetFilePathWithHostAndPortReplacement( | 30 static bool GetFilePathWithHostAndPortReplacement( |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 &result)); | 268 &result)); |
| 269 EXPECT_TRUE(result); | 269 EXPECT_TRUE(result); |
| 270 ui_test_utils::NavigateToURL(browser(), zip_url); | 270 ui_test_utils::NavigateToURL(browser(), zip_url); |
| 271 | 271 |
| 272 ui_test_utils::WaitForDownloadCount( | 272 ui_test_utils::WaitForDownloadCount( |
| 273 browser()->profile()->GetDownloadManager(), 1); | 273 browser()->profile()->GetDownloadManager(), 1); |
| 274 | 274 |
| 275 browser()->CloseWindow(); | 275 browser()->CloseWindow(); |
| 276 BrowserClosedObserver wait_for_close(browser()); | 276 BrowserClosedObserver wait_for_close(browser()); |
| 277 } | 277 } |
| OLD | NEW |