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

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

Issue 9296012: Hooked up NetLog to DownloadItem, DownloadFile, and FileStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with trunk Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_browser_context.cc ('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/browser/download/download_types.h" 10 #include "content/browser/download/download_types.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 content::WebContents* web_contents)); 60 content::WebContents* web_contents));
61 MOCK_METHOD1(AddObserver, void(Observer* observer)); 61 MOCK_METHOD1(AddObserver, void(Observer* observer));
62 MOCK_METHOD1(RemoveObserver, void(Observer* observer)); 62 MOCK_METHOD1(RemoveObserver, void(Observer* observer));
63 MOCK_METHOD1(OnPersistentStoreQueryComplete, void( 63 MOCK_METHOD1(OnPersistentStoreQueryComplete, void(
64 std::vector<DownloadPersistentStoreInfo>* entries)); 64 std::vector<DownloadPersistentStoreInfo>* entries));
65 MOCK_METHOD2(OnItemAddedToPersistentStore, void(int32 download_id, 65 MOCK_METHOD2(OnItemAddedToPersistentStore, void(int32 download_id,
66 int64 db_handle)); 66 int64 db_handle));
67 MOCK_CONST_METHOD0(InProgressCount, int()); 67 MOCK_CONST_METHOD0(InProgressCount, int());
68 MOCK_CONST_METHOD0(GetBrowserContext, content::BrowserContext*()); 68 MOCK_CONST_METHOD0(GetBrowserContext, content::BrowserContext*());
69 MOCK_METHOD0(LastDownloadPath, FilePath()); 69 MOCK_METHOD0(LastDownloadPath, FilePath());
70 MOCK_METHOD2(CreateDownloadItem, void( 70 MOCK_METHOD2(CreateDownloadItem, net::BoundNetLog(
71 DownloadCreateInfo* info, 71 DownloadCreateInfo* info,
72 const DownloadRequestHandle& request_handle)); 72 const DownloadRequestHandle& request_handle));
73 MOCK_METHOD4(CreateSavePackageDownloadItem, content::DownloadItem*( 73 MOCK_METHOD4(CreateSavePackageDownloadItem, content::DownloadItem*(
74 const FilePath& main_file_path, 74 const FilePath& main_file_path,
75 const GURL& page_url, 75 const GURL& page_url,
76 bool is_otr, 76 bool is_otr,
77 content::DownloadItem::Observer* observer)); 77 content::DownloadItem::Observer* observer));
78 MOCK_METHOD0(ClearLastDownloadPath, void()); 78 MOCK_METHOD0(ClearLastDownloadPath, void());
79 MOCK_METHOD2(FileSelected, void(const FilePath& path, void* params)); 79 MOCK_METHOD2(FileSelected, void(const FilePath& path, void* params));
80 MOCK_METHOD1(FileSelectionCanceled, void(void* params)); 80 MOCK_METHOD1(FileSelectionCanceled, void(void* params));
81 MOCK_METHOD1(RestartDownload, void(int32 download_id)); 81 MOCK_METHOD1(RestartDownload, void(int32 download_id));
82 MOCK_METHOD0(CheckForHistoryFilesRemoval, void()); 82 MOCK_METHOD0(CheckForHistoryFilesRemoval, void());
83 MOCK_METHOD1(GetDownloadItem, content::DownloadItem*(int id)); 83 MOCK_METHOD1(GetDownloadItem, content::DownloadItem*(int id));
84 MOCK_METHOD1(SavePageDownloadFinished, void(content::DownloadItem* download)); 84 MOCK_METHOD1(SavePageDownloadFinished, void(content::DownloadItem* download));
85 MOCK_METHOD1(GetActiveDownloadItem, content::DownloadItem*(int id)); 85 MOCK_METHOD1(GetActiveDownloadItem, content::DownloadItem*(int id));
86 MOCK_METHOD0(GenerateFileHash, bool()); 86 MOCK_METHOD0(GenerateFileHash, bool());
87 MOCK_CONST_METHOD0(delegate, content::DownloadManagerDelegate*()); 87 MOCK_CONST_METHOD0(delegate, content::DownloadManagerDelegate*());
88 MOCK_METHOD1(SetDownloadManagerDelegate, void( 88 MOCK_METHOD1(SetDownloadManagerDelegate, void(
89 content::DownloadManagerDelegate* delegate)); 89 content::DownloadManagerDelegate* delegate));
90 MOCK_METHOD2(ContinueDownloadWithPath, void(content::DownloadItem* download, 90 MOCK_METHOD2(ContinueDownloadWithPath, void(content::DownloadItem* download,
91 const FilePath& chosen_file)); 91 const FilePath& chosen_file));
92 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id)); 92 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id));
93 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager)); 93 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager));
94 }; 94 };
95 95
96 } // namespace content 96 } // namespace content
97 97
98 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 98 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/shell/shell_browser_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698