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

Unified Diff: content/browser/download/download_browsertest.cc

Issue 17315009: [Downloads] Add more browsertests for resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: content/browser/download/download_browsertest.cc
diff --git a/content/browser/download/download_browsertest.cc b/content/browser/download/download_browsertest.cc
index fc446992a1776412da33d01d72be006e25edf893..ed58d11cda9b78b99e914ac828505dd9423a08e2 100644
--- a/content/browser/download/download_browsertest.cc
+++ b/content/browser/download/download_browsertest.cc
@@ -1131,6 +1131,8 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest,
{DownloadItem::IN_PROGRESS, GetSafeBufferChunk()},
// Server precondition fail.
{DownloadItem::INTERRUPTED, GetSafeBufferChunk()},
+ // Resumption.
+ {DownloadItem::INTERRUPTED, 0},
// Notification of successful restart.
{DownloadItem::IN_PROGRESS, 0},
// Completion.
@@ -1228,7 +1230,9 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ResumeWithDeletedFile) {
{DownloadItem::IN_PROGRESS, GetSafeBufferChunk()},
// Error because file isn't there.
{DownloadItem::INTERRUPTED, GetSafeBufferChunk()},
- // Restart
+ // Resuming.
+ {DownloadItem::INTERRUPTED, 0},
+ // Restart.
{DownloadItem::IN_PROGRESS, 0},
// Completion.
{DownloadItem::COMPLETE, GetSafeBufferChunk() * 3},

Powered by Google App Engine
This is Rietveld 408576698