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

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

Issue 10980002: Mac Web Intents Part 1: Show extension download progress (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added test Created 8 years, 2 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 MOCK_CONST_METHOD0(GetEndTime, base::Time()); 77 MOCK_CONST_METHOD0(GetEndTime, base::Time());
78 MOCK_METHOD0(CanShowInFolder, bool()); 78 MOCK_METHOD0(CanShowInFolder, bool());
79 MOCK_METHOD0(CanOpenDownload, bool()); 79 MOCK_METHOD0(CanOpenDownload, bool());
80 MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool()); 80 MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool());
81 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool()); 81 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool());
82 MOCK_METHOD0(GetAutoOpened, bool()); 82 MOCK_METHOD0(GetAutoOpened, bool());
83 MOCK_CONST_METHOD0(GetOpened, bool()); 83 MOCK_CONST_METHOD0(GetOpened, bool());
84 MOCK_CONST_METHOD0(GetPersistentStoreInfo, DownloadPersistentStoreInfo()); 84 MOCK_CONST_METHOD0(GetPersistentStoreInfo, DownloadPersistentStoreInfo());
85 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); 85 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*());
86 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); 86 MOCK_CONST_METHOD0(GetWebContents, WebContents*());
87 MOCK_METHOD1(SetIsHiddenDownload, void(bool));
88 MOCK_CONST_METHOD0(IsHiddenDownload, bool());
87 MOCK_METHOD1(DelayedDownloadOpened, void(bool)); 89 MOCK_METHOD1(DelayedDownloadOpened, void(bool));
88 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); 90 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType));
89 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); 91 MOCK_METHOD1(SetOpenWhenComplete, void(bool));
90 MOCK_METHOD1(SetIsTemporary, void(bool)); 92 MOCK_METHOD1(SetIsTemporary, void(bool));
91 MOCK_METHOD1(SetOpened, void(bool)); 93 MOCK_METHOD1(SetOpened, void(bool));
92 MOCK_METHOD1(SetDisplayName, void(const FilePath&)); 94 MOCK_METHOD1(SetDisplayName, void(const FilePath&));
93 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 95 MOCK_CONST_METHOD1(DebugString, std::string(bool));
94 MOCK_METHOD0(MockDownloadOpenForTesting, void()); 96 MOCK_METHOD0(MockDownloadOpenForTesting, void());
95 }; 97 };
96 98
97 } // namespace content 99 } // namespace content
98 100
99 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 101 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698