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

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

Issue 9639001: Move download interrupt reasons to content\public (the enum that's used by chrome). The rest keep i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nits Created 8 years, 9 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/test/mock_download_item.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/browser/download/download_types.h" 10 #include "content/browser/download/download_types.h"
(...skipping 22 matching lines...) Expand all
33 MOCK_METHOD1(Init, bool(content::BrowserContext* browser_context)); 33 MOCK_METHOD1(Init, bool(content::BrowserContext* browser_context));
34 MOCK_METHOD1(StartDownload, void(int32 id)); 34 MOCK_METHOD1(StartDownload, void(int32 id));
35 MOCK_METHOD4(UpdateDownload, void(int32 download_id, 35 MOCK_METHOD4(UpdateDownload, void(int32 download_id,
36 int64 bytes_so_far, 36 int64 bytes_so_far,
37 int64 bytes_per_sec, 37 int64 bytes_per_sec,
38 const std::string& hash_state)); 38 const std::string& hash_state));
39 MOCK_METHOD3(OnResponseCompleted, void(int32 download_id, 39 MOCK_METHOD3(OnResponseCompleted, void(int32 download_id,
40 int64 size, 40 int64 size,
41 const std::string& hash)); 41 const std::string& hash));
42 MOCK_METHOD1(CancelDownload, void(int32 download_id)); 42 MOCK_METHOD1(CancelDownload, void(int32 download_id));
43 MOCK_METHOD4(OnDownloadInterrupted, void(int32 download_id, 43 MOCK_METHOD4(OnDownloadInterrupted,
44 int64 size, 44 void(int32 download_id,
45 const std::string& hash_state, 45 int64 size,
46 InterruptReason reason)); 46 const std::string& hash_state,
47 content::DownloadInterruptReason reason));
47 MOCK_METHOD3(OnDownloadRenamedToFinalName, void(int download_id, 48 MOCK_METHOD3(OnDownloadRenamedToFinalName, void(int download_id,
48 const FilePath& full_path, 49 const FilePath& full_path,
49 int uniquifier)); 50 int uniquifier));
50 MOCK_METHOD2(RemoveDownloadsBetween, int(base::Time remove_begin, 51 MOCK_METHOD2(RemoveDownloadsBetween, int(base::Time remove_begin,
51 base::Time remove_end)); 52 base::Time remove_end));
52 MOCK_METHOD1(RemoveDownloads, int(base::Time remove_begin)); 53 MOCK_METHOD1(RemoveDownloads, int(base::Time remove_begin));
53 MOCK_METHOD0(RemoveAllDownloads, int()); 54 MOCK_METHOD0(RemoveAllDownloads, int());
54 MOCK_METHOD7(DownloadUrl, void(const GURL& url, 55 MOCK_METHOD7(DownloadUrl, void(const GURL& url,
55 const GURL& referrer, 56 const GURL& referrer,
56 const std::string& referrer_encoding, 57 const std::string& referrer_encoding,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 content::DownloadManagerDelegate* delegate)); 90 content::DownloadManagerDelegate* delegate));
90 MOCK_METHOD2(ContinueDownloadWithPath, void(content::DownloadItem* download, 91 MOCK_METHOD2(ContinueDownloadWithPath, void(content::DownloadItem* download,
91 const FilePath& chosen_file)); 92 const FilePath& chosen_file));
92 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id)); 93 MOCK_METHOD1(GetActiveDownload, content::DownloadItem*(int32 download_id));
93 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager)); 94 MOCK_METHOD1(SetFileManager, void(DownloadFileManager* file_manager));
94 }; 95 };
95 96
96 } // namespace content 97 } // namespace content
97 98
98 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ 99 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/test/mock_download_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698