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

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

Issue 8697006: DownloadManager intereface refactoring to allow cleaner DownloadItem unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved isolation of MockDownloadManager. 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
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 MOCK_CONST_METHOD0(GetTargetName, const FilePath&()); 89 MOCK_CONST_METHOD0(GetTargetName, const FilePath&());
90 MOCK_CONST_METHOD0(PromptUserForSaveLocation, bool()); 90 MOCK_CONST_METHOD0(PromptUserForSaveLocation, bool());
91 MOCK_CONST_METHOD0(IsOtr, bool()); 91 MOCK_CONST_METHOD0(IsOtr, bool());
92 MOCK_CONST_METHOD0(GetSuggestedPath, const FilePath&()); 92 MOCK_CONST_METHOD0(GetSuggestedPath, const FilePath&());
93 MOCK_CONST_METHOD0(IsTemporary, bool()); 93 MOCK_CONST_METHOD0(IsTemporary, bool());
94 MOCK_METHOD1(SetOpened, void(bool)); 94 MOCK_METHOD1(SetOpened, void(bool));
95 MOCK_CONST_METHOD0(GetOpened, bool()); 95 MOCK_CONST_METHOD0(GetOpened, bool());
96 MOCK_CONST_METHOD0(GetLastReason, InterruptReason()); 96 MOCK_CONST_METHOD0(GetLastReason, InterruptReason());
97 MOCK_CONST_METHOD0(GetPersistentStoreInfo, DownloadPersistentStoreInfo()); 97 MOCK_CONST_METHOD0(GetPersistentStoreInfo, DownloadPersistentStoreInfo());
98 MOCK_CONST_METHOD0(GetStateInfo, DownloadStateInfo()); 98 MOCK_CONST_METHOD0(GetStateInfo, DownloadStateInfo());
99 MOCK_CONST_METHOD0(BrowserContext, content::BrowserContext*());
99 MOCK_CONST_METHOD0(GetTabContents, TabContents*()); 100 MOCK_CONST_METHOD0(GetTabContents, TabContents*());
100 MOCK_CONST_METHOD0(GetTargetFilePath, FilePath()); 101 MOCK_CONST_METHOD0(GetTargetFilePath, FilePath());
101 MOCK_CONST_METHOD0(GetFileNameToReportUser, FilePath()); 102 MOCK_CONST_METHOD0(GetFileNameToReportUser, FilePath());
102 MOCK_CONST_METHOD0(GetUserVerifiedFilePath, FilePath()); 103 MOCK_CONST_METHOD0(GetUserVerifiedFilePath, FilePath());
103 MOCK_CONST_METHOD0(NeedsRename, bool()); 104 MOCK_CONST_METHOD0(NeedsRename, bool());
104 MOCK_METHOD1(OffThreadCancel, void(DownloadFileManager* file_manager)); 105 MOCK_METHOD1(OffThreadCancel, void(DownloadFileManager* file_manager));
105 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 106 MOCK_CONST_METHOD1(DebugString, std::string(bool));
106 MOCK_METHOD0(MockDownloadOpenForTesting, void()); 107 MOCK_METHOD0(MockDownloadOpenForTesting, void());
107 }; 108 };
108 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_H_ 109 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698