| 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> |
| 11 #include <sstream> | 11 #include <sstream> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <utility> | 13 #include <utility> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/bind.h" | 16 #include "base/bind.h" |
| 17 #include "base/bind_helpers.h" | 17 #include "base/bind_helpers.h" |
| 18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
| 19 #include "base/feature_list.h" | 19 #include "base/feature_list.h" |
| 20 #include "base/files/file.h" | 20 #include "base/files/file.h" |
| 21 #include "base/files/file_path.h" | 21 #include "base/files/file_path.h" |
| 22 #include "base/files/file_util.h" | 22 #include "base/files/file_util.h" |
| 23 #include "base/files/scoped_temp_dir.h" | 23 #include "base/files/scoped_temp_dir.h" |
| 24 #include "base/macros.h" | 24 #include "base/macros.h" |
| 25 #include "base/memory/ref_counted.h" | 25 #include "base/memory/ref_counted.h" |
| 26 #include "base/message_loop/message_loop.h" |
| 26 #include "base/path_service.h" | 27 #include "base/path_service.h" |
| 27 #include "base/strings/string_number_conversions.h" | 28 #include "base/strings/string_number_conversions.h" |
| 28 #include "base/strings/string_split.h" | 29 #include "base/strings/string_split.h" |
| 29 #include "base/strings/string_util.h" | 30 #include "base/strings/string_util.h" |
| 30 #include "base/strings/stringprintf.h" | 31 #include "base/strings/stringprintf.h" |
| 31 #include "base/strings/utf_string_conversions.h" | 32 #include "base/strings/utf_string_conversions.h" |
| 32 #include "base/sys_info.h" | 33 #include "base/sys_info.h" |
| 33 #include "base/test/test_file_util.h" | 34 #include "base/test/test_file_util.h" |
| 34 #include "base/threading/thread_restrictions.h" | 35 #include "base/threading/thread_restrictions.h" |
| 35 #include "build/build_config.h" | 36 #include "build/build_config.h" |
| (...skipping 3831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3867 browser(), 1, | 3868 browser(), 1, |
| 3868 content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_DENY)); | 3869 content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_DENY)); |
| 3869 ui_test_utils::NavigateToURL(browser(), extension_url); | 3870 ui_test_utils::NavigateToURL(browser(), extension_url); |
| 3870 | 3871 |
| 3871 observer->WaitForFinished(); | 3872 observer->WaitForFinished(); |
| 3872 | 3873 |
| 3873 // Download shelf should close. | 3874 // Download shelf should close. |
| 3874 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible()); | 3875 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible()); |
| 3875 } | 3876 } |
| 3876 #endif // defined(OS_CHROMEOS) | 3877 #endif // defined(OS_CHROMEOS) |
| OLD | NEW |