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 "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); | 56 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); |
57 MOCK_CONST_METHOD0(GetTabUrl, const GURL&()); | 57 MOCK_CONST_METHOD0(GetTabUrl, const GURL&()); |
58 MOCK_CONST_METHOD0(GetTabReferrerUrl, const GURL&()); | 58 MOCK_CONST_METHOD0(GetTabReferrerUrl, const GURL&()); |
59 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); | 59 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); |
60 MOCK_CONST_METHOD0(GetContentDisposition, std::string()); | 60 MOCK_CONST_METHOD0(GetContentDisposition, std::string()); |
61 MOCK_CONST_METHOD0(GetMimeType, std::string()); | 61 MOCK_CONST_METHOD0(GetMimeType, std::string()); |
62 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); | 62 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); |
63 MOCK_CONST_METHOD0(GetReferrerCharset, std::string()); | 63 MOCK_CONST_METHOD0(GetReferrerCharset, std::string()); |
64 MOCK_CONST_METHOD0(GetRemoteAddress, std::string()); | 64 MOCK_CONST_METHOD0(GetRemoteAddress, std::string()); |
65 MOCK_CONST_METHOD0(HasUserGesture, bool()); | 65 MOCK_CONST_METHOD0(HasUserGesture, bool()); |
66 MOCK_CONST_METHOD0(GetTransitionType, PageTransition()); | 66 MOCK_CONST_METHOD0(GetTransitionType, ui::PageTransition()); |
67 MOCK_CONST_METHOD0(GetLastModifiedTime, const std::string&()); | 67 MOCK_CONST_METHOD0(GetLastModifiedTime, const std::string&()); |
68 MOCK_CONST_METHOD0(GetETag, const std::string&()); | 68 MOCK_CONST_METHOD0(GetETag, const std::string&()); |
69 MOCK_CONST_METHOD0(IsSavePackageDownload, bool()); | 69 MOCK_CONST_METHOD0(IsSavePackageDownload, bool()); |
70 MOCK_CONST_METHOD0(GetFullPath, const base::FilePath&()); | 70 MOCK_CONST_METHOD0(GetFullPath, const base::FilePath&()); |
71 MOCK_CONST_METHOD0(GetTargetFilePath, const base::FilePath&()); | 71 MOCK_CONST_METHOD0(GetTargetFilePath, const base::FilePath&()); |
72 MOCK_CONST_METHOD0(GetForcedFilePath, const base::FilePath&()); | 72 MOCK_CONST_METHOD0(GetForcedFilePath, const base::FilePath&()); |
73 MOCK_CONST_METHOD0(GetFileNameToReportUser, base::FilePath()); | 73 MOCK_CONST_METHOD0(GetFileNameToReportUser, base::FilePath()); |
74 MOCK_CONST_METHOD0(GetTargetDisposition, TargetDisposition()); | 74 MOCK_CONST_METHOD0(GetTargetDisposition, TargetDisposition()); |
75 MOCK_CONST_METHOD0(GetHash, const std::string&()); | 75 MOCK_CONST_METHOD0(GetHash, const std::string&()); |
76 MOCK_CONST_METHOD0(GetHashState, const std::string&()); | 76 MOCK_CONST_METHOD0(GetHashState, const std::string&()); |
(...skipping 24 matching lines...) Expand all Loading... |
101 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); | 101 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); |
102 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 102 MOCK_CONST_METHOD1(DebugString, std::string(bool)); |
103 | 103 |
104 private: | 104 private: |
105 ObserverList<Observer> observers_; | 105 ObserverList<Observer> observers_; |
106 }; | 106 }; |
107 | 107 |
108 } // namespace content | 108 } // namespace content |
109 | 109 |
110 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 110 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ |
OLD | NEW |