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

Side by Side Diff: content/browser/download/mock_download_item.h

Issue 8571023: Implemented ExternalData interface on DownloadItem and used it for SafeBrowsing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged to LKGR. Created 9 years 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/browser/download/download_item_impl.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_ITEM_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_H_
6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 MOCK_CONST_METHOD0(GetStateInfo, DownloadStateInfo()); 100 MOCK_CONST_METHOD0(GetStateInfo, DownloadStateInfo());
101 MOCK_CONST_METHOD0(BrowserContext, content::BrowserContext*()); 101 MOCK_CONST_METHOD0(BrowserContext, content::BrowserContext*());
102 MOCK_CONST_METHOD0(GetTabContents, TabContents*()); 102 MOCK_CONST_METHOD0(GetTabContents, TabContents*());
103 MOCK_CONST_METHOD0(GetTargetFilePath, FilePath()); 103 MOCK_CONST_METHOD0(GetTargetFilePath, FilePath());
104 MOCK_CONST_METHOD0(GetFileNameToReportUser, FilePath()); 104 MOCK_CONST_METHOD0(GetFileNameToReportUser, FilePath());
105 MOCK_CONST_METHOD0(GetUserVerifiedFilePath, FilePath()); 105 MOCK_CONST_METHOD0(GetUserVerifiedFilePath, FilePath());
106 MOCK_CONST_METHOD0(NeedsRename, bool()); 106 MOCK_CONST_METHOD0(NeedsRename, bool());
107 MOCK_METHOD1(OffThreadCancel, void(DownloadFileManager* file_manager)); 107 MOCK_METHOD1(OffThreadCancel, void(DownloadFileManager* file_manager));
108 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 108 MOCK_CONST_METHOD1(DebugString, std::string(bool));
109 MOCK_METHOD0(MockDownloadOpenForTesting, void()); 109 MOCK_METHOD0(MockDownloadOpenForTesting, void());
110 MOCK_METHOD1(GetExternalData, ExternalData*(const void*));
111 MOCK_METHOD2(SetExternalData, void(const void*, ExternalData*));
110 }; 112 };
111 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_H_ 113 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698