| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/browser/download/download_request_handle.h" | 9 #include "content/browser/download/download_request_handle.h" |
| 10 #include "content/browser/download/download_types.h" | 10 #include "content/browser/download/download_types.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 int64 size, | 44 int64 size, |
| 45 const std::string& hash_state, | 45 const std::string& hash_state, |
| 46 InterruptReason reason)); | 46 InterruptReason reason)); |
| 47 MOCK_METHOD3(OnDownloadRenamedToFinalName, void(int download_id, | 47 MOCK_METHOD3(OnDownloadRenamedToFinalName, void(int download_id, |
| 48 const FilePath& full_path, | 48 const FilePath& full_path, |
| 49 int uniquifier)); | 49 int uniquifier)); |
| 50 MOCK_METHOD2(RemoveDownloadsBetween, int(base::Time remove_begin, | 50 MOCK_METHOD2(RemoveDownloadsBetween, int(base::Time remove_begin, |
| 51 base::Time remove_end)); | 51 base::Time remove_end)); |
| 52 MOCK_METHOD1(RemoveDownloads, int(base::Time remove_begin)); | 52 MOCK_METHOD1(RemoveDownloads, int(base::Time remove_begin)); |
| 53 MOCK_METHOD0(RemoveAllDownloads, int()); | 53 MOCK_METHOD0(RemoveAllDownloads, int()); |
| 54 MOCK_METHOD6(DownloadUrl, void(const GURL& url, | 54 MOCK_METHOD7(DownloadUrl, void(const GURL& url, |
| 55 const GURL& referrer, | 55 const GURL& referrer, |
| 56 const std::string& referrer_encoding, | 56 const std::string& referrer_encoding, |
| 57 bool prefer_cache, | 57 bool prefer_cache, |
| 58 int64 post_id, |
| 58 const DownloadSaveInfo& save_info, | 59 const DownloadSaveInfo& save_info, |
| 59 content::WebContents* web_contents)); | 60 content::WebContents* web_contents)); |
| 60 MOCK_METHOD1(AddObserver, void(Observer* observer)); | 61 MOCK_METHOD1(AddObserver, void(Observer* observer)); |
| 61 MOCK_METHOD1(RemoveObserver, void(Observer* observer)); | 62 MOCK_METHOD1(RemoveObserver, void(Observer* observer)); |
| 62 MOCK_METHOD1(OnPersistentStoreQueryComplete, void( | 63 MOCK_METHOD1(OnPersistentStoreQueryComplete, void( |
| 63 std::vector<DownloadPersistentStoreInfo>* entries)); | 64 std::vector<DownloadPersistentStoreInfo>* entries)); |
| 64 MOCK_METHOD2(OnItemAddedToPersistentStore, void(int32 download_id, | 65 MOCK_METHOD2(OnItemAddedToPersistentStore, void(int32 download_id, |
| 65 int64 db_handle)); | 66 int64 db_handle)); |
| 66 MOCK_CONST_METHOD0(InProgressCount, int()); | 67 MOCK_CONST_METHOD0(InProgressCount, int()); |
| 67 MOCK_CONST_METHOD0(GetBrowserContext, content::BrowserContext*()); | 68 MOCK_CONST_METHOD0(GetBrowserContext, content::BrowserContext*()); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 88 content::DownloadManagerDelegate* delegate)); | 89 content::DownloadManagerDelegate* delegate)); |
| 89 MOCK_METHOD2(ContinueDownloadWithPath, void(content::DownloadItem* download, | 90 MOCK_METHOD2(ContinueDownloadWithPath, void(content::DownloadItem* download, |
| 90 const FilePath& chosen_file)); | 91 const FilePath& chosen_file)); |
| 91 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id)); | 92 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id)); |
| 92 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager)); | 93 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager)); |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 } // namespace content | 96 } // namespace content |
| 96 | 97 |
| 97 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ | 98 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ |
| OLD | NEW |