| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 MOCK_CONST_METHOD0(IsDone, bool()); | 55 MOCK_CONST_METHOD0(IsDone, bool()); |
| 56 MOCK_CONST_METHOD0(GetURL, const GURL&()); | 56 MOCK_CONST_METHOD0(GetURL, const GURL&()); |
| 57 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); | 57 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); |
| 58 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); | 58 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); |
| 59 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); | 59 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); |
| 60 MOCK_CONST_METHOD0(GetSiteUrl, const GURL&()); | 60 MOCK_CONST_METHOD0(GetSiteUrl, const GURL&()); |
| 61 MOCK_CONST_METHOD0(GetTabUrl, const GURL&()); | 61 MOCK_CONST_METHOD0(GetTabUrl, const GURL&()); |
| 62 MOCK_CONST_METHOD0(GetTabReferrerUrl, const GURL&()); | 62 MOCK_CONST_METHOD0(GetTabReferrerUrl, 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(GetResponseHeaders, |
| 66 const scoped_refptr<const net::HttpResponseHeaders>&()); |
| 65 MOCK_CONST_METHOD0(GetMimeType, std::string()); | 67 MOCK_CONST_METHOD0(GetMimeType, std::string()); |
| 66 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); | 68 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); |
| 67 MOCK_CONST_METHOD0(GetReferrerCharset, std::string()); | 69 MOCK_CONST_METHOD0(GetReferrerCharset, std::string()); |
| 68 MOCK_CONST_METHOD0(GetRemoteAddress, std::string()); | 70 MOCK_CONST_METHOD0(GetRemoteAddress, std::string()); |
| 69 MOCK_CONST_METHOD0(HasUserGesture, bool()); | 71 MOCK_CONST_METHOD0(HasUserGesture, bool()); |
| 70 MOCK_CONST_METHOD0(GetTransitionType, ui::PageTransition()); | 72 MOCK_CONST_METHOD0(GetTransitionType, ui::PageTransition()); |
| 71 MOCK_CONST_METHOD0(GetLastModifiedTime, const std::string&()); | 73 MOCK_CONST_METHOD0(GetLastModifiedTime, const std::string&()); |
| 72 MOCK_CONST_METHOD0(GetETag, const std::string&()); | 74 MOCK_CONST_METHOD0(GetETag, const std::string&()); |
| 73 MOCK_CONST_METHOD0(IsSavePackageDownload, bool()); | 75 MOCK_CONST_METHOD0(IsSavePackageDownload, bool()); |
| 74 MOCK_CONST_METHOD0(GetFullPath, const base::FilePath&()); | 76 MOCK_CONST_METHOD0(GetFullPath, const base::FilePath&()); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); | 111 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); |
| 110 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 112 MOCK_CONST_METHOD1(DebugString, std::string(bool)); |
| 111 | 113 |
| 112 private: | 114 private: |
| 113 base::ObserverList<Observer> observers_; | 115 base::ObserverList<Observer> observers_; |
| 114 }; | 116 }; |
| 115 | 117 |
| 116 } // namespace content | 118 } // namespace content |
| 117 | 119 |
| 118 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 120 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ |
| OLD | NEW |