OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_UPLOADER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_UPLOADER_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_UPLOADER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_UPLOADER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/drive/drive_uploader.h" | |
14 #include "chrome/browser/drive/fake_drive_service.h" | |
15 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe
r.h" | 13 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe
r.h" |
| 14 #include "components/drive/drive_uploader.h" |
| 15 #include "components/drive/service/fake_drive_service.h" |
16 #include "google_apis/drive/drive_api_error_codes.h" | 16 #include "google_apis/drive/drive_api_error_codes.h" |
17 #include "google_apis/drive/test_util.h" | 17 #include "google_apis/drive/test_util.h" |
18 #include "net/base/escape.h" | 18 #include "net/base/escape.h" |
19 | 19 |
20 namespace sync_file_system { | 20 namespace sync_file_system { |
21 namespace drive_backend { | 21 namespace drive_backend { |
22 | 22 |
23 class FakeDriveServiceWrapper : public drive::FakeDriveService { | 23 class FakeDriveServiceWrapper : public drive::FakeDriveService { |
24 public: | 24 public: |
25 FakeDriveServiceWrapper(); | 25 FakeDriveServiceWrapper(); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 FakeDriveServiceWrapper* fake_drive_service_; | 82 FakeDriveServiceWrapper* fake_drive_service_; |
83 bool make_file_conflict_; | 83 bool make_file_conflict_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(FakeDriveUploader); | 85 DISALLOW_COPY_AND_ASSIGN(FakeDriveUploader); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace drive_backend | 88 } // namespace drive_backend |
89 } // namespace sync_file_system | 89 } // namespace sync_file_system |
90 | 90 |
91 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_UPLOADER_H_ | 91 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_UPLOADER_H_ |
OLD | NEW |