| 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/browser/download/download_browsertest.h" | 5 #include "chrome/browser/download/download_browsertest.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #include "chrome/grit/generated_resources.h" | 67 #include "chrome/grit/generated_resources.h" |
| 68 #include "chrome/test/base/in_process_browser_test.h" | 68 #include "chrome/test/base/in_process_browser_test.h" |
| 69 #include "chrome/test/base/ui_test_utils.h" | 69 #include "chrome/test/base/ui_test_utils.h" |
| 70 #include "components/history/content/browser/download_conversions.h" | 70 #include "components/history/content/browser/download_conversions.h" |
| 71 #include "components/history/core/browser/download_constants.h" | 71 #include "components/history/core/browser/download_constants.h" |
| 72 #include "components/history/core/browser/download_row.h" | 72 #include "components/history/core/browser/download_row.h" |
| 73 #include "components/history/core/browser/history_service.h" | 73 #include "components/history/core/browser/history_service.h" |
| 74 #include "components/infobars/core/confirm_infobar_delegate.h" | 74 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 75 #include "components/infobars/core/infobar.h" | 75 #include "components/infobars/core/infobar.h" |
| 76 #include "components/prefs/pref_service.h" | 76 #include "components/prefs/pref_service.h" |
| 77 #include "components/safe_browsing/csd.pb.h" | 77 #include "components/safe_browsing/common/csd.pb.h" |
| 78 #include "components/safe_browsing_db/safe_browsing_prefs.h" | 78 #include "components/safe_browsing_db/safe_browsing_prefs.h" |
| 79 #include "content/public/browser/download_danger_type.h" | 79 #include "content/public/browser/download_danger_type.h" |
| 80 #include "content/public/browser/download_interrupt_reasons.h" | 80 #include "content/public/browser/download_interrupt_reasons.h" |
| 81 #include "content/public/browser/download_item.h" | 81 #include "content/public/browser/download_item.h" |
| 82 #include "content/public/browser/download_manager.h" | 82 #include "content/public/browser/download_manager.h" |
| 83 #include "content/public/browser/download_save_info.h" | 83 #include "content/public/browser/download_save_info.h" |
| 84 #include "content/public/browser/download_url_parameters.h" | 84 #include "content/public/browser/download_url_parameters.h" |
| 85 #include "content/public/browser/notification_source.h" | 85 #include "content/public/browser/notification_source.h" |
| 86 #include "content/public/browser/render_frame_host.h" | 86 #include "content/public/browser/render_frame_host.h" |
| 87 #include "content/public/browser/render_view_host.h" | 87 #include "content/public/browser/render_view_host.h" |
| (...skipping 3710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3798 browser(), 1, | 3798 browser(), 1, |
| 3799 content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_DENY)); | 3799 content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_DENY)); |
| 3800 ui_test_utils::NavigateToURL(browser(), extension_url); | 3800 ui_test_utils::NavigateToURL(browser(), extension_url); |
| 3801 | 3801 |
| 3802 observer->WaitForFinished(); | 3802 observer->WaitForFinished(); |
| 3803 | 3803 |
| 3804 // Download shelf should close. | 3804 // Download shelf should close. |
| 3805 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible()); | 3805 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible()); |
| 3806 } | 3806 } |
| 3807 #endif // defined(OS_CHROMEOS) | 3807 #endif // defined(OS_CHROMEOS) |
| OLD | NEW |