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

Side by Side Diff: content/browser/download/mock_download_file.h

Issue 2794683002: set content length limit if half open range request fails (Closed)
Patch Set: new comments Created 3 years, 8 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_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_
6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void(const base::FilePath& full_path, 44 void(const base::FilePath& full_path,
45 const RenameCompletionCallback& callback)); 45 const RenameCompletionCallback& callback));
46 MOCK_METHOD5(RenameAndAnnotate, 46 MOCK_METHOD5(RenameAndAnnotate,
47 void(const base::FilePath& full_path, 47 void(const base::FilePath& full_path,
48 const std::string& client_guid, 48 const std::string& client_guid,
49 const GURL& source_url, 49 const GURL& source_url,
50 const GURL& referrer_url, 50 const GURL& referrer_url,
51 const RenameCompletionCallback& callback)); 51 const RenameCompletionCallback& callback));
52 MOCK_METHOD0(Detach, void()); 52 MOCK_METHOD0(Detach, void());
53 MOCK_METHOD0(Cancel, void()); 53 MOCK_METHOD0(Cancel, void());
54 MOCK_METHOD1(SetPotentialFileLength, void(int64_t length));
54 MOCK_METHOD0(Finish, void()); 55 MOCK_METHOD0(Finish, void());
55 MOCK_CONST_METHOD0(FullPath, const base::FilePath&()); 56 MOCK_CONST_METHOD0(FullPath, const base::FilePath&());
56 MOCK_CONST_METHOD0(InProgress, bool()); 57 MOCK_CONST_METHOD0(InProgress, bool());
57 MOCK_METHOD0(WasPaused, void()); 58 MOCK_METHOD0(WasPaused, void());
58 MOCK_CONST_METHOD0(BytesSoFar, int64_t()); 59 MOCK_CONST_METHOD0(BytesSoFar, int64_t());
59 MOCK_CONST_METHOD0(CurrentSpeed, int64_t()); 60 MOCK_CONST_METHOD0(CurrentSpeed, int64_t());
60 MOCK_METHOD1(GetHash, bool(std::string* hash)); 61 MOCK_METHOD1(GetHash, bool(std::string* hash));
61 MOCK_METHOD0(SendUpdate, void()); 62 MOCK_METHOD0(SendUpdate, void());
62 MOCK_CONST_METHOD0(Id, int()); 63 MOCK_CONST_METHOD0(Id, int());
63 MOCK_METHOD0(GetDownloadManager, DownloadManager*()); 64 MOCK_METHOD0(GetDownloadManager, DownloadManager*());
64 MOCK_CONST_METHOD0(DebugString, std::string()); 65 MOCK_CONST_METHOD0(DebugString, std::string());
65 }; 66 };
66 67
67 } // namespace content 68 } // namespace content
68 69
69 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ 70 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_worker.cc ('k') | content/browser/download/parallel_download_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698