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

Unified Diff: components/history/content/browser/content_history_backend_db_unittest.cc

Issue 1544603003: [Downloads] Do not store error responses during resumption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unify-downloader-core
Patch Set: Created 4 years, 10 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/common/extensions/api/downloads.idl ('k') | content/browser/download/download_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/content/browser/content_history_backend_db_unittest.cc
diff --git a/components/history/content/browser/content_history_backend_db_unittest.cc b/components/history/content/browser/content_history_backend_db_unittest.cc
index 0f79c6fedb7bf8d086d33b0fefdb64868d187b7d..6c43f4c75757e3f7d8caa4467e1f2a09ee3fe523 100644
--- a/components/history/content/browser/content_history_backend_db_unittest.cc
+++ b/components/history/content/browser/content_history_backend_db_unittest.cc
@@ -51,31 +51,32 @@ const InterruptReasonAssociation current_reasons[] = {
// This represents a list of all reasons we've previously used;
// Do Not Remove Any Entries From This List.
const InterruptReasonAssociation historical_reasons[] = {
- {"FILE_FAILED", 1},
- {"FILE_ACCESS_DENIED", 2},
- {"FILE_NO_SPACE", 3},
- {"FILE_NAME_TOO_LONG", 5},
- {"FILE_TOO_LARGE", 6},
- {"FILE_VIRUS_INFECTED", 7},
- {"FILE_TRANSIENT_ERROR", 10},
- {"FILE_BLOCKED", 11},
- {"FILE_SECURITY_CHECK_FAILED", 12},
- {"FILE_TOO_SHORT", 13},
- {"NETWORK_FAILED", 20},
- {"NETWORK_TIMEOUT", 21},
- {"NETWORK_DISCONNECTED", 22},
- {"NETWORK_SERVER_DOWN", 23},
- {"NETWORK_INVALID_REQUEST", 24},
- {"SERVER_FAILED", 30},
- {"SERVER_NO_RANGE", 31},
- {"SERVER_PRECONDITION", 32},
- {"SERVER_BAD_CONTENT", 33},
- {"SERVER_UNAUTHORIZED", 34},
- {"SERVER_CERT_PROBLEM", 35},
- {"SERVER_FORBIDDEN", 36},
- {"USER_CANCELED", 40},
- {"USER_SHUTDOWN", 41},
- {"CRASH", 50},
+ {"FILE_FAILED", 1},
+ {"FILE_ACCESS_DENIED", 2},
+ {"FILE_NO_SPACE", 3},
+ {"FILE_NAME_TOO_LONG", 5},
+ {"FILE_TOO_LARGE", 6},
+ {"FILE_VIRUS_INFECTED", 7},
+ {"FILE_TRANSIENT_ERROR", 10},
+ {"FILE_BLOCKED", 11},
+ {"FILE_SECURITY_CHECK_FAILED", 12},
+ {"FILE_TOO_SHORT", 13},
+ {"NETWORK_FAILED", 20},
+ {"NETWORK_TIMEOUT", 21},
+ {"NETWORK_DISCONNECTED", 22},
+ {"NETWORK_SERVER_DOWN", 23},
+ {"NETWORK_INVALID_REQUEST", 24},
+ {"SERVER_FAILED", 30},
+ {"SERVER_NO_RANGE", 31},
+ {"SERVER_PRECONDITION", 32},
+ {"SERVER_BAD_CONTENT", 33},
+ {"SERVER_UNAUTHORIZED", 34},
+ {"SERVER_CERT_PROBLEM", 35},
+ {"SERVER_FORBIDDEN", 36},
+ {"SERVER_UNREACHABLE", 37},
+ {"USER_CANCELED", 40},
+ {"USER_SHUTDOWN", 41},
+ {"CRASH", 50},
};
// Make sure no one has changed a DownloadInterruptReason we've previously
« no previous file with comments | « chrome/common/extensions/api/downloads.idl ('k') | content/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698