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

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

Issue 9518008: Add a const overload to DownloadItem::GetExternalData() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "Add a comment explaining the const cast" 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/public/browser/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_TEST_MOCK_DOWNLOAD_ITEM_H_ 5 #ifndef CONTENT_TEST_MOCK_DOWNLOAD_ITEM_H_
6 #define CONTENT_TEST_MOCK_DOWNLOAD_ITEM_H_ 6 #define CONTENT_TEST_MOCK_DOWNLOAD_ITEM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 MOCK_CONST_METHOD0(GetBrowserContext, content::BrowserContext*()); 109 MOCK_CONST_METHOD0(GetBrowserContext, content::BrowserContext*());
110 MOCK_CONST_METHOD0(GetWebContents, content::WebContents*()); 110 MOCK_CONST_METHOD0(GetWebContents, content::WebContents*());
111 MOCK_CONST_METHOD0(GetTargetFilePath, FilePath()); 111 MOCK_CONST_METHOD0(GetTargetFilePath, FilePath());
112 MOCK_CONST_METHOD0(GetFileNameToReportUser, FilePath()); 112 MOCK_CONST_METHOD0(GetFileNameToReportUser, FilePath());
113 MOCK_CONST_METHOD0(GetUserVerifiedFilePath, FilePath()); 113 MOCK_CONST_METHOD0(GetUserVerifiedFilePath, FilePath());
114 MOCK_CONST_METHOD0(NeedsRename, bool()); 114 MOCK_CONST_METHOD0(NeedsRename, bool());
115 MOCK_METHOD1(OffThreadCancel, void(DownloadFileManager* file_manager)); 115 MOCK_METHOD1(OffThreadCancel, void(DownloadFileManager* file_manager));
116 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 116 MOCK_CONST_METHOD1(DebugString, std::string(bool));
117 MOCK_METHOD0(MockDownloadOpenForTesting, void()); 117 MOCK_METHOD0(MockDownloadOpenForTesting, void());
118 MOCK_METHOD1(GetExternalData, ExternalData*(const void*)); 118 MOCK_METHOD1(GetExternalData, ExternalData*(const void*));
119 MOCK_CONST_METHOD1(GetExternalData, const ExternalData*(const void*));
119 MOCK_METHOD2(SetExternalData, void(const void*, ExternalData*)); 120 MOCK_METHOD2(SetExternalData, void(const void*, ExternalData*));
120 }; 121 };
121 122
122 } // namespace content 123 } // namespace content
123 124
124 #endif // CONTENT_TEST_MOCK_DOWNLOAD_ITEM_H_ 125 #endif // CONTENT_TEST_MOCK_DOWNLOAD_ITEM_H_
OLDNEW
« no previous file with comments | « content/public/browser/download_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698