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

Unified Diff: content/public/test/mock_download_item.h

Issue 10704052: Download filename determination refactor (3/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with r148594 to and resolve conflicts with r148576 Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/download_manager_delegate.cc ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/mock_download_item.h
diff --git a/content/public/test/mock_download_item.h b/content/public/test/mock_download_item.h
index ee25d5ef225603e091e2dfb5d033c3d302a3d081..ca66bf24f9196d0c73dd14f4c23260c9a785f85e 100644
--- a/content/public/test/mock_download_item.h
+++ b/content/public/test/mock_download_item.h
@@ -14,12 +14,12 @@
namespace content {
-class MockDownloadItem : public content::DownloadItem {
+class MockDownloadItem : public DownloadItem {
public:
MockDownloadItem();
virtual ~MockDownloadItem();
- MOCK_METHOD1(AddObserver, void(content::DownloadItem::Observer*));
- MOCK_METHOD1(RemoveObserver, void(content::DownloadItem::Observer*));
+ MOCK_METHOD1(AddObserver, void(DownloadItem::Observer*));
+ MOCK_METHOD1(RemoveObserver, void(DownloadItem::Observer*));
MOCK_METHOD0(UpdateObservers, void());
MOCK_METHOD0(CanShowInFolder, bool());
MOCK_METHOD0(CanOpenDownload, bool());
@@ -46,13 +46,7 @@ class MockDownloadItem : public content::DownloadItem {
MOCK_CONST_METHOD0(GetFullPath, const FilePath&());
MOCK_CONST_METHOD0(GetTargetFilePath, const FilePath&());
MOCK_CONST_METHOD0(GetTargetDisposition, TargetDisposition());
- MOCK_METHOD3(OnTargetPathDetermined, void(const FilePath&,
- TargetDisposition,
- content::DownloadDangerType));
- MOCK_METHOD1(OnTargetPathSelected, void(const FilePath&));
- MOCK_METHOD1(OnContentCheckCompleted, void(content::DownloadDangerType));
- MOCK_METHOD2(OnIntermediatePathDetermined, void(DownloadFileManager*,
- const FilePath&));
+ MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType));
MOCK_CONST_METHOD0(GetState, DownloadState());
MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&());
MOCK_CONST_METHOD0(GetURL, const GURL&());
@@ -69,24 +63,24 @@ class MockDownloadItem : public content::DownloadItem {
MOCK_CONST_METHOD0(GetHashState, const std::string&());
MOCK_CONST_METHOD0(GetHash, const std::string&());
MOCK_CONST_METHOD0(GetId, int32());
- MOCK_CONST_METHOD0(GetGlobalId, content::DownloadId());
+ MOCK_CONST_METHOD0(GetGlobalId, DownloadId());
MOCK_CONST_METHOD0(GetStartTime, base::Time());
MOCK_CONST_METHOD0(GetEndTime, base::Time());
MOCK_CONST_METHOD0(IsPersisted, bool());
MOCK_CONST_METHOD0(GetDbHandle, int64());
- MOCK_METHOD0(GetDownloadManager, content::DownloadManager*());
+ MOCK_METHOD0(GetDownloadManager, DownloadManager*());
MOCK_CONST_METHOD0(IsPaused, bool());
MOCK_CONST_METHOD0(GetOpenWhenComplete, bool());
MOCK_METHOD1(SetOpenWhenComplete, void(bool));
MOCK_CONST_METHOD0(GetFileExternallyRemoved, bool());
MOCK_CONST_METHOD0(GetSafetyState, SafetyState());
- MOCK_CONST_METHOD0(GetDangerType, content::DownloadDangerType());
+ MOCK_CONST_METHOD0(GetDangerType, DownloadDangerType());
MOCK_CONST_METHOD0(IsDangerous, bool());
MOCK_METHOD0(GetAutoOpened, bool());
MOCK_CONST_METHOD0(GetTargetName, FilePath());
MOCK_CONST_METHOD0(GetForcedFilePath, const FilePath&());
MOCK_CONST_METHOD0(HasUserGesture, bool());
- MOCK_CONST_METHOD0(GetTransitionType, content::PageTransition());
+ MOCK_CONST_METHOD0(GetTransitionType, PageTransition());
MOCK_CONST_METHOD0(IsOtr, bool());
MOCK_CONST_METHOD0(IsTemporary, bool());
MOCK_METHOD1(SetIsTemporary, void(bool));
@@ -96,8 +90,8 @@ class MockDownloadItem : public content::DownloadItem {
MOCK_CONST_METHOD0(GetETag, const std::string&());
MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason());
MOCK_CONST_METHOD0(GetPersistentStoreInfo, DownloadPersistentStoreInfo());
- MOCK_CONST_METHOD0(GetBrowserContext, content::BrowserContext*());
- MOCK_CONST_METHOD0(GetWebContents, content::WebContents*());
+ MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*());
+ MOCK_CONST_METHOD0(GetWebContents, WebContents*());
MOCK_CONST_METHOD0(GetFileNameToReportUser, FilePath());
MOCK_METHOD1(SetDisplayName, void(const FilePath&));
MOCK_CONST_METHOD0(GetUserVerifiedFilePath, FilePath());
« no previous file with comments | « content/public/browser/download_manager_delegate.cc ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698