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_SERVICE_HELPER_
H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_SERVICE_HELPER_
H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_SERVICE_HELPER_
H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_SERVICE_HELPER_
H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 google_apis::GDataErrorCode ReadFile( | 72 google_apis::GDataErrorCode ReadFile( |
73 const std::string& file_id, | 73 const std::string& file_id, |
74 std::string* file_content); | 74 std::string* file_content); |
75 google_apis::GDataErrorCode GetAboutResource( | 75 google_apis::GDataErrorCode GetAboutResource( |
76 scoped_ptr<google_apis::AboutResource>* about_resource); | 76 scoped_ptr<google_apis::AboutResource>* about_resource); |
77 | 77 |
78 base::FilePath base_dir_path() { return base_dir_.path(); } | 78 base::FilePath base_dir_path() { return base_dir_.path(); } |
79 | 79 |
80 private: | 80 private: |
81 google_apis::GDataErrorCode CompleteListing( | 81 google_apis::GDataErrorCode CompleteListing( |
82 scoped_ptr<google_apis::ResourceList> list, | 82 scoped_ptr<google_apis::FileList> list, |
83 ScopedVector<google_apis::ResourceEntry> * entries); | 83 ScopedVector<google_apis::ResourceEntry>* entries); |
84 | 84 |
85 void Initialize(); | 85 void Initialize(); |
86 | 86 |
87 base::FilePath WriteToTempFile(const std::string& content); | 87 base::FilePath WriteToTempFile(const std::string& content); |
88 | 88 |
89 base::ScopedTempDir base_dir_; | 89 base::ScopedTempDir base_dir_; |
90 base::FilePath temp_dir_; | 90 base::FilePath temp_dir_; |
91 | 91 |
92 // Not own. | 92 // Not own. |
93 drive::FakeDriveService* fake_drive_service_; | 93 drive::FakeDriveService* fake_drive_service_; |
94 drive::DriveUploaderInterface* drive_uploader_; | 94 drive::DriveUploaderInterface* drive_uploader_; |
95 | 95 |
96 std::string sync_root_folder_title_; | 96 std::string sync_root_folder_title_; |
97 }; | 97 }; |
98 | 98 |
99 } // namespace drive_backend | 99 } // namespace drive_backend |
100 } // namespace sync_file_system | 100 } // namespace sync_file_system |
101 | 101 |
102 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_SERVICE_HELP
ER_H_ | 102 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_SERVICE_HELP
ER_H_ |
OLD | NEW |