OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_H_ |
6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); | 58 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); |
59 MOCK_METHOD1(SetTotalBytes, void(int64)); | 59 MOCK_METHOD1(SetTotalBytes, void(int64)); |
60 MOCK_CONST_METHOD0(GetURL, const GURL&()); | 60 MOCK_CONST_METHOD0(GetURL, const GURL&()); |
61 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); | 61 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); |
62 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); | 62 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); |
63 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); | 63 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); |
64 MOCK_CONST_METHOD0(GetContentDisposition, std::string()); | 64 MOCK_CONST_METHOD0(GetContentDisposition, std::string()); |
65 MOCK_CONST_METHOD0(GetMimeType, std::string()); | 65 MOCK_CONST_METHOD0(GetMimeType, std::string()); |
66 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); | 66 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); |
67 MOCK_CONST_METHOD0(GetReferrerCharset, std::string()); | 67 MOCK_CONST_METHOD0(GetReferrerCharset, std::string()); |
| 68 MOCK_CONST_METHOD0(GetRemoteAddress, std::string()); |
68 MOCK_CONST_METHOD0(GetTotalBytes, int64()); | 69 MOCK_CONST_METHOD0(GetTotalBytes, int64()); |
69 MOCK_CONST_METHOD0(GetReceivedBytes, int64()); | 70 MOCK_CONST_METHOD0(GetReceivedBytes, int64()); |
70 MOCK_CONST_METHOD0(GetHash, const std::string&()); | 71 MOCK_CONST_METHOD0(GetHash, const std::string&()); |
71 MOCK_CONST_METHOD0(GetId, int32()); | 72 MOCK_CONST_METHOD0(GetId, int32()); |
72 MOCK_CONST_METHOD0(GetGlobalId, DownloadId()); | 73 MOCK_CONST_METHOD0(GetGlobalId, DownloadId()); |
73 MOCK_CONST_METHOD0(GetStartTime, base::Time()); | 74 MOCK_CONST_METHOD0(GetStartTime, base::Time()); |
74 MOCK_CONST_METHOD0(GetEndTime, base::Time()); | 75 MOCK_CONST_METHOD0(GetEndTime, base::Time()); |
75 MOCK_METHOD1(SetDbHandle, void(int64)); | 76 MOCK_METHOD1(SetDbHandle, void(int64)); |
76 MOCK_CONST_METHOD0(GetDbHandle, int64()); | 77 MOCK_CONST_METHOD0(GetDbHandle, int64()); |
77 MOCK_METHOD0(GetDownloadManager, DownloadManager*()); | 78 MOCK_METHOD0(GetDownloadManager, DownloadManager*()); |
(...skipping 21 matching lines...) Expand all Loading... |
99 MOCK_CONST_METHOD0(GetTabContents, TabContents*()); | 100 MOCK_CONST_METHOD0(GetTabContents, TabContents*()); |
100 MOCK_CONST_METHOD0(GetTargetFilePath, FilePath()); | 101 MOCK_CONST_METHOD0(GetTargetFilePath, FilePath()); |
101 MOCK_CONST_METHOD0(GetFileNameToReportUser, FilePath()); | 102 MOCK_CONST_METHOD0(GetFileNameToReportUser, FilePath()); |
102 MOCK_CONST_METHOD0(GetUserVerifiedFilePath, FilePath()); | 103 MOCK_CONST_METHOD0(GetUserVerifiedFilePath, FilePath()); |
103 MOCK_CONST_METHOD0(NeedsRename, bool()); | 104 MOCK_CONST_METHOD0(NeedsRename, bool()); |
104 MOCK_METHOD1(OffThreadCancel, void(DownloadFileManager* file_manager)); | 105 MOCK_METHOD1(OffThreadCancel, void(DownloadFileManager* file_manager)); |
105 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 106 MOCK_CONST_METHOD1(DebugString, std::string(bool)); |
106 MOCK_METHOD0(MockDownloadOpenForTesting, void()); | 107 MOCK_METHOD0(MockDownloadOpenForTesting, void()); |
107 }; | 108 }; |
108 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_H_ | 109 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_H_ |
OLD | NEW |