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

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

Issue 2742093002: Glue parallel download job and download file together. (Closed)
Patch Set: Rebase, and adjust unittests with recent landed CLs. 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/mock_download_file.h ('k') | content/browser/download/mock_download_item_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/mock_download_file.cc
diff --git a/content/browser/download/mock_download_file.cc b/content/browser/download/mock_download_file.cc
index e8abcf2db07dccaad8cb6f4b555ff25ecea91b0f..2f10f54cf6f3a35ee3bf6e4437415b5c54925870 100644
--- a/content/browser/download/mock_download_file.cc
+++ b/content/browser/download/mock_download_file.cc
@@ -29,10 +29,11 @@ MockDownloadFile::~MockDownloadFile() {
void MockDownloadFile::AddByteStream(
std::unique_ptr<ByteStreamReader> stream_reader,
- int64_t offset) {
+ int64_t offset,
+ int64_t length) {
// Gmock currently can't mock method that takes move-only parameters,
// delegate the EXPECT_CALL count to |DoAddByteStream|.
- DoAddByteStream(stream_reader.get(), offset);
+ DoAddByteStream(stream_reader.get(), offset, length);
}
} // namespace content
« no previous file with comments | « content/browser/download/mock_download_file.h ('k') | content/browser/download/mock_download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698