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

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

Issue 11316262: google_apis: Move AuthOperation to auth_service.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reorder headers Created 8 years 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 | Annotate | Revision Log
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void set_file_data(std::string* file_data) { 113 void set_file_data(std::string* file_data) {
114 file_data_.reset(file_data); 114 file_data_.reset(file_data);
115 } 115 }
116 116
117 void set_search_result(const std::string& search_result_feed); 117 void set_search_result(const std::string& search_result_feed);
118 118
119 private: 119 private:
120 // Helper stub methods for functions which take callbacks, so that 120 // Helper stub methods for functions which take callbacks, so that
121 // the callbacks get called with testable results. 121 // the callbacks get called with testable results.
122 122
123 // Will call |callback| with HTTP_SUCCESS and the token "test_auth_token"
124 // as the token.
125 void AuthenticateStub(const AuthStatusCallback& callback);
126
127 // Will call |callback| with HTTP_SUCCESS and a StringValue with the current 123 // Will call |callback| with HTTP_SUCCESS and a StringValue with the current
128 // value of |feed_data_|. 124 // value of |feed_data_|.
129 void GetDocumentsStub(const GURL& feed_url, 125 void GetDocumentsStub(const GURL& feed_url,
130 int64 start_changestamp, 126 int64 start_changestamp,
131 const std::string& search_string, 127 const std::string& search_string,
132 bool shared_with_me, 128 bool shared_with_me,
133 const std::string& directory_resource_id, 129 const std::string& directory_resource_id,
134 const GetDataCallback& callback); 130 const GetDataCallback& callback);
135 131
136 // Will call |callback| with HTTP_SUCCESS and a StringValue with the current 132 // Will call |callback| with HTTP_SUCCESS and a StringValue with the current
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 scoped_ptr<base::Value> search_result_; 203 scoped_ptr<base::Value> search_result_;
208 204
209 // File data to be written to the local temporary file when 205 // File data to be written to the local temporary file when
210 // DownloadDocumentStub is called. 206 // DownloadDocumentStub is called.
211 scoped_ptr<std::string> file_data_; 207 scoped_ptr<std::string> file_data_;
212 }; 208 };
213 209
214 } // namespace google_apis 210 } // namespace google_apis
215 211
216 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ 212 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/base_operations.cc ('k') | chrome/browser/google_apis/mock_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698