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

Side by Side Diff: content/public/test/mock_download_item.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
« no previous file with comments | « content/public/test/fake_download_item.cc ('k') | tools/metrics/histograms/enums.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 <string>
11 #include <vector>
12
10 #include "base/callback.h" 13 #include "base/callback.h"
11 #include "base/observer_list.h" 14 #include "base/observer_list.h"
12 #include "base/time/time.h" 15 #include "base/time/time.h"
13 #include "content/public/browser/download_interrupt_reasons.h" 16 #include "content/public/browser/download_interrupt_reasons.h"
14 #include "content/public/browser/download_item.h" 17 #include "content/public/browser/download_item.h"
15 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
17 #include "url/gurl.h" 20 #include "url/gurl.h"
18 21
19 namespace content { 22 namespace content {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 MOCK_METHOD0(CanShowInFolder, bool()); 100 MOCK_METHOD0(CanShowInFolder, bool());
98 MOCK_METHOD0(CanOpenDownload, bool()); 101 MOCK_METHOD0(CanOpenDownload, bool());
99 MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool()); 102 MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool());
100 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool()); 103 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool());
101 MOCK_METHOD0(GetAutoOpened, bool()); 104 MOCK_METHOD0(GetAutoOpened, bool());
102 MOCK_CONST_METHOD0(GetOpened, bool()); 105 MOCK_CONST_METHOD0(GetOpened, bool());
103 MOCK_CONST_METHOD0(GetLastAccessTime, base::Time()); 106 MOCK_CONST_METHOD0(GetLastAccessTime, base::Time());
104 MOCK_CONST_METHOD0(IsTransient, bool()); 107 MOCK_CONST_METHOD0(IsTransient, bool());
105 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); 108 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*());
106 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); 109 MOCK_CONST_METHOD0(GetWebContents, WebContents*());
107 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); 110 MOCK_METHOD2(OnContentCheckCompleted,
111 void(DownloadDangerType, DownloadInterruptReason));
108 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); 112 MOCK_METHOD1(SetOpenWhenComplete, void(bool));
109 MOCK_METHOD1(SetOpened, void(bool)); 113 MOCK_METHOD1(SetOpened, void(bool));
110 MOCK_METHOD1(SetLastAccessTime, void(base::Time)); 114 MOCK_METHOD1(SetLastAccessTime, void(base::Time));
111 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); 115 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&));
112 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 116 MOCK_CONST_METHOD1(DebugString, std::string(bool));
113 117
114 private: 118 private:
115 base::ObserverList<Observer> observers_; 119 base::ObserverList<Observer> observers_;
116 }; 120 };
117 121
118 } // namespace content 122 } // namespace content
119 123
120 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 124 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
OLDNEW
« no previous file with comments | « content/public/test/fake_download_item.cc ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698