Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: chrome/browser/download/download_target_determiner_unittest.cc

Issue 283113002: s/precendence/precedence/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | chrome/browser/extensions/extension_web_ui_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | chrome/browser/extensions/extension_web_ui_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698