OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser/browser.h" | 5 #include "chrome/browser/browser.h" |
6 #include "chrome/browser/tab_contents/tab_contents.h" | 6 #include "chrome/browser/tab_contents/tab_contents.h" |
7 #include "chrome/browser/download/download_manager.h" | 7 #include "chrome/browser/download/download_manager.h" |
8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profile.h" |
9 #include "chrome/common/chrome_paths.h" | 9 #include "chrome/common/chrome_paths.h" |
10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 &result)); | 103 &result)); |
104 EXPECT_TRUE(result); | 104 EXPECT_TRUE(result); |
105 ui_test_utils::NavigateToURL(browser(), zip_url); | 105 ui_test_utils::NavigateToURL(browser(), zip_url); |
106 | 106 |
107 ui_test_utils::WaitForDownloadCount( | 107 ui_test_utils::WaitForDownloadCount( |
108 browser()->profile()->GetDownloadManager(), 1); | 108 browser()->profile()->GetDownloadManager(), 1); |
109 | 109 |
110 browser()->CloseWindow(); | 110 browser()->CloseWindow(); |
111 BrowserClosedObserver wait_for_close(browser()); | 111 BrowserClosedObserver wait_for_close(browser()); |
112 } | 112 } |
OLD | NEW |