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

Unified Diff: chrome/browser/extensions/crx_installer_browsertest.cc

Issue 2321823002: Exclude exe files while unzipping CRXes (Closed)
Patch Set: Ignore case Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/test/data/extensions/blocked_file_types.crx » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/crx_installer_browsertest.cc
diff --git a/chrome/browser/extensions/crx_installer_browsertest.cc b/chrome/browser/extensions/crx_installer_browsertest.cc
index aa508eb3b031e6d813df5fba7349b5f92c1d3e67..830da0591dd7814f8b484d5492dc7716ddd80b35 100644
--- a/chrome/browser/extensions/crx_installer_browsertest.cc
+++ b/chrome/browser/extensions/crx_installer_browsertest.cc
@@ -345,6 +345,15 @@ IN_PROC_BROWSER_TEST_F(ExtensionCrxInstallerTestWithExperimentalApis,
test_data_dir_.AppendASCII("minimal_platform_app.crx"), 1));
}
+IN_PROC_BROWSER_TEST_F(ExtensionCrxInstallerTest, BlockedFileTypes) {
+ const Extension* extension =
+ InstallExtension(test_data_dir_.AppendASCII("blocked_file_types.crx"), 1);
+ EXPECT_TRUE(base::PathExists(extension->path().AppendASCII("test.html")));
+ EXPECT_TRUE(base::PathExists(extension->path().AppendASCII("test.nexe")));
+ EXPECT_FALSE(base::PathExists(extension->path().AppendASCII("test1.EXE")));
+ EXPECT_FALSE(base::PathExists(extension->path().AppendASCII("test2.exe")));
+}
+
IN_PROC_BROWSER_TEST_F(ExtensionCrxInstallerTest, PackAndInstallExtension) {
if (!FeatureSwitch::easy_off_store_install()->IsEnabled())
return;
« no previous file with comments | « no previous file | chrome/test/data/extensions/blocked_file_types.crx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698