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

Side by Side Diff: content/browser/download/mock_download_item_impl.h

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Some oups.... :-) Created 3 years, 6 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_IMPL_H_
7 7
8 #include <memory>
9 #include <string>
10 #include <vector>
11
8 #include "base/macros.h" 12 #include "base/macros.h"
9 #include "content/browser/download/download_create_info.h" 13 #include "content/browser/download/download_create_info.h"
10 #include "content/browser/download/download_file.h" 14 #include "content/browser/download/download_file.h"
11 #include "content/browser/download/download_item_impl.h" 15 #include "content/browser/download/download_item_impl.h"
12 #include "content/browser/download/download_request_handle.h" 16 #include "content/browser/download/download_request_handle.h"
13 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
14 18
15 namespace content { 19 namespace content {
16 20
17 class BrowserContext; 21 class BrowserContext;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 MOCK_METHOD0(Remove, void()); 64 MOCK_METHOD0(Remove, void());
61 MOCK_CONST_METHOD1(TimeRemaining, bool(base::TimeDelta*)); 65 MOCK_CONST_METHOD1(TimeRemaining, bool(base::TimeDelta*));
62 MOCK_CONST_METHOD0(CurrentSpeed, int64_t()); 66 MOCK_CONST_METHOD0(CurrentSpeed, int64_t());
63 MOCK_CONST_METHOD0(PercentComplete, int()); 67 MOCK_CONST_METHOD0(PercentComplete, int());
64 MOCK_CONST_METHOD0(AllDataSaved, bool()); 68 MOCK_CONST_METHOD0(AllDataSaved, bool());
65 MOCK_CONST_METHOD1(MatchesQuery, bool(const base::string16& query)); 69 MOCK_CONST_METHOD1(MatchesQuery, bool(const base::string16& query));
66 MOCK_CONST_METHOD0(IsDone, bool()); 70 MOCK_CONST_METHOD0(IsDone, bool());
67 MOCK_CONST_METHOD0(GetFullPath, const base::FilePath&()); 71 MOCK_CONST_METHOD0(GetFullPath, const base::FilePath&());
68 MOCK_CONST_METHOD0(GetTargetFilePath, const base::FilePath&()); 72 MOCK_CONST_METHOD0(GetTargetFilePath, const base::FilePath&());
69 MOCK_CONST_METHOD0(GetTargetDisposition, TargetDisposition()); 73 MOCK_CONST_METHOD0(GetTargetDisposition, TargetDisposition());
70 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); 74 MOCK_METHOD2(OnContentCheckCompleted,
75 void(DownloadDangerType, DownloadInterruptReason));
71 MOCK_CONST_METHOD0(GetState, DownloadState()); 76 MOCK_CONST_METHOD0(GetState, DownloadState());
72 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); 77 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&());
73 MOCK_METHOD1(SetTotalBytes, void(int64_t)); 78 MOCK_METHOD1(SetTotalBytes, void(int64_t));
74 MOCK_CONST_METHOD0(GetURL, const GURL&()); 79 MOCK_CONST_METHOD0(GetURL, const GURL&());
75 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); 80 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&());
76 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); 81 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&());
77 MOCK_CONST_METHOD0(GetTabUrl, const GURL&()); 82 MOCK_CONST_METHOD0(GetTabUrl, const GURL&());
78 MOCK_CONST_METHOD0(GetTabReferrerUrl, const GURL&()); 83 MOCK_CONST_METHOD0(GetTabReferrerUrl, const GURL&());
79 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); 84 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string());
80 MOCK_CONST_METHOD0(GetContentDisposition, std::string()); 85 MOCK_CONST_METHOD0(GetContentDisposition, std::string());
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); 117 MOCK_CONST_METHOD0(GetWebContents, WebContents*());
113 MOCK_CONST_METHOD0(GetFileNameToReportUser, base::FilePath()); 118 MOCK_CONST_METHOD0(GetFileNameToReportUser, base::FilePath());
114 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); 119 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&));
115 MOCK_METHOD0(NotifyRemoved, void()); 120 MOCK_METHOD0(NotifyRemoved, void());
116 // May be called when vlog is on. 121 // May be called when vlog is on.
117 std::string DebugString(bool verbose) const override { return std::string(); } 122 std::string DebugString(bool verbose) const override { return std::string(); }
118 }; 123 };
119 } // namespace content 124 } // namespace content
120 125
121 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_IMPL_H_ 126 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_ITEM_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/public/browser/download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698