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

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

Issue 10821065: Add Drive API specific operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
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 19 matching lines...) Expand all
30 MOCK_METHOD0(CancelAll, void(void)); 30 MOCK_METHOD0(CancelAll, void(void));
31 MOCK_METHOD1(Authenticate, void(const AuthStatusCallback& callback)); 31 MOCK_METHOD1(Authenticate, void(const AuthStatusCallback& callback));
32 MOCK_METHOD5(GetDocuments, void(const GURL& feed_url, 32 MOCK_METHOD5(GetDocuments, void(const GURL& feed_url,
33 int start_changestamp, 33 int start_changestamp,
34 const std::string& search_string, 34 const std::string& search_string,
35 const std::string& directory_resource_id, 35 const std::string& directory_resource_id,
36 const GetDataCallback& callback)); 36 const GetDataCallback& callback));
37 MOCK_METHOD2(GetDocumentEntry, void(const std::string& resource_id, 37 MOCK_METHOD2(GetDocumentEntry, void(const std::string& resource_id,
38 const GetDataCallback& callback)); 38 const GetDataCallback& callback));
39 MOCK_METHOD1(GetAccountMetadata, void(const GetDataCallback& callback)); 39 MOCK_METHOD1(GetAccountMetadata, void(const GetDataCallback& callback));
40 MOCK_METHOD1(GetAboutResource, void(const GetDataCallback& callback));
41 MOCK_METHOD1(GetApplicationList, void(const GetDataCallback& callback));
40 MOCK_METHOD2(DeleteDocument, void(const GURL& document_url, 42 MOCK_METHOD2(DeleteDocument, void(const GURL& document_url,
41 const EntryActionCallback& callback)); 43 const EntryActionCallback& callback));
42 MOCK_METHOD5(DownloadDocument, void(const FilePath& virtual_path, 44 MOCK_METHOD5(DownloadDocument, void(const FilePath& virtual_path,
43 const FilePath& local_cache_path, 45 const FilePath& local_cache_path,
44 const GURL& content_url, 46 const GURL& content_url,
45 DocumentExportFormat format, 47 DocumentExportFormat format,
46 const DownloadActionCallback& callback)); 48 const DownloadActionCallback& callback));
47 MOCK_METHOD3(CopyDocument, void(const std::string& resource_id, 49 MOCK_METHOD3(CopyDocument, void(const std::string& resource_id,
48 const FilePath::StringType& new_name, 50 const FilePath::StringType& new_name,
49 const GetDataCallback& callback)); 51 const GetDataCallback& callback));
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 scoped_ptr<base::Value> search_result_; 187 scoped_ptr<base::Value> search_result_;
186 188
187 // File data to be written to the local temporary file when 189 // File data to be written to the local temporary file when
188 // DownloadDocumentStub is called. 190 // DownloadDocumentStub is called.
189 scoped_ptr<std::string> file_data_; 191 scoped_ptr<std::string> file_data_;
190 }; 192 };
191 193
192 } // namespace gdata 194 } // namespace gdata
193 195
194 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_ 196 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698