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

Side by Side Diff: content/test/mock_download_manager.h

Issue 10069014: Save Page As MHTML (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/browser/save_page_type.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 MOCK_METHOD1(OnPersistentStoreQueryComplete, void( 66 MOCK_METHOD1(OnPersistentStoreQueryComplete, void(
67 std::vector<DownloadPersistentStoreInfo>* entries)); 67 std::vector<DownloadPersistentStoreInfo>* entries));
68 MOCK_METHOD2(OnItemAddedToPersistentStore, void(int32 download_id, 68 MOCK_METHOD2(OnItemAddedToPersistentStore, void(int32 download_id,
69 int64 db_handle)); 69 int64 db_handle));
70 MOCK_CONST_METHOD0(InProgressCount, int()); 70 MOCK_CONST_METHOD0(InProgressCount, int());
71 MOCK_CONST_METHOD0(GetBrowserContext, content::BrowserContext*()); 71 MOCK_CONST_METHOD0(GetBrowserContext, content::BrowserContext*());
72 MOCK_METHOD0(LastDownloadPath, FilePath()); 72 MOCK_METHOD0(LastDownloadPath, FilePath());
73 MOCK_METHOD2(CreateDownloadItem, net::BoundNetLog( 73 MOCK_METHOD2(CreateDownloadItem, net::BoundNetLog(
74 DownloadCreateInfo* info, 74 DownloadCreateInfo* info,
75 const DownloadRequestHandle& request_handle)); 75 const DownloadRequestHandle& request_handle));
76 MOCK_METHOD4(CreateSavePackageDownloadItem, content::DownloadItem*( 76 MOCK_METHOD5(CreateSavePackageDownloadItem, content::DownloadItem*(
77 const FilePath& main_file_path, 77 const FilePath& main_file_path,
78 const GURL& page_url, 78 const GURL& page_url,
79 bool is_otr, 79 bool is_otr,
80 const std::string& mime_type,
80 content::DownloadItem::Observer* observer)); 81 content::DownloadItem::Observer* observer));
81 MOCK_METHOD0(ClearLastDownloadPath, void()); 82 MOCK_METHOD0(ClearLastDownloadPath, void());
82 MOCK_METHOD2(FileSelected, void(const FilePath& path, int32 download_id)); 83 MOCK_METHOD2(FileSelected, void(const FilePath& path, int32 download_id));
83 MOCK_METHOD1(FileSelectionCanceled, void(int32 download_id)); 84 MOCK_METHOD1(FileSelectionCanceled, void(int32 download_id));
84 MOCK_METHOD1(RestartDownload, void(int32 download_id)); 85 MOCK_METHOD1(RestartDownload, void(int32 download_id));
85 MOCK_METHOD0(CheckForHistoryFilesRemoval, void()); 86 MOCK_METHOD0(CheckForHistoryFilesRemoval, void());
86 MOCK_METHOD1(GetDownloadItem, content::DownloadItem*(int id)); 87 MOCK_METHOD1(GetDownloadItem, content::DownloadItem*(int id));
87 MOCK_METHOD1(SavePageDownloadFinished, void(content::DownloadItem* download)); 88 MOCK_METHOD1(SavePageDownloadFinished, void(content::DownloadItem* download));
88 MOCK_METHOD1(GetActiveDownloadItem, content::DownloadItem*(int id)); 89 MOCK_METHOD1(GetActiveDownloadItem, content::DownloadItem*(int id));
89 MOCK_METHOD0(GenerateFileHash, bool()); 90 MOCK_METHOD0(GenerateFileHash, bool());
90 MOCK_CONST_METHOD0(delegate, content::DownloadManagerDelegate*()); 91 MOCK_CONST_METHOD0(delegate, content::DownloadManagerDelegate*());
91 MOCK_METHOD1(SetDownloadManagerDelegate, void( 92 MOCK_METHOD1(SetDownloadManagerDelegate, void(
92 content::DownloadManagerDelegate* delegate)); 93 content::DownloadManagerDelegate* delegate));
93 MOCK_METHOD2(ContinueDownloadWithPath, void(content::DownloadItem* download, 94 MOCK_METHOD2(ContinueDownloadWithPath, void(content::DownloadItem* download,
94 const FilePath& chosen_file)); 95 const FilePath& chosen_file));
95 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id)); 96 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id));
96 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager)); 97 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager));
97 }; 98 };
98 99
99 } // namespace content 100 } // namespace content
100 101
101 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 102 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/browser/save_page_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698