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

Unified Diff: chrome/browser/download/download_browsertest.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: 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
Index: chrome/browser/download/download_browsertest.cc
diff --git a/chrome/browser/download/download_browsertest.cc b/chrome/browser/download/download_browsertest.cc
index 331fb0e600faee41c2a49711bb6055fbf19927d7..7c933fb50f9540bb128359458f5d073aaefc019f 100644
--- a/chrome/browser/download/download_browsertest.cc
+++ b/chrome/browser/download/download_browsertest.cc
@@ -1718,10 +1718,10 @@ IN_PROC_BROWSER_TEST_F(DownloadTest, DownloadHistoryCheck) {
EXPECT_EQ(history::DownloadDangerType::NOT_DANGEROUS, row1.danger_type);
EXPECT_LE(start, row1.start_time);
EXPECT_GE(end, row1.end_time);
- EXPECT_EQ(net::URLRequestSlowDownloadJob::kFirstDownloadSize,
- row1.received_bytes);
- EXPECT_EQ(net::URLRequestSlowDownloadJob::kFirstDownloadSize
- + net::URLRequestSlowDownloadJob::kSecondDownloadSize,
+ EXPECT_EQ(0, row1.received_bytes); // There's no ETag. So the intermediate
svaldez 2016/03/09 19:27:33 Is this just an incidental change?
asanka 2016/03/10 16:48:08 This is a result of the explicit split between the
+ // state is discarded.
+ EXPECT_EQ(net::URLRequestSlowDownloadJob::kFirstDownloadSize +
+ net::URLRequestSlowDownloadJob::kSecondDownloadSize,
row1.total_bytes);
EXPECT_EQ(history::DownloadState::INTERRUPTED, row1.state);
EXPECT_EQ(history::ToHistoryDownloadInterruptReason(

Powered by Google App Engine
This is Rietveld 408576698