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

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

Issue 2880933002: Download driver for components/download. (Closed)
Patch Set: Polish comment. Created 3 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
« no previous file with comments | « content/public/test/fake_download_item.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_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
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_
OLDNEW
« no previous file with comments | « content/public/test/fake_download_item.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698