| 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_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
| 8 #include "base/memory/scoped_temp_dir.h" | |
| 9 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/scoped_temp_dir.h" |
| 10 #include "base/test/test_file_util.h" | 10 #include "base/test/test_file_util.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 13 #include "chrome/browser/download/download_file_manager.h" |
| 13 #include "chrome/browser/download/download_item.h" | 14 #include "chrome/browser/download/download_item.h" |
| 14 #include "chrome/browser/download/download_file_manager.h" | |
| 15 #include "chrome/browser/download/download_manager.h" | 15 #include "chrome/browser/download/download_manager.h" |
| 16 #include "chrome/browser/download/download_prefs.h" | 16 #include "chrome/browser/download/download_prefs.h" |
| 17 #include "chrome/browser/download/download_shelf.h" | 17 #include "chrome/browser/download/download_shelf.h" |
| 18 #include "chrome/browser/history/download_create_info.h" | 18 #include "chrome/browser/history/download_create_info.h" |
| 19 #include "chrome/browser/history/history.h" | 19 #include "chrome/browser/history/history.h" |
| 20 #include "chrome/browser/net/url_request_mock_http_job.h" | 20 #include "chrome/browser/net/url_request_mock_http_job.h" |
| 21 #include "chrome/browser/net/url_request_slow_download_job.h" | 21 #include "chrome/browser/net/url_request_slow_download_job.h" |
| 22 #include "chrome/browser/prefs/pref_service.h" | 22 #include "chrome/browser/prefs/pref_service.h" |
| 23 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
| 24 #include "chrome/browser/ui/browser.h" | 24 #include "chrome/browser/ui/browser.h" |
| (...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1342 DownloadAndWait(browser(), download_url, EXPECT_NO_SELECT_DIALOG); | 1342 DownloadAndWait(browser(), download_url, EXPECT_NO_SELECT_DIALOG); |
| 1343 | 1343 |
| 1344 ui_test_utils::WindowedNotificationObserver signal( | 1344 ui_test_utils::WindowedNotificationObserver signal( |
| 1345 NotificationType::BROWSER_CLOSED, | 1345 NotificationType::BROWSER_CLOSED, |
| 1346 Source<Browser>(browser())); | 1346 Source<Browser>(browser())); |
| 1347 browser()->CloseWindow(); | 1347 browser()->CloseWindow(); |
| 1348 signal.Wait(); | 1348 signal.Wait(); |
| 1349 } | 1349 } |
| 1350 | 1350 |
| 1351 } // namespace | 1351 } // namespace |
| OLD | NEW |