Chromium Code Reviews| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 MOCK_CONST_METHOD0(FullPath, base::FilePath()); | 41 MOCK_CONST_METHOD0(FullPath, base::FilePath()); |
| 42 MOCK_CONST_METHOD0(InProgress, bool()); | 42 MOCK_CONST_METHOD0(InProgress, bool()); |
| 43 MOCK_CONST_METHOD0(BytesSoFar, int64()); | 43 MOCK_CONST_METHOD0(BytesSoFar, int64()); |
| 44 MOCK_CONST_METHOD0(CurrentSpeed, int64()); | 44 MOCK_CONST_METHOD0(CurrentSpeed, int64()); |
| 45 MOCK_METHOD1(GetHash, bool(std::string* hash)); | 45 MOCK_METHOD1(GetHash, bool(std::string* hash)); |
| 46 MOCK_METHOD0(GetHashState, std::string()); | 46 MOCK_METHOD0(GetHashState, std::string()); |
| 47 MOCK_METHOD0(SendUpdate, void()); | 47 MOCK_METHOD0(SendUpdate, void()); |
| 48 MOCK_CONST_METHOD0(Id, int()); | 48 MOCK_CONST_METHOD0(Id, int()); |
| 49 MOCK_METHOD0(GetDownloadManager, DownloadManager*()); | 49 MOCK_METHOD0(GetDownloadManager, DownloadManager*()); |
| 50 MOCK_CONST_METHOD0(DebugString, std::string()); | 50 MOCK_CONST_METHOD0(DebugString, std::string()); |
| 51 | |
| 52 void SetClientGuid(const std::string& guid) OVERRIDE { | |
|
asanka
2013/08/08 21:16:01
MOCK_METHOD1(...)
You can later use EXPECT_CALL(.
Greg Billock
2013/08/08 23:55:46
Done.
| |
| 53 guid_ = guid; | |
| 54 } | |
| 55 | |
| 56 std::string client_guid() { return guid_; } | |
| 57 | |
| 58 private: | |
| 59 std::string guid_; | |
| 51 }; | 60 }; |
| 52 | 61 |
| 53 } // namespace content | 62 } // namespace content |
| 54 | 63 |
| 55 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ | 64 #endif // CONTENT_BROWSER_DOWNLOAD_MOCK_DOWNLOAD_FILE_H_ |
| OLD | NEW |