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

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

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/download_stats.h ('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 dcc3a43cd06e16464cfed60320383363ba26f623..d982da06cf7281263782b74261b2e45f3e55de90 100644
--- a/content/browser/download/mock_download_file.h
+++ b/content/browser/download/mock_download_file.h
@@ -9,10 +9,12 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <string>
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
+#include "content/browser/byte_stream.h"
#include "content/browser/download/download_file.h"
#include "content/public/browser/download_manager.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -27,6 +29,10 @@ 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));
MOCK_METHOD2(AppendDataToFile, DownloadInterruptReason(
const char* data, size_t data_len));
MOCK_METHOD1(Rename, DownloadInterruptReason(
« no previous file with comments | « content/browser/download/download_stats.h ('k') | content/browser/download/mock_download_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698