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

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

Issue 2439533002: Download Feedback Service should upload all eligible downloads (Closed)
Patch Set: make windows bots happy Created 4 years, 1 month 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
« no previous file with comments | « content/public/browser/download_item.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Dispatches an OnDownloadOpened() notification to observers. 32 // Dispatches an OnDownloadOpened() notification to observers.
33 void NotifyObserversDownloadOpened(); 33 void NotifyObserversDownloadOpened();
34 // Dispatches an OnDownloadRemoved() notification to observers. 34 // Dispatches an OnDownloadRemoved() notification to observers.
35 void NotifyObserversDownloadRemoved(); 35 void NotifyObserversDownloadRemoved();
36 // Dispatches an OnDownloadUpdated() notification to observers. 36 // Dispatches an OnDownloadUpdated() notification to observers.
37 void NotifyObserversDownloadUpdated(); 37 void NotifyObserversDownloadUpdated();
38 38
39 MOCK_METHOD0(UpdateObservers, void()); 39 MOCK_METHOD0(UpdateObservers, void());
40 MOCK_METHOD0(ValidateDangerousDownload, void()); 40 MOCK_METHOD0(ValidateDangerousDownload, void());
41 MOCK_METHOD1(StealDangerousDownload, void(const AcquireFileCallback&)); 41 MOCK_METHOD2(StealDangerousDownload, void(bool, const AcquireFileCallback&));
42 MOCK_METHOD0(Pause, void()); 42 MOCK_METHOD0(Pause, void());
43 MOCK_METHOD0(Resume, void()); 43 MOCK_METHOD0(Resume, void());
44 MOCK_METHOD1(Cancel, void(bool)); 44 MOCK_METHOD1(Cancel, void(bool));
45 MOCK_METHOD0(Remove, void()); 45 MOCK_METHOD0(Remove, void());
46 MOCK_METHOD0(OpenDownload, void()); 46 MOCK_METHOD0(OpenDownload, void());
47 MOCK_METHOD0(ShowDownloadInShell, void()); 47 MOCK_METHOD0(ShowDownloadInShell, void());
48 MOCK_CONST_METHOD0(GetId, uint32_t()); 48 MOCK_CONST_METHOD0(GetId, uint32_t());
49 MOCK_CONST_METHOD0(GetGuid, const std::string&()); 49 MOCK_CONST_METHOD0(GetGuid, const std::string&());
50 MOCK_CONST_METHOD0(GetState, DownloadState()); 50 MOCK_CONST_METHOD0(GetState, DownloadState());
51 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason()); 51 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason());
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); 104 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&));
105 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 105 MOCK_CONST_METHOD1(DebugString, std::string(bool));
106 106
107 private: 107 private:
108 base::ObserverList<Observer> observers_; 108 base::ObserverList<Observer> observers_;
109 }; 109 };
110 110
111 } // namespace content 111 } // namespace content
112 112
113 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 113 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
OLDNEW
« no previous file with comments | « content/public/browser/download_item.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698