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

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

Issue 10836125: Add GetChangelist operation for Drive V2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove SetURL() and specify url in the constructor. 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 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(GetChangelist, void(const GURL& feed_url,
38 int64 start_changestamp,
39 const GetDataCallback& callback));
37 MOCK_METHOD2(GetDocumentEntry, void(const std::string& resource_id, 40 MOCK_METHOD2(GetDocumentEntry, void(const std::string& resource_id,
38 const GetDataCallback& callback)); 41 const GetDataCallback& callback));
39 MOCK_METHOD1(GetAccountMetadata, void(const GetDataCallback& callback)); 42 MOCK_METHOD1(GetAccountMetadata, void(const GetDataCallback& callback));
40 MOCK_METHOD1(GetAboutResource, void(const GetDataCallback& callback)); 43 MOCK_METHOD1(GetAboutResource, void(const GetDataCallback& callback));
41 MOCK_METHOD1(GetApplicationList, void(const GetDataCallback& callback)); 44 MOCK_METHOD1(GetApplicationList, void(const GetDataCallback& callback));
42 MOCK_METHOD2(DeleteDocument, void(const GURL& document_url, 45 MOCK_METHOD2(DeleteDocument, void(const GURL& document_url,
43 const EntryActionCallback& callback)); 46 const EntryActionCallback& callback));
44 MOCK_METHOD5(DownloadDocument, void(const FilePath& virtual_path, 47 MOCK_METHOD5(DownloadDocument, void(const FilePath& virtual_path,
45 const FilePath& local_cache_path, 48 const FilePath& local_cache_path,
46 const GURL& content_url, 49 const GURL& content_url,
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 scoped_ptr<base::Value> search_result_; 190 scoped_ptr<base::Value> search_result_;
188 191
189 // File data to be written to the local temporary file when 192 // File data to be written to the local temporary file when
190 // DownloadDocumentStub is called. 193 // DownloadDocumentStub is called.
191 scoped_ptr<std::string> file_data_; 194 scoped_ptr<std::string> file_data_;
192 }; 195 };
193 196
194 } // namespace gdata 197 } // namespace gdata
195 198
196 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_ 199 #endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_DOCUMENTS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_operations.cc ('k') | chrome/browser/chromeos/gdata/operations_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698