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

Unified Diff: chrome/test/ppapi/ppapi_filechooser_browsertest.cc

Issue 1613483003: [SafeBrowsing] Alternate extensions should also be subject to block list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment in histograms.xml Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/ppapi/ppapi_filechooser_browsertest.cc
diff --git a/chrome/test/ppapi/ppapi_filechooser_browsertest.cc b/chrome/test/ppapi/ppapi_filechooser_browsertest.cc
index 79c1f13ba470e173d7ceac727d8c4479f997a9cc..181d1096c9e9ccdf52c0ef44222dc7177cd087d0 100644
--- a/chrome/test/ppapi/ppapi_filechooser_browsertest.cc
+++ b/chrome/test/ppapi/ppapi_filechooser_browsertest.cc
@@ -309,6 +309,16 @@ IN_PROC_BROWSER_TEST_F(PPAPIFileChooserTest,
RunTestViaHTTP("FileChooser_SaveAsDangerousExecutableDisallowed");
}
+IN_PROC_BROWSER_TEST_F(PPAPIFileChooserTest,
+ FileChooser_SaveAs_DangerousExtensionList_Disallowed) {
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kDisallowUncheckedDangerousDownloads);
+ TestSelectFileDialogFactory test_dialog_factory(
+ TestSelectFileDialogFactory::NOT_REACHED,
+ TestSelectFileDialogFactory::SelectedFileInfoList());
+ RunTestViaHTTP("FileChooser_SaveAsDangerousExtensionListDisallowed");
+}
+
// The kDisallowUncheckedDangerousDownloads switch (whose behavior is verified
// by the FileChooser_SaveAs_DangerousExecutable_Disallowed test above) should
// block the file being downloaded. However, the FakeDatabaseManager reports
« no previous file with comments | « chrome/browser/safe_browsing/unverified_download_policy_unittest.cc ('k') | ppapi/tests/test_file_chooser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698