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

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

Issue 351863002: Added SERVER_UNAUTHORIZED download interrupt reason. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixup for history_unittest Created 6 years, 5 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/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 aa60862d522e23e28c67b3c7791e621d3fa21792..49177472f34ffb60a5fd47d0f49beae6020208d6 100644
--- a/chrome/browser/download/download_item_model_unittest.cc
+++ b/chrome/browser/download/download_item_model_unittest.cc
@@ -162,6 +162,10 @@ TEST_F(DownloadItemModelTest, InterruptedStatus) {
"Failed - Download error" },
{ content::DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT,
"Failed - No file" },
+ { content::DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED,
+ "Failed - Needs authorization" },
+ { content::DOWNLOAD_INTERRUPT_REASON_SERVER_CERT_PROBLEM,
+ "Failed - Bad certificate" },
{ content::DOWNLOAD_INTERRUPT_REASON_USER_CANCELED,
"Cancelled" },
{ content::DOWNLOAD_INTERRUPT_REASON_USER_SHUTDOWN,
@@ -234,6 +238,10 @@ TEST_F(DownloadItemModelTest, InterruptTooltip) {
"foo.bar\nDownload error" },
{ content::DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT,
"foo.bar\nNo file" },
+ { content::DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED,
+ "foo.bar\nNeeds authorization" },
+ { content::DOWNLOAD_INTERRUPT_REASON_SERVER_CERT_PROBLEM,
+ "foo.bar\nBad certificate" },
{ content::DOWNLOAD_INTERRUPT_REASON_USER_CANCELED,
"foo.bar" },
{ content::DOWNLOAD_INTERRUPT_REASON_USER_SHUTDOWN,
« no previous file with comments | « chrome/browser/download/download_item_model.cc ('k') | chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698