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

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

Issue 1751603002: [Downloads] Rework how hashes are calculated for download files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of https://codereview.chromium.org/1781983002 since that's going in first. Created 4 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
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 188e8e0961572f127489fd653f54a878978ff58d..9cb147994274ea91d969f6280111ebdcc4fd1fb4 100644
--- a/chrome/browser/download/download_item_model_unittest.cc
+++ b/chrome/browser/download/download_item_model_unittest.cc
@@ -143,6 +143,8 @@ TEST_F(DownloadItemModelTest, InterruptedStatus) {
"Failed - File truncated"},
{content::DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR,
"Failed - System busy"},
+ {content::DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH,
+ "Failed - Download error"},
{content::DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED,
"Failed - Network error"},
{content::DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT,
@@ -215,6 +217,8 @@ TEST_F(DownloadItemModelTest, InterruptTooltip) {
"foo.bar\nFile truncated"},
{content::DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR,
"foo.bar\nSystem busy"},
+ {content::DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH,
+ "foo.bar\nDownload error"},
{content::DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED,
"foo.bar\nNetwork error"},
{content::DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT,
« 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