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

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

Issue 16994004: Remove DownloadItem::Is*() in favor of DI::GetState() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@di-getstate-2
Patch Set: Created 7 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 (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/callback.h" 8 #include "base/callback.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "content/public/browser/download_id.h" 10 #include "content/public/browser/download_id.h"
(...skipping 21 matching lines...) Expand all
32 MOCK_METHOD0(OpenDownload, void()); 32 MOCK_METHOD0(OpenDownload, void());
33 MOCK_METHOD0(ShowDownloadInShell, void()); 33 MOCK_METHOD0(ShowDownloadInShell, void());
34 MOCK_CONST_METHOD0(GetId, int32()); 34 MOCK_CONST_METHOD0(GetId, int32());
35 MOCK_CONST_METHOD0(GetGlobalId, DownloadId()); 35 MOCK_CONST_METHOD0(GetGlobalId, DownloadId());
36 MOCK_CONST_METHOD0(GetState, DownloadState()); 36 MOCK_CONST_METHOD0(GetState, DownloadState());
37 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason()); 37 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason());
38 MOCK_CONST_METHOD0(IsPaused, bool()); 38 MOCK_CONST_METHOD0(IsPaused, bool());
39 MOCK_CONST_METHOD0(IsTemporary, bool()); 39 MOCK_CONST_METHOD0(IsTemporary, bool());
40 MOCK_CONST_METHOD0(CanResume, bool()); 40 MOCK_CONST_METHOD0(CanResume, bool());
41 MOCK_CONST_METHOD0(IsDone, bool()); 41 MOCK_CONST_METHOD0(IsDone, bool());
42 MOCK_CONST_METHOD0(IsInProgress, bool());
43 MOCK_CONST_METHOD0(IsCancelled, bool()); 42 MOCK_CONST_METHOD0(IsCancelled, bool());
benjhayden 2013/06/13 19:01:45 Also remove IsCancelled, IsInterrupted, IsComplete
44 MOCK_CONST_METHOD0(IsInterrupted, bool()); 43 MOCK_CONST_METHOD0(IsInterrupted, bool());
45 MOCK_CONST_METHOD0(IsComplete, bool()); 44 MOCK_CONST_METHOD0(IsComplete, bool());
46 MOCK_CONST_METHOD0(GetURL, const GURL&()); 45 MOCK_CONST_METHOD0(GetURL, const GURL&());
47 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); 46 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&());
48 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); 47 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&());
49 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); 48 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&());
50 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); 49 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string());
51 MOCK_CONST_METHOD0(GetContentDisposition, std::string()); 50 MOCK_CONST_METHOD0(GetContentDisposition, std::string());
52 MOCK_CONST_METHOD0(GetMimeType, std::string()); 51 MOCK_CONST_METHOD0(GetMimeType, std::string());
53 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); 52 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string());
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 MOCK_METHOD1(SetOpenWhenComplete, void(bool)); 87 MOCK_METHOD1(SetOpenWhenComplete, void(bool));
89 MOCK_METHOD1(SetIsTemporary, void(bool)); 88 MOCK_METHOD1(SetIsTemporary, void(bool));
90 MOCK_METHOD1(SetOpened, void(bool)); 89 MOCK_METHOD1(SetOpened, void(bool));
91 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); 90 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&));
92 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 91 MOCK_CONST_METHOD1(DebugString, std::string(bool));
93 }; 92 };
94 93
95 } // namespace content 94 } // namespace content
96 95
97 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 96 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
OLDNEW
« content/browser/download/drag_download_file.cc ('K') | « content/public/browser/download_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698