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

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

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/download_worker.cc ('k') | content/browser/download/mock_download_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/mock_download_file.h
diff --git a/content/browser/download/mock_download_file.h b/content/browser/download/mock_download_file.h
index d982da06cf7281263782b74261b2e45f3e55de90..4bdd1ae6ca2fc57333022363f7a5bebe879724b4 100644
--- a/content/browser/download/mock_download_file.h
+++ b/content/browser/download/mock_download_file.h
@@ -30,9 +30,12 @@ class MockDownloadFile : public DownloadFile {
// DownloadFile functions.
MOCK_METHOD1(Initialize, void(const InitializeCallback&));
void AddByteStream(std::unique_ptr<ByteStreamReader> stream_reader,
- int64_t offset) override;
- MOCK_METHOD2(DoAddByteStream,
- void(ByteStreamReader* stream_reader, int64_t offset));
+ int64_t offset,
+ int64_t length) override;
+ MOCK_METHOD3(DoAddByteStream,
+ void(ByteStreamReader* stream_reader,
+ int64_t offset,
+ int64_t length));
MOCK_METHOD2(AppendDataToFile, DownloadInterruptReason(
const char* data, size_t data_len));
MOCK_METHOD1(Rename, DownloadInterruptReason(
« no previous file with comments | « content/browser/download/download_worker.cc ('k') | content/browser/download/mock_download_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698