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 // This file contains mocks for classes in drive_service_interface.h | 5 // This file contains mocks for classes in drive_service_interface.h |
6 | 6 |
7 #ifndef CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ | 7 #ifndef CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ |
8 #define CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ | 8 #define CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 const std::string& parent_resource_id, | 107 const std::string& parent_resource_id, |
108 const std::string& title, | 108 const std::string& title, |
109 const InitiateUploadCallback& callback)); | 109 const InitiateUploadCallback& callback)); |
110 MOCK_METHOD6(InitiateUploadExistingFile, | 110 MOCK_METHOD6(InitiateUploadExistingFile, |
111 void(const base::FilePath& drive_file_path, | 111 void(const base::FilePath& drive_file_path, |
112 const std::string& content_type, | 112 const std::string& content_type, |
113 int64 content_length, | 113 int64 content_length, |
114 const std::string& resource_id, | 114 const std::string& resource_id, |
115 const std::string& etag, | 115 const std::string& etag, |
116 const InitiateUploadCallback& callback)); | 116 const InitiateUploadCallback& callback)); |
117 MOCK_METHOD9(ResumeUpload, | 117 MOCK_METHOD10(ResumeUpload, |
118 void(UploadMode upload_mode, | 118 void(UploadMode upload_mode, |
119 const base::FilePath& drive_file_path, | 119 const base::FilePath& drive_file_path, |
120 const GURL& upload_url, | 120 const GURL& upload_url, |
121 int64 start_position, | 121 int64 start_position, |
122 int64 end_position, | 122 int64 end_position, |
123 int64 content_length, | 123 int64 content_length, |
124 const std::string& content_type, | 124 const std::string& content_type, |
125 const scoped_refptr<net::IOBuffer>& buf, | 125 const scoped_refptr<net::IOBuffer>& buf, |
126 const UploadRangeCallback& callback)); | 126 const UploadRangeCallback& callback, |
| 127 const ProgressCallback& progress_callback)); |
127 MOCK_METHOD5(GetUploadStatus, | 128 MOCK_METHOD5(GetUploadStatus, |
128 void(UploadMode upload_mode, | 129 void(UploadMode upload_mode, |
129 const base::FilePath& drive_file_path, | 130 const base::FilePath& drive_file_path, |
130 const GURL& upload_url, | 131 const GURL& upload_url, |
131 int64 content_length, | 132 int64 content_length, |
132 const UploadRangeCallback& callback)); | 133 const UploadRangeCallback& callback)); |
133 MOCK_METHOD3(AuthorizeApp, | 134 MOCK_METHOD3(AuthorizeApp, |
134 void(const std::string& resource_id, | 135 void(const std::string& resource_id, |
135 const std::string& app_id, | 136 const std::string& app_id, |
136 const AuthorizeAppCallback& callback)); | 137 const AuthorizeAppCallback& callback)); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 scoped_ptr<base::Value> search_result_; | 223 scoped_ptr<base::Value> search_result_; |
223 | 224 |
224 // File data to be written to the local temporary file when | 225 // File data to be written to the local temporary file when |
225 // DownloadFileStub is called. | 226 // DownloadFileStub is called. |
226 scoped_ptr<std::string> file_data_; | 227 scoped_ptr<std::string> file_data_; |
227 }; | 228 }; |
228 | 229 |
229 } // namespace google_apis | 230 } // namespace google_apis |
230 | 231 |
231 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ | 232 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ |
OLD | NEW |