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

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

Issue 10836005: gdata: Periodic refresh should be active for file lists loaded from cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Typo fix. Created 8 years, 4 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system_unittest.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 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 const InitiateUploadCallback& callback)); 76 const InitiateUploadCallback& callback));
77 MOCK_METHOD2(ResumeUpload, void(const ResumeUploadParams& upload_file_info, 77 MOCK_METHOD2(ResumeUpload, void(const ResumeUploadParams& upload_file_info,
78 const ResumeUploadCallback& callback)); 78 const ResumeUploadCallback& callback));
79 MOCK_METHOD3(AuthorizeApp, void(const GURL& resource_url, 79 MOCK_METHOD3(AuthorizeApp, void(const GURL& resource_url,
80 const std::string& app_ids, 80 const std::string& app_ids,
81 const GetDataCallback& callback)); 81 const GetDataCallback& callback));
82 MOCK_CONST_METHOD0(HasAccessToken, bool()); 82 MOCK_CONST_METHOD0(HasAccessToken, bool());
83 MOCK_CONST_METHOD0(HasRefreshToken, bool()); 83 MOCK_CONST_METHOD0(HasRefreshToken, bool());
84 84
85 void set_account_metadata(base::Value* account_metadata) { 85 void set_account_metadata(base::Value* account_metadata) {
86 feed_data_.reset(account_metadata); 86 account_metadata_.reset(account_metadata);
87 } 87 }
88 88
89 void set_feed_data(base::Value* feed_data) { 89 void set_feed_data(base::Value* feed_data) {
90 feed_data_.reset(feed_data); 90 feed_data_.reset(feed_data);
91 } 91 }
92 92
93 void set_directory_data(base::Value* directory_data) { 93 void set_directory_data(base::Value* directory_data) {
94 directory_data_.reset(directory_data); 94 directory_data_.reset(directory_data);
95 } 95 }
96 96
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 scoped_ptr<base::Value> search_result_; 187 scoped_ptr<base::Value> search_result_;
188 188
189 // File data to be written to the local temporary file when 189 // File data to be written to the local temporary file when
190 // DownloadDocumentStub is called. 190 // DownloadDocumentStub is called.
191 scoped_ptr<std::string> file_data_; 191 scoped_ptr<std::string> file_data_;
192 }; 192 };
193 193
194 } // namespace gdata 194 } // namespace gdata
195 195
196 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_ 196 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698