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_TEST_MOCK_DOWNLOAD_MANAGER_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_MANAGER_H_ |
6 #define CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_MANAGER_H_ | 6 #define CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 DownloadItem::DownloadState state, | 141 DownloadItem::DownloadState state, |
142 DownloadDangerType danger_type, | 142 DownloadDangerType danger_type, |
143 DownloadInterruptReason interrupt_reason, | 143 DownloadInterruptReason interrupt_reason, |
144 bool opened, | 144 bool opened, |
145 base::Time last_access_time, | 145 base::Time last_access_time, |
146 bool transient, | 146 bool transient, |
147 const std::vector<DownloadItem::ReceivedSlice>& received_slices) override; | 147 const std::vector<DownloadItem::ReceivedSlice>& received_slices) override; |
148 | 148 |
149 MOCK_METHOD1(MockCreateDownloadItem, | 149 MOCK_METHOD1(MockCreateDownloadItem, |
150 DownloadItem*(CreateDownloadItemAdapter adapter)); | 150 DownloadItem*(CreateDownloadItemAdapter adapter)); |
151 | 151 MOCK_METHOD0(PostInitialization, void()); |
| 152 MOCK_CONST_METHOD0(IsManagerInitialized, bool()); |
152 MOCK_CONST_METHOD0(InProgressCount, int()); | 153 MOCK_CONST_METHOD0(InProgressCount, int()); |
153 MOCK_CONST_METHOD0(NonMaliciousInProgressCount, int()); | 154 MOCK_CONST_METHOD0(NonMaliciousInProgressCount, int()); |
154 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); | 155 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); |
155 MOCK_METHOD0(CheckForHistoryFilesRemoval, void()); | 156 MOCK_METHOD0(CheckForHistoryFilesRemoval, void()); |
156 MOCK_METHOD1(GetDownload, DownloadItem*(uint32_t id)); | 157 MOCK_METHOD1(GetDownload, DownloadItem*(uint32_t id)); |
157 MOCK_METHOD1(GetDownloadByGuid, DownloadItem*(const std::string&)); | 158 MOCK_METHOD1(GetDownloadByGuid, DownloadItem*(const std::string&)); |
158 }; | 159 }; |
159 | 160 |
160 } // namespace content | 161 } // namespace content |
161 | 162 |
162 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_MANAGER_H_ | 163 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_MANAGER_H_ |
OLD | NEW |