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

Unified Diff: chrome/browser/download/download_item_model_unittest.cc

Issue 1982723002: Use FileTypePolicies for download danger classifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_policies
Patch Set: Fix bad rebase Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/download_item_model.cc ('k') | chrome/browser/download/download_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_item_model_unittest.cc
diff --git a/chrome/browser/download/download_item_model_unittest.cc b/chrome/browser/download/download_item_model_unittest.cc
index 9cb147994274ea91d969f6280111ebdcc4fd1fb4..be3049da7ee196f376e46642f2641a02d343b79a 100644
--- a/chrome/browser/download/download_item_model_unittest.cc
+++ b/chrome/browser/download/download_item_model_unittest.cc
@@ -26,6 +26,7 @@
#include "ui/gfx/text_utils.h"
using content::DownloadItem;
+using safe_browsing::DownloadFileType;
using ::testing::Mock;
using ::testing::NiceMock;
using ::testing::Return;
@@ -375,10 +376,10 @@ TEST_F(DownloadItemModelTest, DangerLevel) {
SetupDownloadItemDefaults();
// Default danger level is NOT_DANGEROUS.
- EXPECT_EQ(download_util::NOT_DANGEROUS, model().GetDangerLevel());
+ EXPECT_EQ(DownloadFileType::NOT_DANGEROUS, model().GetDangerLevel());
- model().SetDangerLevel(download_util::ALLOW_ON_USER_GESTURE);
- EXPECT_EQ(download_util::ALLOW_ON_USER_GESTURE, model().GetDangerLevel());
+ model().SetDangerLevel(DownloadFileType::ALLOW_ON_USER_GESTURE);
+ EXPECT_EQ(DownloadFileType::ALLOW_ON_USER_GESTURE, model().GetDangerLevel());
}
TEST_F(DownloadItemModelTest, ShouldRemoveFromShelfWhenComplete) {
« no previous file with comments | « chrome/browser/download/download_item_model.cc ('k') | chrome/browser/download/download_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698