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

Side by Side Diff: chrome/browser/chromeos/gdata/mock_gdata_documents_service.h

Issue 10808108: gdata: Expose authentication states from GDataDocumentsService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | 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 gdata_documents_service.h 5 // This file contains mocks for classes in gdata_documents_service.h
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_
8 #define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_ 8 #define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const DownloadActionCallback& donwload_action_callback, 70 const DownloadActionCallback& donwload_action_callback,
71 const GetDownloadDataCallback& get_download_data_callback)); 71 const GetDownloadDataCallback& get_download_data_callback));
72 MOCK_METHOD2(InitiateUpload, 72 MOCK_METHOD2(InitiateUpload,
73 void(const InitiateUploadParams& upload_file_info, 73 void(const InitiateUploadParams& upload_file_info,
74 const InitiateUploadCallback& callback)); 74 const InitiateUploadCallback& callback));
75 MOCK_METHOD2(ResumeUpload, void(const ResumeUploadParams& upload_file_info, 75 MOCK_METHOD2(ResumeUpload, void(const ResumeUploadParams& upload_file_info,
76 const ResumeUploadCallback& callback)); 76 const ResumeUploadCallback& callback));
77 MOCK_METHOD3(AuthorizeApp, void(const GURL& resource_url, 77 MOCK_METHOD3(AuthorizeApp, void(const GURL& resource_url,
78 const std::string& app_ids, 78 const std::string& app_ids,
79 const GetDataCallback& callback)); 79 const GetDataCallback& callback));
80 MOCK_CONST_METHOD0(IsFullyAuthenticated, bool());
81 MOCK_CONST_METHOD0(IsPartiallyAuthenticated, bool());
80 82
81 void set_account_metadata(base::Value* account_metadata) { 83 void set_account_metadata(base::Value* account_metadata) {
82 feed_data_.reset(account_metadata); 84 feed_data_.reset(account_metadata);
83 } 85 }
84 86
85 void set_feed_data(base::Value* feed_data) { 87 void set_feed_data(base::Value* feed_data) {
86 feed_data_.reset(feed_data); 88 feed_data_.reset(feed_data);
87 } 89 }
88 90
89 void set_directory_data(base::Value* directory_data) { 91 void set_directory_data(base::Value* directory_data) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 scoped_ptr<base::Value> search_result_; 185 scoped_ptr<base::Value> search_result_;
184 186
185 // File data to be written to the local temporary file when 187 // File data to be written to the local temporary file when
186 // DownloadDocumentStub is called. 188 // DownloadDocumentStub is called.
187 scoped_ptr<std::string> file_data_; 189 scoped_ptr<std::string> file_data_;
188 }; 190 };
189 191
190 } // namespace gdata 192 } // namespace gdata
191 193
192 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_ 194 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698