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

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

Issue 2738063002: Verify that all slice are downloaded when a stream complete (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « content/browser/download/download_file_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_file_unittest.cc
diff --git a/content/browser/download/download_file_unittest.cc b/content/browser/download/download_file_unittest.cc
index f61b5a0d4e65dbcc2fabadf86e9dab36af98b1a0..1a2c560704cd4804d82000796c35ac4435dd433c 100644
--- a/content/browser/download/download_file_unittest.cc
+++ b/content/browser/download/download_file_unittest.cc
@@ -981,8 +981,6 @@ TEST_F(DownloadFileTest, MutipleStreamsLimitedLength) {
int64_t stream_1_length = static_cast<int64_t>(strlen(kTestData4)) - 1;
PrepareMultipleStreams(false, stream_1_length);
- EXPECT_CALL(*(observer_.get()), MockDestinationCompleted(_, _));
-
download_file_->AddByteStream(
std::unique_ptr<MockByteStreamReader>(input_stream_1_), stream_0_length);
sink_callback_.Run();
@@ -1006,6 +1004,7 @@ TEST_F(DownloadFileTest, MutipleStreamsLimitedLength) {
size_t size;
input_stream_1_->Read(&data, &size);
+ download_file_->Cancel();
DestroyDownloadFile(0, false);
}
« no previous file with comments | « content/browser/download/download_file_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698