| 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 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 #include "chrome/grit/generated_resources.h" | 74 #include "chrome/grit/generated_resources.h" |
| 75 #include "chrome/test/base/in_process_browser_test.h" | 75 #include "chrome/test/base/in_process_browser_test.h" |
| 76 #include "chrome/test/base/ui_test_utils.h" | 76 #include "chrome/test/base/ui_test_utils.h" |
| 77 #include "components/history/content/browser/download_conversions.h" | 77 #include "components/history/content/browser/download_conversions.h" |
| 78 #include "components/history/core/browser/download_constants.h" | 78 #include "components/history/core/browser/download_constants.h" |
| 79 #include "components/history/core/browser/download_row.h" | 79 #include "components/history/core/browser/download_row.h" |
| 80 #include "components/history/core/browser/history_service.h" | 80 #include "components/history/core/browser/history_service.h" |
| 81 #include "components/infobars/core/confirm_infobar_delegate.h" | 81 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 82 #include "components/infobars/core/infobar.h" | 82 #include "components/infobars/core/infobar.h" |
| 83 #include "components/prefs/pref_service.h" | 83 #include "components/prefs/pref_service.h" |
| 84 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
| 84 #include "components/safe_browsing/csd.pb.h" | 85 #include "components/safe_browsing/csd.pb.h" |
| 85 #include "components/safe_browsing_db/safe_browsing_prefs.h" | |
| 86 #include "content/public/browser/download_danger_type.h" | 86 #include "content/public/browser/download_danger_type.h" |
| 87 #include "content/public/browser/download_interrupt_reasons.h" | 87 #include "content/public/browser/download_interrupt_reasons.h" |
| 88 #include "content/public/browser/download_item.h" | 88 #include "content/public/browser/download_item.h" |
| 89 #include "content/public/browser/download_manager.h" | 89 #include "content/public/browser/download_manager.h" |
| 90 #include "content/public/browser/download_save_info.h" | 90 #include "content/public/browser/download_save_info.h" |
| 91 #include "content/public/browser/download_url_parameters.h" | 91 #include "content/public/browser/download_url_parameters.h" |
| 92 #include "content/public/browser/notification_source.h" | 92 #include "content/public/browser/notification_source.h" |
| 93 #include "content/public/browser/render_frame_host.h" | 93 #include "content/public/browser/render_frame_host.h" |
| 94 #include "content/public/browser/render_view_host.h" | 94 #include "content/public/browser/render_view_host.h" |
| 95 #include "content/public/browser/render_widget_host.h" | 95 #include "content/public/browser/render_widget_host.h" |
| (...skipping 3772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3868 browser(), 1, | 3868 browser(), 1, |
| 3869 content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_DENY)); | 3869 content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_DENY)); |
| 3870 ui_test_utils::NavigateToURL(browser(), extension_url); | 3870 ui_test_utils::NavigateToURL(browser(), extension_url); |
| 3871 | 3871 |
| 3872 observer->WaitForFinished(); | 3872 observer->WaitForFinished(); |
| 3873 | 3873 |
| 3874 // Download shelf should close. | 3874 // Download shelf should close. |
| 3875 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible()); | 3875 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible()); |
| 3876 } | 3876 } |
| 3877 #endif // defined(OS_CHROMEOS) | 3877 #endif // defined(OS_CHROMEOS) |
| OLD | NEW |