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

Unified Diff: chrome/common/safe_browsing/file_type_policies_unittest.cc

Issue 2778283003: Check apk and dex files on Chrome OS. (Closed)
Patch Set: Fix file_type_policies_unittest. Created 3 years, 9 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 | « chrome/browser/resources/safe_browsing/download_file_types.asciipb ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/safe_browsing/file_type_policies_unittest.cc
diff --git a/chrome/common/safe_browsing/file_type_policies_unittest.cc b/chrome/common/safe_browsing/file_type_policies_unittest.cc
index ade990c04a467bff387aec3b81c547df169a5a8b..b7bfe0e734464bde71ab4cc8c2822f52e62c5ad7 100644
--- a/chrome/common/safe_browsing/file_type_policies_unittest.cc
+++ b/chrome/common/safe_browsing/file_type_policies_unittest.cc
@@ -107,14 +107,14 @@ TEST_F(FileTypePoliciesTest, UnpackResourceBundle) {
file_type.platform_settings(0).auto_open_hint());
#endif
- // Lookup .dex that varies on OS_ANDROID
+ // Lookup .dex that varies on OS_ANDROID and OS_CHROMEOS
base::FilePath dex_file(FILE_PATH_LITERAL("foo.dex"));
file_type = policies_.PolicyForFile(dex_file);
EXPECT_EQ("dex", file_type.extension());
EXPECT_EQ(143, file_type.uma_value());
EXPECT_FALSE(file_type.is_archive());
EXPECT_EQ(DownloadFileType::FULL_PING, file_type.ping_setting());
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
EXPECT_EQ(DownloadFileType::ALLOW_ON_USER_GESTURE,
file_type.platform_settings(0).danger_level());
EXPECT_EQ(DownloadFileType::DISALLOW_AUTO_OPEN,
« no previous file with comments | « chrome/browser/resources/safe_browsing/download_file_types.asciipb ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698