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_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "content/public/browser/download_manager.h" | 10 #include "content/public/browser/download_manager.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 int64 total_bytes, | 109 int64 total_bytes, |
110 DownloadItem::DownloadState state, | 110 DownloadItem::DownloadState state, |
111 DownloadDangerType danger_type, | 111 DownloadDangerType danger_type, |
112 DownloadInterruptReason interrupt_reason, | 112 DownloadInterruptReason interrupt_reason, |
113 bool opened) OVERRIDE; | 113 bool opened) OVERRIDE; |
114 | 114 |
115 MOCK_METHOD1(MockCreateDownloadItem, | 115 MOCK_METHOD1(MockCreateDownloadItem, |
116 DownloadItem*(CreateDownloadItemAdapter adapter)); | 116 DownloadItem*(CreateDownloadItemAdapter adapter)); |
117 | 117 |
118 MOCK_CONST_METHOD0(InProgressCount, int()); | 118 MOCK_CONST_METHOD0(InProgressCount, int()); |
| 119 MOCK_CONST_METHOD0(NonMaliciousInProgressCount, int()); |
119 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); | 120 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); |
120 MOCK_METHOD0(CheckForHistoryFilesRemoval, void()); | 121 MOCK_METHOD0(CheckForHistoryFilesRemoval, void()); |
121 MOCK_METHOD1(GetDownload, DownloadItem*(uint32 id)); | 122 MOCK_METHOD1(GetDownload, DownloadItem*(uint32 id)); |
122 }; | 123 }; |
123 | 124 |
124 } // namespace content | 125 } // namespace content |
125 | 126 |
126 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ | 127 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_MANAGER_H_ |
OLD | NEW |