OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_IMPL_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_IMPL_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/browser/download/download_create_info.h" | 9 #include "content/browser/download/download_create_info.h" |
10 #include "content/browser/download/download_file.h" | 10 #include "content/browser/download/download_file.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 MOCK_CONST_METHOD0(GetFileExternallyRemoved, bool()); | 94 MOCK_CONST_METHOD0(GetFileExternallyRemoved, bool()); |
95 MOCK_CONST_METHOD0(GetDangerType, DownloadDangerType()); | 95 MOCK_CONST_METHOD0(GetDangerType, DownloadDangerType()); |
96 MOCK_CONST_METHOD0(IsDangerous, bool()); | 96 MOCK_CONST_METHOD0(IsDangerous, bool()); |
97 MOCK_METHOD0(GetAutoOpened, bool()); | 97 MOCK_METHOD0(GetAutoOpened, bool()); |
98 MOCK_CONST_METHOD0(GetForcedFilePath, const base::FilePath&()); | 98 MOCK_CONST_METHOD0(GetForcedFilePath, const base::FilePath&()); |
99 MOCK_CONST_METHOD0(HasUserGesture, bool()); | 99 MOCK_CONST_METHOD0(HasUserGesture, bool()); |
100 MOCK_CONST_METHOD0(GetTransitionType, ui::PageTransition()); | 100 MOCK_CONST_METHOD0(GetTransitionType, ui::PageTransition()); |
101 MOCK_CONST_METHOD0(IsTemporary, bool()); | 101 MOCK_CONST_METHOD0(IsTemporary, bool()); |
102 MOCK_METHOD1(SetOpened, void(bool)); | 102 MOCK_METHOD1(SetOpened, void(bool)); |
103 MOCK_CONST_METHOD0(GetOpened, bool()); | 103 MOCK_CONST_METHOD0(GetOpened, bool()); |
| 104 MOCK_CONST_METHOD0(GetLastAccessTime, base::Time()); |
104 MOCK_CONST_METHOD0(GetLastModifiedTime, const std::string&()); | 105 MOCK_CONST_METHOD0(GetLastModifiedTime, const std::string&()); |
105 MOCK_CONST_METHOD0(GetETag, const std::string&()); | 106 MOCK_CONST_METHOD0(GetETag, const std::string&()); |
106 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason()); | 107 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason()); |
107 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); | 108 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); |
108 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); | 109 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); |
109 MOCK_CONST_METHOD0(GetFileNameToReportUser, base::FilePath()); | 110 MOCK_CONST_METHOD0(GetFileNameToReportUser, base::FilePath()); |
110 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); | 111 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); |
111 MOCK_METHOD0(NotifyRemoved, void()); | 112 MOCK_METHOD0(NotifyRemoved, void()); |
112 // May be called when vlog is on. | 113 // May be called when vlog is on. |
113 std::string DebugString(bool verbose) const override { return std::string(); } | 114 std::string DebugString(bool verbose) const override { return std::string(); } |
114 }; | 115 }; |
115 } // namespace content | 116 } // namespace content |
116 | 117 |
117 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_IMPL_H_ | 118 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_IMPL_H_ |
OLD | NEW |