| 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());
|
|
|