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

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

Issue 10830300: Add GetFilelist/GetFile operations for Drive V2 API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for comments. 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_documents_service.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 16 matching lines...) Expand all
27 // DocumentServiceInterface overrides. 27 // DocumentServiceInterface overrides.
28 MOCK_METHOD1(Initialize, void(Profile* profile)); 28 MOCK_METHOD1(Initialize, void(Profile* profile));
29 MOCK_CONST_METHOD0(operation_registry, GDataOperationRegistry*()); 29 MOCK_CONST_METHOD0(operation_registry, GDataOperationRegistry*());
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_METHOD3(GetFilelist, void(const GURL& feed_url,
38 const std::string& search_string,
39 const GetDataCallback& callback));
37 MOCK_METHOD3(GetChangelist, void(const GURL& feed_url, 40 MOCK_METHOD3(GetChangelist, void(const GURL& feed_url,
38 int64 start_changestamp, 41 int64 start_changestamp,
39 const GetDataCallback& callback)); 42 const GetDataCallback& callback));
40 MOCK_METHOD2(GetDocumentEntry, void(const std::string& resource_id, 43 MOCK_METHOD2(GetDocumentEntry, void(const std::string& resource_id,
41 const GetDataCallback& callback)); 44 const GetDataCallback& callback));
45 MOCK_METHOD2(GetFile, void(const std::string& file_id,
46 const GetDataCallback& callback));
42 MOCK_METHOD1(GetAccountMetadata, void(const GetDataCallback& callback)); 47 MOCK_METHOD1(GetAccountMetadata, void(const GetDataCallback& callback));
43 MOCK_METHOD1(GetAboutResource, void(const GetDataCallback& callback)); 48 MOCK_METHOD1(GetAboutResource, void(const GetDataCallback& callback));
44 MOCK_METHOD1(GetApplicationList, void(const GetDataCallback& callback)); 49 MOCK_METHOD1(GetApplicationList, void(const GetDataCallback& callback));
45 MOCK_METHOD2(DeleteDocument, void(const GURL& document_url, 50 MOCK_METHOD2(DeleteDocument, void(const GURL& document_url,
46 const EntryActionCallback& callback)); 51 const EntryActionCallback& callback));
47 MOCK_METHOD5(DownloadDocument, void(const FilePath& virtual_path, 52 MOCK_METHOD5(DownloadDocument, void(const FilePath& virtual_path,
48 const FilePath& local_cache_path, 53 const FilePath& local_cache_path,
49 const GURL& content_url, 54 const GURL& content_url,
50 DocumentExportFormat format, 55 DocumentExportFormat format,
51 const DownloadActionCallback& callback)); 56 const DownloadActionCallback& callback));
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 scoped_ptr<base::Value> search_result_; 195 scoped_ptr<base::Value> search_result_;
191 196
192 // File data to be written to the local temporary file when 197 // File data to be written to the local temporary file when
193 // DownloadDocumentStub is called. 198 // DownloadDocumentStub is called.
194 scoped_ptr<std::string> file_data_; 199 scoped_ptr<std::string> file_data_;
195 }; 200 };
196 201
197 } // namespace gdata 202 } // namespace gdata
198 203
199 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_ 204 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_documents_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698