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

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

Issue 16924017: A few minor changes to the chrome.downloads extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r214130 Created 7 years, 4 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_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/public/browser/download_interrupt_reasons.h" 10 #include "content/public/browser/download_interrupt_reasons.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 MOCK_CONST_METHOD0(GetETag, const std::string&()); 53 MOCK_CONST_METHOD0(GetETag, const std::string&());
54 MOCK_CONST_METHOD0(IsSavePackageDownload, bool()); 54 MOCK_CONST_METHOD0(IsSavePackageDownload, bool());
55 MOCK_CONST_METHOD0(GetFullPath, const base::FilePath&()); 55 MOCK_CONST_METHOD0(GetFullPath, const base::FilePath&());
56 MOCK_CONST_METHOD0(GetTargetFilePath, const base::FilePath&()); 56 MOCK_CONST_METHOD0(GetTargetFilePath, const base::FilePath&());
57 MOCK_CONST_METHOD0(GetForcedFilePath, const base::FilePath&()); 57 MOCK_CONST_METHOD0(GetForcedFilePath, const base::FilePath&());
58 MOCK_CONST_METHOD0(GetFileNameToReportUser, base::FilePath()); 58 MOCK_CONST_METHOD0(GetFileNameToReportUser, base::FilePath());
59 MOCK_CONST_METHOD0(GetTargetDisposition, TargetDisposition()); 59 MOCK_CONST_METHOD0(GetTargetDisposition, TargetDisposition());
60 MOCK_CONST_METHOD0(GetHash, const std::string&()); 60 MOCK_CONST_METHOD0(GetHash, const std::string&());
61 MOCK_CONST_METHOD0(GetHashState, const std::string&()); 61 MOCK_CONST_METHOD0(GetHashState, const std::string&());
62 MOCK_CONST_METHOD0(GetFileExternallyRemoved, bool()); 62 MOCK_CONST_METHOD0(GetFileExternallyRemoved, bool());
63 MOCK_METHOD0(DeleteFile, void());
63 MOCK_CONST_METHOD0(IsDangerous, bool()); 64 MOCK_CONST_METHOD0(IsDangerous, bool());
64 MOCK_CONST_METHOD0(GetDangerType, DownloadDangerType()); 65 MOCK_CONST_METHOD0(GetDangerType, DownloadDangerType());
65 MOCK_CONST_METHOD1(TimeRemaining, bool(base::TimeDelta*)); 66 MOCK_CONST_METHOD1(TimeRemaining, bool(base::TimeDelta*));
66 MOCK_CONST_METHOD0(CurrentSpeed, int64()); 67 MOCK_CONST_METHOD0(CurrentSpeed, int64());
67 MOCK_CONST_METHOD0(PercentComplete, int()); 68 MOCK_CONST_METHOD0(PercentComplete, int());
68 MOCK_CONST_METHOD0(AllDataSaved, bool()); 69 MOCK_CONST_METHOD0(AllDataSaved, bool());
69 MOCK_CONST_METHOD0(GetTotalBytes, int64()); 70 MOCK_CONST_METHOD0(GetTotalBytes, int64());
70 MOCK_CONST_METHOD0(GetReceivedBytes, int64()); 71 MOCK_CONST_METHOD0(GetReceivedBytes, int64());
71 MOCK_CONST_METHOD0(GetStartTime, base::Time()); 72 MOCK_CONST_METHOD0(GetStartTime, base::Time());
72 MOCK_CONST_METHOD0(GetEndTime, base::Time()); 73 MOCK_CONST_METHOD0(GetEndTime, base::Time());
73 MOCK_METHOD0(CanShowInFolder, bool()); 74 MOCK_METHOD0(CanShowInFolder, bool());
74 MOCK_METHOD0(CanOpenDownload, bool()); 75 MOCK_METHOD0(CanOpenDownload, bool());
75 MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool()); 76 MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool());
76 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool()); 77 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool());
77 MOCK_METHOD0(GetAutoOpened, bool()); 78 MOCK_METHOD0(GetAutoOpened, bool());
78 MOCK_CONST_METHOD0(GetOpened, bool()); 79 MOCK_CONST_METHOD0(GetOpened, bool());
79 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); 80 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*());
80 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); 81 MOCK_CONST_METHOD0(GetWebContents, WebContents*());
81 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); 82 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType));
82 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); 83 MOCK_METHOD1(SetOpenWhenComplete, void(bool));
83 MOCK_METHOD1(SetIsTemporary, void(bool)); 84 MOCK_METHOD1(SetIsTemporary, void(bool));
84 MOCK_METHOD1(SetOpened, void(bool)); 85 MOCK_METHOD1(SetOpened, void(bool));
85 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); 86 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&));
86 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 87 MOCK_CONST_METHOD1(DebugString, std::string(bool));
87 }; 88 };
88 89
89 } // namespace content 90 } // namespace content
90 91
91 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 92 #endif // CONTENT_PUBLIC_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