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

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

Issue 12218011: WIP: Implement 5xx Error handling. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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') | net/url_request/url_fetcher.h » ('j') | 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const GURL& content_url, 80 const GURL& content_url,
81 const DownloadActionCallback& 81 const DownloadActionCallback&
82 donwload_action_callback, 82 donwload_action_callback,
83 const GetContentCallback& get_content_callback)); 83 const GetContentCallback& get_content_callback));
84 MOCK_METHOD2(InitiateUpload, 84 MOCK_METHOD2(InitiateUpload,
85 void(const InitiateUploadParams& upload_file_info, 85 void(const InitiateUploadParams& upload_file_info,
86 const InitiateUploadCallback& callback)); 86 const InitiateUploadCallback& callback));
87 MOCK_METHOD2(ResumeUpload, 87 MOCK_METHOD2(ResumeUpload,
88 void(const ResumeUploadParams& upload_file_info, 88 void(const ResumeUploadParams& upload_file_info,
89 const ResumeUploadCallback& callback)); 89 const ResumeUploadCallback& callback));
90 MOCK_METHOD5(GetUploadState,
91 void(const UploadMode upload_mode,
92 const FilePath& drive_file_path,
93 const GURL& upload_url,
94 int64 content_length,
95 const ResumeUploadCallback& callback));
90 MOCK_METHOD3(AuthorizeApp, 96 MOCK_METHOD3(AuthorizeApp,
91 void(const GURL& edit_url, 97 void(const GURL& edit_url,
92 const std::string& app_id, 98 const std::string& app_id,
93 const AuthorizeAppCallback& callback)); 99 const AuthorizeAppCallback& callback));
94 MOCK_CONST_METHOD0(HasAccessToken, bool()); 100 MOCK_CONST_METHOD0(HasAccessToken, bool());
95 MOCK_CONST_METHOD0(HasRefreshToken, bool()); 101 MOCK_CONST_METHOD0(HasRefreshToken, bool());
96 MOCK_METHOD0(ClearAccessToken, void()); 102 MOCK_METHOD0(ClearAccessToken, void());
97 MOCK_METHOD0(ClearRefreshToken, void()); 103 MOCK_METHOD0(ClearRefreshToken, void());
98 104
99 void set_file_data(std::string* file_data) { 105 void set_file_data(std::string* file_data) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 scoped_ptr<base::Value> search_result_; 186 scoped_ptr<base::Value> search_result_;
181 187
182 // File data to be written to the local temporary file when 188 // File data to be written to the local temporary file when
183 // DownloadFileStub is called. 189 // DownloadFileStub is called.
184 scoped_ptr<std::string> file_data_; 190 scoped_ptr<std::string> file_data_;
185 }; 191 };
186 192
187 } // namespace google_apis 193 } // namespace google_apis
188 194
189 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ 195 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service.cc ('k') | net/url_request/url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698