OLD | NEW |
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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 const std::vector<DownloadItem::ReceivedSlice>&()); | 92 const std::vector<DownloadItem::ReceivedSlice>&()); |
93 MOCK_CONST_METHOD0(GetStartTime, base::Time()); | 93 MOCK_CONST_METHOD0(GetStartTime, base::Time()); |
94 MOCK_CONST_METHOD0(GetEndTime, base::Time()); | 94 MOCK_CONST_METHOD0(GetEndTime, base::Time()); |
95 MOCK_METHOD0(CanShowInFolder, bool()); | 95 MOCK_METHOD0(CanShowInFolder, bool()); |
96 MOCK_METHOD0(CanOpenDownload, bool()); | 96 MOCK_METHOD0(CanOpenDownload, bool()); |
97 MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool()); | 97 MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool()); |
98 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool()); | 98 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool()); |
99 MOCK_METHOD0(GetAutoOpened, bool()); | 99 MOCK_METHOD0(GetAutoOpened, bool()); |
100 MOCK_CONST_METHOD0(GetOpened, bool()); | 100 MOCK_CONST_METHOD0(GetOpened, bool()); |
101 MOCK_CONST_METHOD0(GetLastAccessTime, base::Time()); | 101 MOCK_CONST_METHOD0(GetLastAccessTime, base::Time()); |
| 102 MOCK_CONST_METHOD0(IsVisible, bool()); |
102 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); | 103 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); |
103 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); | 104 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); |
104 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); | 105 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); |
105 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); | 106 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); |
106 MOCK_METHOD1(SetOpened, void(bool)); | 107 MOCK_METHOD1(SetOpened, void(bool)); |
107 MOCK_METHOD1(SetLastAccessTime, void(base::Time)); | 108 MOCK_METHOD1(SetLastAccessTime, void(base::Time)); |
108 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); | 109 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); |
109 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 110 MOCK_CONST_METHOD1(DebugString, std::string(bool)); |
110 | 111 |
111 private: | 112 private: |
112 base::ObserverList<Observer> observers_; | 113 base::ObserverList<Observer> observers_; |
113 }; | 114 }; |
114 | 115 |
115 } // namespace content | 116 } // namespace content |
116 | 117 |
117 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 118 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ |
OLD | NEW |