| 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 28 matching lines...) Expand all Loading... |
| 39 MOCK_METHOD0(TogglePause, void()); | 39 MOCK_METHOD0(TogglePause, void()); |
| 40 MOCK_CONST_METHOD1(MatchesQuery, bool(const string16& query)); | 40 MOCK_CONST_METHOD1(MatchesQuery, bool(const string16& query)); |
| 41 MOCK_CONST_METHOD0(IsPartialDownload, bool()); | 41 MOCK_CONST_METHOD0(IsPartialDownload, bool()); |
| 42 MOCK_CONST_METHOD0(IsInProgress, bool()); | 42 MOCK_CONST_METHOD0(IsInProgress, bool()); |
| 43 MOCK_CONST_METHOD0(IsCancelled, bool()); | 43 MOCK_CONST_METHOD0(IsCancelled, bool()); |
| 44 MOCK_CONST_METHOD0(IsInterrupted, bool()); | 44 MOCK_CONST_METHOD0(IsInterrupted, bool()); |
| 45 MOCK_CONST_METHOD0(IsComplete, bool()); | 45 MOCK_CONST_METHOD0(IsComplete, bool()); |
| 46 MOCK_CONST_METHOD0(GetFullPath, const FilePath&()); | 46 MOCK_CONST_METHOD0(GetFullPath, const FilePath&()); |
| 47 MOCK_CONST_METHOD0(GetTargetFilePath, const FilePath&()); | 47 MOCK_CONST_METHOD0(GetTargetFilePath, const FilePath&()); |
| 48 MOCK_CONST_METHOD0(GetTargetDisposition, TargetDisposition()); | 48 MOCK_CONST_METHOD0(GetTargetDisposition, TargetDisposition()); |
| 49 MOCK_METHOD3(OnTargetPathDetermined, void(const FilePath&, | |
| 50 TargetDisposition, | |
| 51 content::DownloadDangerType)); | |
| 52 MOCK_METHOD1(OnTargetPathSelected, void(const FilePath&)); | |
| 53 MOCK_METHOD1(OnContentCheckCompleted, void(content::DownloadDangerType)); | 49 MOCK_METHOD1(OnContentCheckCompleted, void(content::DownloadDangerType)); |
| 54 MOCK_METHOD2(OnIntermediatePathDetermined, void(DownloadFileManager*, | |
| 55 const FilePath&)); | |
| 56 MOCK_CONST_METHOD0(GetState, DownloadState()); | 50 MOCK_CONST_METHOD0(GetState, DownloadState()); |
| 57 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); | 51 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); |
| 58 MOCK_CONST_METHOD0(GetURL, const GURL&()); | 52 MOCK_CONST_METHOD0(GetURL, const GURL&()); |
| 59 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); | 53 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); |
| 60 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); | 54 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); |
| 61 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); | 55 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); |
| 62 MOCK_CONST_METHOD0(GetContentDisposition, std::string()); | 56 MOCK_CONST_METHOD0(GetContentDisposition, std::string()); |
| 63 MOCK_CONST_METHOD0(GetMimeType, std::string()); | 57 MOCK_CONST_METHOD0(GetMimeType, std::string()); |
| 64 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); | 58 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); |
| 65 MOCK_CONST_METHOD0(GetReferrerCharset, std::string()); | 59 MOCK_CONST_METHOD0(GetReferrerCharset, std::string()); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 MOCK_CONST_METHOD1(DebugString, std::string(bool)); | 98 MOCK_CONST_METHOD1(DebugString, std::string(bool)); |
| 105 MOCK_METHOD0(MockDownloadOpenForTesting, void()); | 99 MOCK_METHOD0(MockDownloadOpenForTesting, void()); |
| 106 MOCK_METHOD1(GetExternalData, ExternalData*(const void*)); | 100 MOCK_METHOD1(GetExternalData, ExternalData*(const void*)); |
| 107 MOCK_CONST_METHOD1(GetExternalData, const ExternalData*(const void*)); | 101 MOCK_CONST_METHOD1(GetExternalData, const ExternalData*(const void*)); |
| 108 MOCK_METHOD2(SetExternalData, void(const void*, ExternalData*)); | 102 MOCK_METHOD2(SetExternalData, void(const void*, ExternalData*)); |
| 109 }; | 103 }; |
| 110 | 104 |
| 111 } // namespace content | 105 } // namespace content |
| 112 | 106 |
| 113 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ | 107 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ |
| OLD | NEW |