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

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

Issue 2623613009: Disable "pause" item in context menu for "Save Page As..." downloads. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « chrome/browser/download/download_commands.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_commands_unittest.cc
diff --git a/chrome/browser/download/download_commands_unittest.cc b/chrome/browser/download/download_commands_unittest.cc
index e21770d73ccb10afec512d43110b243a83deade8..b3df65cc0b5a98c17c2d4eb392574a2648b44df4 100644
--- a/chrome/browser/download/download_commands_unittest.cc
+++ b/chrome/browser/download/download_commands_unittest.cc
@@ -126,6 +126,11 @@ TEST_F(DownloadCommandsTest, PausedUnresumable) {
EXPECT_FALSE(IsCommandEnabled(DownloadCommands::RESUME));
}
+TEST_F(DownloadCommandsTest, CantPauseSavePackage) {
+ ON_CALL(item(), IsSavePackageDownload()).WillByDefault(Return(true));
+ EXPECT_FALSE(IsCommandEnabled(DownloadCommands::PAUSE));
+}
+
TEST_F(DownloadCommandsTest, DoOpenWhenComplete) {
// Open when complete.
EXPECT_CALL(item(), OpenDownload()).Times(1);
« no previous file with comments | « chrome/browser/download/download_commands.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698