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

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

Issue 1924473003: [Downloads] Use the initiating StoragePartition for resumption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo in comment Created 4 years, 7 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 MOCK_CONST_METHOD0(GetState, DownloadState()); 50 MOCK_CONST_METHOD0(GetState, DownloadState());
51 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason()); 51 MOCK_CONST_METHOD0(GetLastReason, DownloadInterruptReason());
52 MOCK_CONST_METHOD0(IsPaused, bool()); 52 MOCK_CONST_METHOD0(IsPaused, bool());
53 MOCK_CONST_METHOD0(IsTemporary, bool()); 53 MOCK_CONST_METHOD0(IsTemporary, bool());
54 MOCK_CONST_METHOD0(CanResume, bool()); 54 MOCK_CONST_METHOD0(CanResume, bool());
55 MOCK_CONST_METHOD0(IsDone, bool()); 55 MOCK_CONST_METHOD0(IsDone, bool());
56 MOCK_CONST_METHOD0(GetURL, const GURL&()); 56 MOCK_CONST_METHOD0(GetURL, const GURL&());
57 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&()); 57 MOCK_CONST_METHOD0(GetUrlChain, const std::vector<GURL>&());
58 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&()); 58 MOCK_CONST_METHOD0(GetOriginalUrl, const GURL&());
59 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&()); 59 MOCK_CONST_METHOD0(GetReferrerUrl, const GURL&());
60 MOCK_CONST_METHOD0(GetSiteUrl, const GURL&());
60 MOCK_CONST_METHOD0(GetTabUrl, const GURL&()); 61 MOCK_CONST_METHOD0(GetTabUrl, const GURL&());
61 MOCK_CONST_METHOD0(GetTabReferrerUrl, const GURL&()); 62 MOCK_CONST_METHOD0(GetTabReferrerUrl, const GURL&());
62 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string()); 63 MOCK_CONST_METHOD0(GetSuggestedFilename, std::string());
63 MOCK_CONST_METHOD0(GetContentDisposition, std::string()); 64 MOCK_CONST_METHOD0(GetContentDisposition, std::string());
64 MOCK_CONST_METHOD0(GetMimeType, std::string()); 65 MOCK_CONST_METHOD0(GetMimeType, std::string());
65 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string()); 66 MOCK_CONST_METHOD0(GetOriginalMimeType, std::string());
66 MOCK_CONST_METHOD0(GetReferrerCharset, std::string()); 67 MOCK_CONST_METHOD0(GetReferrerCharset, std::string());
67 MOCK_CONST_METHOD0(GetRemoteAddress, std::string()); 68 MOCK_CONST_METHOD0(GetRemoteAddress, std::string());
68 MOCK_CONST_METHOD0(HasUserGesture, bool()); 69 MOCK_CONST_METHOD0(HasUserGesture, bool());
69 MOCK_CONST_METHOD0(GetTransitionType, ui::PageTransition()); 70 MOCK_CONST_METHOD0(GetTransitionType, ui::PageTransition());
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&)); 105 MOCK_METHOD1(SetDisplayName, void(const base::FilePath&));
105 MOCK_CONST_METHOD1(DebugString, std::string(bool)); 106 MOCK_CONST_METHOD1(DebugString, std::string(bool));
106 107
107 private: 108 private:
108 base::ObserverList<Observer> observers_; 109 base::ObserverList<Observer> observers_;
109 }; 110 };
110 111
111 } // namespace content 112 } // namespace content
112 113
113 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_ 114 #endif // CONTENT_PUBLIC_TEST_MOCK_DOWNLOAD_ITEM_H_
OLDNEW
« no previous file with comments | « content/public/browser/download_url_parameters.cc ('k') | content/public/test/mock_download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698