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

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

Issue 10831302: Download resumption - Preliminary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed signed/unsigned compare issue. Created 8 years 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/common/content_switches.cc ('k') | content/public/test/mock_download_manager.h » ('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 "base/time.h" 8 #include "base/time.h"
9 #include "content/public/browser/download_id.h" 9 #include "content/public/browser/download_id.h"
10 #include "content/public/browser/download_interrupt_reasons.h" 10 #include "content/public/browser/download_interrupt_reasons.h"
(...skipping 16 matching lines...) Expand all
27 MOCK_METHOD1(Cancel, void(bool)); 27 MOCK_METHOD1(Cancel, void(bool));
28 MOCK_METHOD1(Delete, void(DeleteReason)); 28 MOCK_METHOD1(Delete, void(DeleteReason));
29 MOCK_METHOD0(Remove, void()); 29 MOCK_METHOD0(Remove, void());
30 MOCK_METHOD0(OpenDownload, void()); 30 MOCK_METHOD0(OpenDownload, void());
31 MOCK_METHOD0(ShowDownloadInShell, void()); 31 MOCK_METHOD0(ShowDownloadInShell, void());
32 MOCK_CONST_METHOD0(GetId, int32()); 32 MOCK_CONST_METHOD0(GetId, int32());
33 MOCK_CONST_METHOD0(GetGlobalId, DownloadId()); 33 MOCK_CONST_METHOD0(GetGlobalId, DownloadId());
34 MOCK_CONST_METHOD0(GetState, DownloadState()); 34 MOCK_CONST_METHOD0(GetState, DownloadState());
35 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason()); 35 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason());
36 MOCK_CONST_METHOD0(IsPaused, bool()); 36 MOCK_CONST_METHOD0(IsPaused, bool());
37 MOCK_CONST_METHOD0(CanResumeInterrupted, bool());
37 MOCK_CONST_METHOD0(IsTemporary, bool()); 38 MOCK_CONST_METHOD0(IsTemporary, bool());
38 MOCK_CONST_METHOD0(IsPartialDownload, bool()); 39 MOCK_CONST_METHOD0(IsPartialDownload, bool());
39 MOCK_CONST_METHOD0(IsInProgress, bool()); 40 MOCK_CONST_METHOD0(IsInProgress, bool());
40 MOCK_CONST_METHOD0(IsCancelled, bool()); 41 MOCK_CONST_METHOD0(IsCancelled, bool());
41 MOCK_CONST_METHOD0(IsInterrupted, bool()); 42 MOCK_CONST_METHOD0(IsInterrupted, bool());
42 MOCK_CONST_METHOD0(IsComplete, bool()); 43 MOCK_CONST_METHOD0(IsComplete, bool());
43 MOCK_CONST_METHOD0(GetURL, const GURL&()); 44 MOCK_CONST_METHOD0(GetURL, const GURL&());
44 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); 45 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&());
45 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); 46 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&());
46 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); 47 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&());
(...skipping 23 matching lines...) Expand all
70 MOCK_CONST_METHOD1(TimeRemaining, bool(base::TimeDelta*)); 71 MOCK_CONST_METHOD1(TimeRemaining, bool(base::TimeDelta*));
71 MOCK_CONST_METHOD0(CurrentSpeed, int64()); 72 MOCK_CONST_METHOD0(CurrentSpeed, int64());
72 MOCK_CONST_METHOD0(PercentComplete, int()); 73 MOCK_CONST_METHOD0(PercentComplete, int());
73 MOCK_CONST_METHOD0(AllDataSaved, bool()); 74 MOCK_CONST_METHOD0(AllDataSaved, bool());
74 MOCK_CONST_METHOD0(GetTotalBytes, int64()); 75 MOCK_CONST_METHOD0(GetTotalBytes, int64());
75 MOCK_CONST_METHOD0(GetReceivedBytes, int64()); 76 MOCK_CONST_METHOD0(GetReceivedBytes, int64());
76 MOCK_CONST_METHOD0(GetStartTime, base::Time()); 77 MOCK_CONST_METHOD0(GetStartTime, base::Time());
77 MOCK_CONST_METHOD0(GetEndTime, base::Time()); 78 MOCK_CONST_METHOD0(GetEndTime, base::Time());
78 MOCK_METHOD0(CanShowInFolder, bool()); 79 MOCK_METHOD0(CanShowInFolder, bool());
79 MOCK_METHOD0(CanOpenDownload, bool()); 80 MOCK_METHOD0(CanOpenDownload, bool());
81 MOCK_CONST_METHOD0(CanResumeDownload, bool());
80 MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool()); 82 MOCK_METHOD0(ShouldOpenFileBasedOnExtension, bool());
81 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool()); 83 MOCK_CONST_METHOD0(GetOpenWhenComplete, bool());
82 MOCK_METHOD0(GetAutoOpened, bool()); 84 MOCK_METHOD0(GetAutoOpened, bool());
83 MOCK_CONST_METHOD0(GetOpened, bool()); 85 MOCK_CONST_METHOD0(GetOpened, bool());
84 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*()); 86 MOCK_CONST_METHOD0(GetBrowserContext, BrowserContext*());
85 MOCK_CONST_METHOD0(GetWebContents, WebContents*()); 87 MOCK_CONST_METHOD0(GetWebContents, WebContents*());
86 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType)); 88 MOCK_METHOD1(OnContentCheckCompleted, void(DownloadDangerType));
87 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); 89 MOCK_METHOD1(SetOpenWhenComplete, void(bool));
88 MOCK_METHOD1(SetIsTemporary, void(bool)); 90 MOCK_METHOD1(SetIsTemporary, void(bool));
89 MOCK_METHOD1(SetOpened, void(bool)); 91 MOCK_METHOD1(SetOpened, void(bool));
90 MOCK_METHOD1(SetDisplayName, void(const FilePath&)); 92 MOCK_METHOD1(SetDisplayName, void(const FilePath&));
93 MOCK_CONST_METHOD0(GetBoundNetLog, const net::BoundNetLog&());
91 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 94 MOCK_CONST_METHOD1(DebugString, std::string(bool));
92 MOCK_METHOD0(MockDownloadOpenForTesting, void()); 95 MOCK_METHOD0(MockDownloadOpenForTesting, void());
93 }; 96 };
94 97
95 } // namespace content 98 } // namespace content
96 99
97 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 100 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698