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

Side by Side Diff: chrome/browser/google_apis/mock_drive_service.h

Issue 13602003: Add new methods to DriveServiceInterface. These will replace GetResourceList. (Closed) Base URL: http://git.chromium.org/chromium/src.git@webkit_master
Patch Set: Created 7 years, 8 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
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_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 drive_service_interface.h 5 // This file contains mocks for classes in drive_service_interface.h
6 6
7 #ifndef CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ 7 #ifndef CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_
8 #define CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ 8 #define CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 26 matching lines...) Expand all
37 MOCK_CONST_METHOD0(GetProgressStatusList, 37 MOCK_CONST_METHOD0(GetProgressStatusList,
38 OperationProgressStatusList()); 38 OperationProgressStatusList());
39 MOCK_CONST_METHOD0(GetRootResourceId, std::string()); 39 MOCK_CONST_METHOD0(GetRootResourceId, std::string());
40 MOCK_METHOD6(GetResourceList, 40 MOCK_METHOD6(GetResourceList,
41 void(const GURL& url, 41 void(const GURL& url,
42 int64 start_changestamp, 42 int64 start_changestamp,
43 const std::string& search_string, 43 const std::string& search_string,
44 bool shared_with_me, 44 bool shared_with_me,
45 const std::string& directory_resource_id, 45 const std::string& directory_resource_id,
46 const GetResourceListCallback& callback)); 46 const GetResourceListCallback& callback));
47 MOCK_METHOD1(GetAllResourceList,
48 void(const GetResourceListCallback& callback));
49 MOCK_METHOD2(GetResourceListInDirectory,
50 void(const std::string& directory_resource_id,
51 const GetResourceListCallback& callback));
52 MOCK_METHOD2(Search,
53 void(const std::string& search_query,
54 const GetResourceListCallback& callback));
55 MOCK_METHOD3(SearchInDirectory,
56 void(const std::string& search_query,
57 const std::string& directory_resource_id,
58 const GetResourceListCallback& callback));
59 MOCK_METHOD2(GetChangeList,
60 void(int64 start_changestamp,
61 const GetResourceListCallback& callback));
62 MOCK_METHOD2(ContinueGetResourceList,
63 void(const GURL& override_url,
64 const GetResourceListCallback& callback));
47 MOCK_METHOD2(GetResourceEntry, 65 MOCK_METHOD2(GetResourceEntry,
48 void(const std::string& resource_id, 66 void(const std::string& resource_id,
49 const GetResourceEntryCallback& callback)); 67 const GetResourceEntryCallback& callback));
50 MOCK_METHOD1(GetAccountMetadata, 68 MOCK_METHOD1(GetAccountMetadata,
51 void(const GetAccountMetadataCallback& callback)); 69 void(const GetAccountMetadataCallback& callback));
52 MOCK_METHOD1(GetAboutResource, 70 MOCK_METHOD1(GetAboutResource,
53 void(const GetAboutResourceCallback& callback)); 71 void(const GetAboutResourceCallback& callback));
54 MOCK_METHOD1(GetAppList, void(const GetAppListCallback& callback)); 72 MOCK_METHOD1(GetAppList, void(const GetAppListCallback& callback));
55 MOCK_METHOD3(DeleteResource, 73 MOCK_METHOD3(DeleteResource,
56 void(const std::string& resource_id, 74 void(const std::string& resource_id,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 scoped_ptr<base::Value> search_result_; 224 scoped_ptr<base::Value> search_result_;
207 225
208 // File data to be written to the local temporary file when 226 // File data to be written to the local temporary file when
209 // DownloadFileStub is called. 227 // DownloadFileStub is called.
210 scoped_ptr<std::string> file_data_; 228 scoped_ptr<std::string> file_data_;
211 }; 229 };
212 230
213 } // namespace google_apis 231 } // namespace google_apis
214 232
215 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_ 233 #endif // CHROME_BROWSER_GOOGLE_APIS_MOCK_DRIVE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698