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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 const std::string& directory_name, | 74 const std::string& directory_name, |
75 const GetResourceEntryCallback& callback)); | 75 const GetResourceEntryCallback& callback)); |
76 MOCK_METHOD5( | 76 MOCK_METHOD5( |
77 DownloadFile, | 77 DownloadFile, |
78 void(const base::FilePath& virtual_path, | 78 void(const base::FilePath& virtual_path, |
79 const base::FilePath& local_cache_path, | 79 const base::FilePath& local_cache_path, |
80 const GURL& download_url, | 80 const GURL& download_url, |
81 const DownloadActionCallback& donwload_action_callback, | 81 const DownloadActionCallback& donwload_action_callback, |
82 const GetContentCallback& get_content_callback)); | 82 const GetContentCallback& get_content_callback)); |
83 MOCK_METHOD6(InitiateUploadNewFile, | 83 MOCK_METHOD6(InitiateUploadNewFile, |
84 void(const FilePath& drive_file_path, | 84 void(const base::FilePath& drive_file_path, |
85 const std::string& content_type, | 85 const std::string& content_type, |
86 int64 content_length, | 86 int64 content_length, |
87 const GURL& parent_upload_url, | 87 const GURL& parent_upload_url, |
88 const std::string& title, | 88 const std::string& title, |
89 const InitiateUploadCallback& callback)); | 89 const InitiateUploadCallback& callback)); |
90 MOCK_METHOD6(InitiateUploadExistingFile, | 90 MOCK_METHOD6(InitiateUploadExistingFile, |
91 void(const FilePath& drive_file_path, | 91 void(const base::FilePath& drive_file_path, |
92 const std::string& content_type, | 92 const std::string& content_type, |
93 int64 content_length, | 93 int64 content_length, |
94 const GURL& upload_url, | 94 const GURL& upload_url, |
95 const std::string& etag, | 95 const std::string& etag, |
96 const InitiateUploadCallback& callback)); | 96 const InitiateUploadCallback& callback)); |
97 MOCK_METHOD2(ResumeUpload, | 97 MOCK_METHOD2(ResumeUpload, |
98 void(const ResumeUploadParams& upload_file_info, | 98 void(const ResumeUploadParams& upload_file_info, |
99 const UploadRangeCallback& callback)); | 99 const UploadRangeCallback& callback)); |
100 MOCK_METHOD5(GetUploadStatus, | 100 MOCK_METHOD5(GetUploadStatus, |
101 void(UploadMode upload_mode, | 101 void(UploadMode upload_mode, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 scoped_ptr<base::Value> search_result_; | 196 scoped_ptr<base::Value> search_result_; |
197 | 197 |
198 // File data to be written to the local temporary file when | 198 // File data to be written to the local temporary file when |
199 // DownloadFileStub is called. | 199 // DownloadFileStub is called. |
200 scoped_ptr<std::string> file_data_; | 200 scoped_ptr<std::string> file_data_; |
201 }; | 201 }; |
202 | 202 |
203 } // namespace google_apis | 203 } // namespace google_apis |
204 | 204 |
205 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ | 205 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ |
OLD | NEW |