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

Side by Side Diff: chrome/browser/google_apis/mock_drive_service.h

Issue 12207075: Split InitiateUpload method into two. (Closed) Base URL: http://git.chromium.org/chromium/src.git@b148632_extract_initiate_upload_operation_base
Patch Set: Rebase Created 7 years, 10 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
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void(const std::string& parent_resource_id, 73 void(const std::string& parent_resource_id,
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_METHOD2(InitiateUpload, 83 MOCK_METHOD6(InitiateUploadNewFile,
84 void(const InitiateUploadParams& upload_file_info, 84 void(const FilePath& drive_file_path,
85 const std::string& content_type,
86 int64 content_length,
87 const GURL& parent_upload_url,
88 const std::string& title,
89 const InitiateUploadCallback& callback));
90 MOCK_METHOD6(InitiateUploadExistingFile,
91 void(const FilePath& drive_file_path,
92 const std::string& content_type,
93 int64 content_length,
94 const GURL& upload_url,
95 const std::string& etag,
85 const InitiateUploadCallback& callback)); 96 const InitiateUploadCallback& callback));
86 MOCK_METHOD2(ResumeUpload, 97 MOCK_METHOD2(ResumeUpload,
87 void(const ResumeUploadParams& upload_file_info, 98 void(const ResumeUploadParams& upload_file_info,
88 const UploadRangeCallback& callback)); 99 const UploadRangeCallback& callback));
89 MOCK_METHOD5(GetUploadStatus, 100 MOCK_METHOD5(GetUploadStatus,
90 void(UploadMode upload_mode, 101 void(UploadMode upload_mode,
91 const base::FilePath& drive_file_path, 102 const base::FilePath& drive_file_path,
92 const GURL& upload_url, 103 const GURL& upload_url,
93 int64 content_length, 104 int64 content_length,
94 const UploadRangeCallback& callback)); 105 const UploadRangeCallback& callback));
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 scoped_ptr<base::Value> search_result_; 196 scoped_ptr<base::Value> search_result_;
186 197
187 // File data to be written to the local temporary file when 198 // File data to be written to the local temporary file when
188 // DownloadFileStub is called. 199 // DownloadFileStub is called.
189 scoped_ptr<std::string> file_data_; 200 scoped_ptr<std::string> file_data_;
190 }; 201 };
191 202
192 } // namespace google_apis 203 } // namespace google_apis
193 204
194 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ 205 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698