| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 MOCK_CONST_METHOD0(IsInProgress, bool()); | 48 MOCK_CONST_METHOD0(IsInProgress, bool()); |
| 49 MOCK_CONST_METHOD0(IsCancelled, bool()); | 49 MOCK_CONST_METHOD0(IsCancelled, bool()); |
| 50 MOCK_CONST_METHOD0(IsInterrupted, bool()); | 50 MOCK_CONST_METHOD0(IsInterrupted, bool()); |
| 51 MOCK_CONST_METHOD0(IsComplete, bool()); | 51 MOCK_CONST_METHOD0(IsComplete, bool()); |
| 52 MOCK_CONST_METHOD0(GetFullPath, const FilePath&()); | 52 MOCK_CONST_METHOD0(GetFullPath, const FilePath&()); |
| 53 MOCK_CONST_METHOD0(GetTargetFilePath, const FilePath&()); | 53 MOCK_CONST_METHOD0(GetTargetFilePath, const FilePath&()); |
| 54 MOCK_CONST_METHOD0(GetTargetDisposition, TargetDisposition()); | 54 MOCK_CONST_METHOD0(GetTargetDisposition, TargetDisposition()); |
| 55 MOCK_METHOD3(OnTargetPathDetermined, void(const FilePath&, | 55 MOCK_METHOD3(OnTargetPathDetermined, void(const FilePath&, |
| 56 TargetDisposition, | 56 TargetDisposition, |
| 57 content::DownloadDangerType)); | 57 content::DownloadDangerType)); |
| 58 MOCK_METHOD1(OnTargetPathSelected, void(const FilePath&)); | |
| 59 MOCK_METHOD1(OnContentCheckCompleted, void(content::DownloadDangerType)); | 58 MOCK_METHOD1(OnContentCheckCompleted, void(content::DownloadDangerType)); |
| 60 MOCK_METHOD2(OnIntermediatePathDetermined, void(DownloadFileManager*, | 59 MOCK_METHOD2(OnIntermediatePathDetermined, void(DownloadFileManager*, |
| 61 const FilePath&)); | 60 const FilePath&)); |
| 62 MOCK_CONST_METHOD0(GetState, DownloadState()); | 61 MOCK_CONST_METHOD0(GetState, DownloadState()); |
| 63 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); | 62 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); |
| 64 MOCK_METHOD1(SetTotalBytes, void(int64)); | 63 MOCK_METHOD1(SetTotalBytes, void(int64)); |
| 65 MOCK_CONST_METHOD0(GetURL, const GURL&()); | 64 MOCK_CONST_METHOD0(GetURL, const GURL&()); |
| 66 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); | 65 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); |
| 67 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); | 66 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); |
| 68 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); | 67 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 113 MOCK_CONST_METHOD1(DebugString, std::string(bool)); |
| 115 MOCK_METHOD0(MockDownloadOpenForTesting, void()); | 114 MOCK_METHOD0(MockDownloadOpenForTesting, void()); |
| 116 MOCK_METHOD1(GetExternalData, ExternalData*(const void*)); | 115 MOCK_METHOD1(GetExternalData, ExternalData*(const void*)); |
| 117 MOCK_CONST_METHOD1(GetExternalData, const ExternalData*(const void*)); | 116 MOCK_CONST_METHOD1(GetExternalData, const ExternalData*(const void*)); |
| 118 MOCK_METHOD2(SetExternalData, void(const void*, ExternalData*)); | 117 MOCK_METHOD2(SetExternalData, void(const void*, ExternalData*)); |
| 119 }; | 118 }; |
| 120 | 119 |
| 121 } // namespace content | 120 } // namespace content |
| 122 | 121 |
| 123 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 122 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ |
| OLD | NEW |