Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(608)

Side by Side Diff: content/public/test/mock_download_item.h

Issue 10799005: Replace the DownloadFileManager with direct ownership (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed try job problems. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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&, 49 MOCK_METHOD3(OnTargetPathDetermined, void(const FilePath&,
50 TargetDisposition, 50 TargetDisposition,
51 content::DownloadDangerType)); 51 content::DownloadDangerType));
52 MOCK_METHOD1(OnTargetPathSelected, void(const FilePath&)); 52 MOCK_METHOD1(OnTargetPathSelected, void(const FilePath&));
53 MOCK_METHOD1(OnContentCheckCompleted, void(content::DownloadDangerType)); 53 MOCK_METHOD1(OnContentCheckCompleted, void(content::DownloadDangerType));
54 MOCK_METHOD2(OnIntermediatePathDetermined, void(DownloadFileManager*, 54 MOCK_METHOD1(OnIntermediatePathDetermined, void(const FilePath&));
55 const FilePath&));
56 MOCK_CONST_METHOD0(GetState, DownloadState()); 55 MOCK_CONST_METHOD0(GetState, DownloadState());
57 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); 56 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&());
58 MOCK_CONST_METHOD0(GetURL, const GURL&()); 57 MOCK_CONST_METHOD0(GetURL, const GURL&());
59 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); 58 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&());
60 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); 59 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&());
61 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); 60 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string());
62 MOCK_CONST_METHOD0(GetContentDisposition, std::string()); 61 MOCK_CONST_METHOD0(GetContentDisposition, std::string());
63 MOCK_CONST_METHOD0(GetMimeType, std::string()); 62 MOCK_CONST_METHOD0(GetMimeType, std::string());
64 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); 63 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string());
65 MOCK_CONST_METHOD0(GetReferrerCharset, std::string()); 64 MOCK_CONST_METHOD0(GetReferrerCharset, std::string());
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 103 MOCK_CONST_METHOD1(DebugString, std::string(bool));
105 MOCK_METHOD0(MockDownloadOpenForTesting, void()); 104 MOCK_METHOD0(MockDownloadOpenForTesting, void());
106 MOCK_METHOD1(GetExternalData, ExternalData*(const void*)); 105 MOCK_METHOD1(GetExternalData, ExternalData*(const void*));
107 MOCK_CONST_METHOD1(GetExternalData, const ExternalData*(const void*)); 106 MOCK_CONST_METHOD1(GetExternalData, const ExternalData*(const void*));
108 MOCK_METHOD2(SetExternalData, void(const void*, ExternalData*)); 107 MOCK_METHOD2(SetExternalData, void(const void*, ExternalData*));
109 }; 108 };
110 109
111 } // namespace content 110 } // namespace content
112 111
113 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 112 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698