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 "content/public/browser/download_id.h" | 8 #include "content/public/browser/download_id.h" |
9 #include "content/public/browser/download_interrupt_reasons.h" | 9 #include "content/public/browser/download_interrupt_reasons.h" |
10 #include "content/public/browser/download_item.h" | 10 #include "content/public/browser/download_item.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 MOCK_CONST_METHOD0(GetETag, const std::string&()); | 90 MOCK_CONST_METHOD0(GetETag, const std::string&()); |
91 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason()); | 91 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason()); |
92 MOCK_CONST_METHOD0(GetPersistentStoreInfo, DownloadPersistentStoreInfo()); | 92 MOCK_CONST_METHOD0(GetPersistentStoreInfo, DownloadPersistentStoreInfo()); |
93 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); | 93 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); |
94 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); | 94 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); |
95 MOCK_CONST_METHOD0(GetFileNameToReportUser, FilePath()); | 95 MOCK_CONST_METHOD0(GetFileNameToReportUser, FilePath()); |
96 MOCK_METHOD1(SetDisplayName, void(const FilePath&)); | 96 MOCK_METHOD1(SetDisplayName, void(const FilePath&)); |
97 MOCK_CONST_METHOD0(GetUserVerifiedFilePath, FilePath()); | 97 MOCK_CONST_METHOD0(GetUserVerifiedFilePath, FilePath()); |
98 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 98 MOCK_CONST_METHOD1(DebugString, std::string(bool)); |
99 MOCK_METHOD0(MockDownloadOpenForTesting, void()); | 99 MOCK_METHOD0(MockDownloadOpenForTesting, void()); |
100 MOCK_METHOD1(GetExternalData, ExternalData*(const void*)); | |
101 MOCK_CONST_METHOD1(GetExternalData, const ExternalData*(const void*)); | |
102 MOCK_METHOD2(SetExternalData, void(const void*, ExternalData*)); | |
103 }; | 100 }; |
104 | 101 |
105 } // namespace content | 102 } // namespace content |
106 | 103 |
107 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 104 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ |
OLD | NEW |