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

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

Issue 17385023: Get rid of RequestRegistry (part 2): remove cancellation methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused methods in RequestRegisty Created 7 years, 6 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 drive_service_interface.h 5 // This file contains mocks for classes in drive_service_interface.h
6 6
7 #ifndef CHROME_BROWSER_DRIVE_MOCK_DRIVE_SERVICE_H_ 7 #ifndef CHROME_BROWSER_DRIVE_MOCK_DRIVE_SERVICE_H_
8 #define CHROME_BROWSER_DRIVE_MOCK_DRIVE_SERVICE_H_ 8 #define CHROME_BROWSER_DRIVE_MOCK_DRIVE_SERVICE_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 MockDriveService(); 24 MockDriveService();
25 virtual ~MockDriveService(); 25 virtual ~MockDriveService();
26 26
27 // DriveServiceInterface overrides. 27 // DriveServiceInterface overrides.
28 MOCK_METHOD1(Initialize, void(Profile* profile)); 28 MOCK_METHOD1(Initialize, void(Profile* profile));
29 MOCK_METHOD1(AddObserver, void(DriveServiceObserver* observer)); 29 MOCK_METHOD1(AddObserver, void(DriveServiceObserver* observer));
30 MOCK_METHOD1(RemoveObserver, 30 MOCK_METHOD1(RemoveObserver,
31 void(DriveServiceObserver* observer)); 31 void(DriveServiceObserver* observer));
32 MOCK_CONST_METHOD0(CanSendRequest, bool()); 32 MOCK_CONST_METHOD0(CanSendRequest, bool());
33 MOCK_METHOD0(CancelAll, void(void));
34 MOCK_METHOD1(CancelForFilePath, bool(const base::FilePath& file_path));
35 MOCK_CONST_METHOD1(CanonicalizeResourceId, 33 MOCK_CONST_METHOD1(CanonicalizeResourceId,
36 std::string(const std::string& resource_id)); 34 std::string(const std::string& resource_id));
37 MOCK_CONST_METHOD0(GetRootResourceId, std::string()); 35 MOCK_CONST_METHOD0(GetRootResourceId, std::string());
38 MOCK_METHOD1(GetAllResourceList, 36 MOCK_METHOD1(GetAllResourceList,
39 CancelCallback(const GetResourceListCallback& callback)); 37 CancelCallback(const GetResourceListCallback& callback));
40 MOCK_METHOD2(GetResourceListInDirectory, 38 MOCK_METHOD2(GetResourceListInDirectory,
41 CancelCallback(const std::string& directory_resource_id, 39 CancelCallback(const std::string& directory_resource_id,
42 const GetResourceListCallback& callback)); 40 const GetResourceListCallback& callback));
43 MOCK_METHOD2(Search, 41 MOCK_METHOD2(Search,
44 CancelCallback(const std::string& search_query, 42 CancelCallback(const std::string& search_query,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 scoped_ptr<base::Value> document_data_; 207 scoped_ptr<base::Value> document_data_;
210 208
211 // File data to be written to the local temporary file when 209 // File data to be written to the local temporary file when
212 // DownloadFileStub is called. 210 // DownloadFileStub is called.
213 scoped_ptr<std::string> file_data_; 211 scoped_ptr<std::string> file_data_;
214 }; 212 };
215 213
216 } // namespace google_apis 214 } // namespace google_apis
217 215
218 #endif // CHROME_BROWSER_DRIVE_MOCK_DRIVE_SERVICE_H_ 216 #endif // CHROME_BROWSER_DRIVE_MOCK_DRIVE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/drive/gdata_wapi_service.cc ('k') | chrome/browser/google_apis/request_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698