OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_DRIVE_DUMMY_DRIVE_SERVICE_H_ | 5 #ifndef COMPONENTS_DRIVE_SERVICE_DUMMY_DRIVE_SERVICE_H_ |
6 #define CHROME_BROWSER_DRIVE_DUMMY_DRIVE_SERVICE_H_ | 6 #define COMPONENTS_DRIVE_SERVICE_DUMMY_DRIVE_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/drive/drive_service_interface.h" | 10 #include "components/drive/service/drive_service_interface.h" |
11 #include "google_apis/drive/auth_service_interface.h" | 11 #include "google_apis/drive/auth_service_interface.h" |
12 | 12 |
13 namespace drive { | 13 namespace drive { |
14 | 14 |
15 // Dummy implementation of DriveServiceInterface. | 15 // Dummy implementation of DriveServiceInterface. |
16 // All functions do nothing, or return place holder values like 'true'. | 16 // All functions do nothing, or return place holder values like 'true'. |
17 class DummyDriveService : public DriveServiceInterface { | 17 class DummyDriveService : public DriveServiceInterface { |
18 public: | 18 public: |
19 DummyDriveService(); | 19 DummyDriveService(); |
20 ~DummyDriveService() override; | 20 ~DummyDriveService() override; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 google_apis::CancelCallback AddPermission( | 156 google_apis::CancelCallback AddPermission( |
157 const std::string& resource_id, | 157 const std::string& resource_id, |
158 const std::string& email, | 158 const std::string& email, |
159 google_apis::drive::PermissionRole role, | 159 google_apis::drive::PermissionRole role, |
160 const google_apis::EntryActionCallback& callback) override; | 160 const google_apis::EntryActionCallback& callback) override; |
161 scoped_ptr<BatchRequestConfiguratorInterface> StartBatchRequest() override; | 161 scoped_ptr<BatchRequestConfiguratorInterface> StartBatchRequest() override; |
162 }; | 162 }; |
163 | 163 |
164 } // namespace drive | 164 } // namespace drive |
165 | 165 |
166 #endif // CHROME_BROWSER_DRIVE_DUMMY_DRIVE_SERVICE_H_ | 166 #endif // COMPONENTS_DRIVE_SERVICE_DUMMY_DRIVE_SERVICE_H_ |
OLD | NEW |