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

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

Issue 2712713007: Make DownloadFileImpl handle multiple byte streams. (Closed)
Patch Set: Remove the AppendDataToFile call, fix the browsertest. Created 3 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
« no previous file with comments | « content/browser/download/mock_download_file.h ('k') | content/public/test/test_file_error_injector.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.cc
diff --git a/content/browser/download/mock_download_file.cc b/content/browser/download/mock_download_file.cc
index 9d883c7a7ebc9a66ecfd4f1aa3e5760414143ec7..e8abcf2db07dccaad8cb6f4b555ff25ecea91b0f 100644
--- a/content/browser/download/mock_download_file.cc
+++ b/content/browser/download/mock_download_file.cc
@@ -27,4 +27,12 @@ MockDownloadFile::MockDownloadFile() {
MockDownloadFile::~MockDownloadFile() {
}
+void MockDownloadFile::AddByteStream(
+ std::unique_ptr<ByteStreamReader> stream_reader,
+ int64_t offset) {
+ // Gmock currently can't mock method that takes move-only parameters,
+ // delegate the EXPECT_CALL count to |DoAddByteStream|.
+ DoAddByteStream(stream_reader.get(), offset);
+}
+
} // namespace content
« no previous file with comments | « content/browser/download/mock_download_file.h ('k') | content/public/test/test_file_error_injector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698