| OLD | NEW |
| 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 Loading... |
| 44 void(const base::FilePath& full_path, | 44 void(const base::FilePath& full_path, |
| 45 const std::string& client_guid, | 45 const std::string& client_guid, |
| 46 const GURL& source_url, | 46 const GURL& source_url, |
| 47 const GURL& referrer_url, | 47 const GURL& referrer_url, |
| 48 const RenameCompletionCallback& callback)); | 48 const RenameCompletionCallback& callback)); |
| 49 MOCK_METHOD0(Detach, void()); | 49 MOCK_METHOD0(Detach, void()); |
| 50 MOCK_METHOD0(Cancel, void()); | 50 MOCK_METHOD0(Cancel, void()); |
| 51 MOCK_METHOD0(Finish, void()); | 51 MOCK_METHOD0(Finish, void()); |
| 52 MOCK_CONST_METHOD0(FullPath, const base::FilePath&()); | 52 MOCK_CONST_METHOD0(FullPath, const base::FilePath&()); |
| 53 MOCK_CONST_METHOD0(InProgress, bool()); | 53 MOCK_CONST_METHOD0(InProgress, bool()); |
| 54 MOCK_METHOD0(WasPaused, void()); |
| 54 MOCK_CONST_METHOD0(BytesSoFar, int64_t()); | 55 MOCK_CONST_METHOD0(BytesSoFar, int64_t()); |
| 55 MOCK_CONST_METHOD0(CurrentSpeed, int64_t()); | 56 MOCK_CONST_METHOD0(CurrentSpeed, int64_t()); |
| 56 MOCK_METHOD1(GetHash, bool(std::string* hash)); | 57 MOCK_METHOD1(GetHash, bool(std::string* hash)); |
| 57 MOCK_METHOD0(SendUpdate, void()); | 58 MOCK_METHOD0(SendUpdate, void()); |
| 58 MOCK_CONST_METHOD0(Id, int()); | 59 MOCK_CONST_METHOD0(Id, int()); |
| 59 MOCK_METHOD0(GetDownloadManager, DownloadManager*()); | 60 MOCK_METHOD0(GetDownloadManager, DownloadManager*()); |
| 60 MOCK_CONST_METHOD0(DebugString, std::string()); | 61 MOCK_CONST_METHOD0(DebugString, std::string()); |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 } // namespace content | 64 } // namespace content |
| 64 | 65 |
| 65 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ | 66 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ |
| OLD | NEW |