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

Unified Diff: content/public/test/mock_download_manager.h

Issue 2703883003: Read and restore persisted slice info (Closed)
Patch Set: 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/public/test/mock_download_item.h ('k') | content/public/test/mock_download_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_download_manager.h
diff --git a/content/public/test/mock_download_manager.h b/content/public/test/mock_download_manager.h
index 2d38450ca15ef6dc319eaf86bb2295564df1f019..1bf01642d932b85c05767ee61486bc01b2a1e4ec 100644
--- a/content/public/test/mock_download_manager.h
+++ b/content/public/test/mock_download_manager.h
@@ -52,29 +52,32 @@ class MockDownloadManager : public DownloadManager {
DownloadDangerType danger_type;
DownloadInterruptReason interrupt_reason;
bool opened;
-
- CreateDownloadItemAdapter(const std::string& guid,
- uint32_t id,
- const base::FilePath& current_path,
- const base::FilePath& target_path,
- const std::vector<GURL>& url_chain,
- const GURL& referrer_url,
- const GURL& site_url,
- const GURL& tab_url,
- const GURL& tab_refererr_url,
- const std::string& mime_type,
- const std::string& original_mime_type,
- const base::Time& start_time,
- const base::Time& end_time,
- const std::string& etag,
- const std::string& last_modified,
- int64_t received_bytes,
- int64_t total_bytes,
- const std::string& hash,
- DownloadItem::DownloadState state,
- DownloadDangerType danger_type,
- DownloadInterruptReason interrupt_reason,
- bool opened);
+ std::vector<DownloadItem::ReceivedSlice> received_slices;
+
+ CreateDownloadItemAdapter(
+ const std::string& guid,
+ uint32_t id,
+ const base::FilePath& current_path,
+ const base::FilePath& target_path,
+ const std::vector<GURL>& url_chain,
+ const GURL& referrer_url,
+ const GURL& site_url,
+ const GURL& tab_url,
+ const GURL& tab_refererr_url,
+ const std::string& mime_type,
+ const std::string& original_mime_type,
+ const base::Time& start_time,
+ const base::Time& end_time,
+ const std::string& etag,
+ const std::string& last_modified,
+ int64_t received_bytes,
+ int64_t total_bytes,
+ const std::string& hash,
+ DownloadItem::DownloadState state,
+ DownloadDangerType danger_type,
+ DownloadInterruptReason interrupt_reason,
+ bool opened,
+ const std::vector<DownloadItem::ReceivedSlice>& received_slices);
// Required by clang compiler.
CreateDownloadItemAdapter(const CreateDownloadItemAdapter& rhs);
~CreateDownloadItemAdapter();
@@ -112,28 +115,30 @@ class MockDownloadManager : public DownloadManager {
MOCK_METHOD1(RemoveObserver, void(Observer* observer));
// Redirects to mock method to get around gmock 10 argument limit.
- DownloadItem* CreateDownloadItem(const std::string& guid,
- uint32_t id,
- const base::FilePath& current_path,
- const base::FilePath& target_path,
- const std::vector<GURL>& url_chain,
- const GURL& referrer_url,
- const GURL& site_url,
- const GURL& tab_url,
- const GURL& tab_refererr_url,
- const std::string& mime_type,
- const std::string& original_mime_type,
- const base::Time& start_time,
- const base::Time& end_time,
- const std::string& etag,
- const std::string& last_modified,
- int64_t received_bytes,
- int64_t total_bytes,
- const std::string& hash,
- DownloadItem::DownloadState state,
- DownloadDangerType danger_type,
- DownloadInterruptReason interrupt_reason,
- bool opened) override;
+ DownloadItem* CreateDownloadItem(
+ const std::string& guid,
+ uint32_t id,
+ const base::FilePath& current_path,
+ const base::FilePath& target_path,
+ const std::vector<GURL>& url_chain,
+ const GURL& referrer_url,
+ const GURL& site_url,
+ const GURL& tab_url,
+ const GURL& tab_refererr_url,
+ const std::string& mime_type,
+ const std::string& original_mime_type,
+ const base::Time& start_time,
+ const base::Time& end_time,
+ const std::string& etag,
+ const std::string& last_modified,
+ int64_t received_bytes,
+ int64_t total_bytes,
+ const std::string& hash,
+ DownloadItem::DownloadState state,
+ DownloadDangerType danger_type,
+ DownloadInterruptReason interrupt_reason,
+ bool opened,
+ const std::vector<DownloadItem::ReceivedSlice>& received_slices) override;
MOCK_METHOD1(MockCreateDownloadItem,
DownloadItem*(CreateDownloadItemAdapter adapter));
« no previous file with comments | « content/public/test/mock_download_item.h ('k') | content/public/test/mock_download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698