| 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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
| 6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 FILE_PATH_LITERAL("forced-foo.txt"), | 619 FILE_PATH_LITERAL("forced-foo.txt"), |
| 620 | 620 |
| 621 FILE_PATH_LITERAL("forced-foo.txt"), | 621 FILE_PATH_LITERAL("forced-foo.txt"), |
| 622 DownloadItem::TARGET_DISPOSITION_OVERWRITE, | 622 DownloadItem::TARGET_DISPOSITION_OVERWRITE, |
| 623 | 623 |
| 624 EXPECT_UNCONFIRMED | 624 EXPECT_UNCONFIRMED |
| 625 }, | 625 }, |
| 626 | 626 |
| 627 { | 627 { |
| 628 // 3: Automatic Dangerous URL + Dangerous file. Dangerous URL takes | 628 // 3: Automatic Dangerous URL + Dangerous file. Dangerous URL takes |
| 629 // precendence. | 629 // precedence. |
| 630 AUTOMATIC, | 630 AUTOMATIC, |
| 631 content::DOWNLOAD_DANGER_TYPE_DANGEROUS_URL, | 631 content::DOWNLOAD_DANGER_TYPE_DANGEROUS_URL, |
| 632 "http://phishing.example.com/foo.html", "", | 632 "http://phishing.example.com/foo.html", "", |
| 633 FILE_PATH_LITERAL(""), | 633 FILE_PATH_LITERAL(""), |
| 634 | 634 |
| 635 FILE_PATH_LITERAL("foo.html"), | 635 FILE_PATH_LITERAL("foo.html"), |
| 636 DownloadItem::TARGET_DISPOSITION_OVERWRITE, | 636 DownloadItem::TARGET_DISPOSITION_OVERWRITE, |
| 637 | 637 |
| 638 EXPECT_UNCONFIRMED | 638 EXPECT_UNCONFIRMED |
| 639 }, | 639 }, |
| (...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2179 EXPECT_CALL(mock_plugin_filter_, MockPluginAvailable(npapi_plugin.path())) | 2179 EXPECT_CALL(mock_plugin_filter_, MockPluginAvailable(npapi_plugin.path())) |
| 2180 .WillRepeatedly(Return(true)); | 2180 .WillRepeatedly(Return(true)); |
| 2181 | 2181 |
| 2182 target_info = RunDownloadTargetDeterminer( | 2182 target_info = RunDownloadTargetDeterminer( |
| 2183 GetPathInDownloadDir(kInitialPath), item.get()); | 2183 GetPathInDownloadDir(kInitialPath), item.get()); |
| 2184 EXPECT_FALSE(target_info->is_filetype_handled_safely); | 2184 EXPECT_FALSE(target_info->is_filetype_handled_safely); |
| 2185 } | 2185 } |
| 2186 #endif // defined(ENABLE_PLUGINS) | 2186 #endif // defined(ENABLE_PLUGINS) |
| 2187 | 2187 |
| 2188 } // namespace | 2188 } // namespace |
| OLD | NEW |