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 f178032aef408fc9e01fcf5d12ee9abe7523d86b..9b53bb6fb4b0bbf91b0f51e94a8f128fdf07fe2e 100644 |
--- a/content/public/test/mock_download_manager.h |
+++ b/content/public/test/mock_download_manager.h |
@@ -46,15 +46,32 @@ class MockDownloadManager : public DownloadManager { |
} |
MOCK_METHOD1(AddObserver, void(Observer* observer)); |
MOCK_METHOD1(RemoveObserver, void(Observer* observer)); |
- MOCK_METHOD9(CreateDownloadItem, DownloadItem*( |
- const FilePath& path, |
- const GURL& url, |
+ |
+ // Redirects to mock method dropping current_path, to get around gmock |
+ // 10 argument limit. |
+ DownloadItem* CreateDownloadItem( |
+ const FilePath& current_path, |
+ const FilePath& target_path, |
+ const std::vector<GURL>& url_chain, |
+ const GURL& referrer_url, |
+ const base::Time& start_time, |
+ const base::Time& end_time, |
+ int64 received_bytes, |
+ int64 total_bytes, |
+ DownloadItem::DownloadState state, |
+ DownloadInterruptReason interrupt_reason, |
+ bool opened) OVERRIDE; |
+ |
+ MOCK_METHOD10(MockCreateDownloadItem, DownloadItem*( |
+ const FilePath& target_path, |
+ const std::vector<GURL>& url_chain, |
const GURL& referrer_url, |
const base::Time& start_tiem, |
const base::Time& end_time, |
int64 received_bytes, |
int64 total_bytes, |
DownloadItem::DownloadState state, |
+ DownloadInterruptReason interrupt_reason, |
bool opened)); |
MOCK_METHOD2(OnItemAddedToPersistentStore, void(int32 download_id, |
int64 db_handle)); |