OLD | NEW |
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 #ifndef CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ |
6 #define CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ | 6 #define CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/drive/drive_service_interface.h" | 10 #include "chrome/browser/drive/drive_service_interface.h" |
11 #include "chrome/browser/google_apis/auth_service_interface.h" | 11 #include "google_apis/drive/auth_service_interface.h" |
12 | 12 |
13 namespace drive { | 13 namespace drive { |
14 | 14 |
15 // This class implements a fake DriveService which acts like a real Drive | 15 // This class implements a fake DriveService which acts like a real Drive |
16 // service. The fake service works as follows: | 16 // service. The fake service works as follows: |
17 // | 17 // |
18 // 1) Load JSON files and construct the in-memory resource list. | 18 // 1) Load JSON files and construct the in-memory resource list. |
19 // 2) Return valid responses based on the the in-memory resource list. | 19 // 2) Return valid responses based on the the in-memory resource list. |
20 // 3) Update the in-memory resource list by requests like DeleteResource(). | 20 // 3) Update the in-memory resource list by requests like DeleteResource(). |
21 class FakeDriveService : public DriveServiceInterface { | 21 class FakeDriveService : public DriveServiceInterface { |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 bool never_return_all_resource_list_; | 319 bool never_return_all_resource_list_; |
320 base::FilePath last_cancelled_file_; | 320 base::FilePath last_cancelled_file_; |
321 GURL share_url_base_; | 321 GURL share_url_base_; |
322 | 322 |
323 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); | 323 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); |
324 }; | 324 }; |
325 | 325 |
326 } // namespace drive | 326 } // namespace drive |
327 | 327 |
328 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ | 328 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ |
OLD | NEW |