| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 MOCK_CONST_METHOD0(GetState, DownloadState()); | 50 MOCK_CONST_METHOD0(GetState, DownloadState()); |
| 51 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason()); | 51 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason()); |
| 52 MOCK_CONST_METHOD0(IsPaused, bool()); | 52 MOCK_CONST_METHOD0(IsPaused, bool()); |
| 53 MOCK_CONST_METHOD0(IsTemporary, bool()); | 53 MOCK_CONST_METHOD0(IsTemporary, bool()); |
| 54 MOCK_CONST_METHOD0(CanResume, bool()); | 54 MOCK_CONST_METHOD0(CanResume, bool()); |
| 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(GetTabUrl, const GURL&()); | 61 MOCK_CONST_METHOD0(GetTabUrl, const GURL&()); |
| 61 MOCK_CONST_METHOD0(GetTabReferrerUrl, const GURL&()); | 62 MOCK_CONST_METHOD0(GetTabReferrerUrl, const GURL&()); |
| 62 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); | 63 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); |
| 63 MOCK_CONST_METHOD0(GetContentDisposition, std::string()); | 64 MOCK_CONST_METHOD0(GetContentDisposition, std::string()); |
| 64 MOCK_CONST_METHOD0(GetMimeType, std::string()); | 65 MOCK_CONST_METHOD0(GetMimeType, std::string()); |
| 65 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); | 66 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); |
| 66 MOCK_CONST_METHOD0(GetReferrerCharset, std::string()); | 67 MOCK_CONST_METHOD0(GetReferrerCharset, std::string()); |
| 67 MOCK_CONST_METHOD0(GetRemoteAddress, std::string()); | 68 MOCK_CONST_METHOD0(GetRemoteAddress, std::string()); |
| 68 MOCK_CONST_METHOD0(HasUserGesture, bool()); | 69 MOCK_CONST_METHOD0(HasUserGesture, bool()); |
| 69 MOCK_CONST_METHOD0(GetTransitionType, ui::PageTransition()); | 70 MOCK_CONST_METHOD0(GetTransitionType, ui::PageTransition()); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); | 105 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); |
| 105 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 106 MOCK_CONST_METHOD1(DebugString, std::string(bool)); |
| 106 | 107 |
| 107 private: | 108 private: |
| 108 base::ObserverList<Observer> observers_; | 109 base::ObserverList<Observer> observers_; |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace content | 112 } // namespace content |
| 112 | 113 |
| 113 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 114 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ |
| OLD | NEW |