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 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_uploader.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_uploader.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 parent_resource_id, directory_name, options, callback); | 80 parent_resource_id, directory_name, options, callback); |
81 } | 81 } |
82 | 82 |
83 FakeDriveUploader::FakeDriveUploader( | 83 FakeDriveUploader::FakeDriveUploader( |
84 FakeDriveServiceWrapper* fake_drive_service) | 84 FakeDriveServiceWrapper* fake_drive_service) |
85 : fake_drive_service_(fake_drive_service), | 85 : fake_drive_service_(fake_drive_service), |
86 make_file_conflict_(false) {} | 86 make_file_conflict_(false) {} |
87 | 87 |
88 FakeDriveUploader::~FakeDriveUploader() {} | 88 FakeDriveUploader::~FakeDriveUploader() {} |
89 | 89 |
| 90 void FakeDriveUploader::StartBatchProcessing() { |
| 91 } |
| 92 |
| 93 void FakeDriveUploader::StopBatchProcessing() { |
| 94 } |
| 95 |
90 CancelCallback FakeDriveUploader::UploadNewFile( | 96 CancelCallback FakeDriveUploader::UploadNewFile( |
91 const std::string& parent_resource_id, | 97 const std::string& parent_resource_id, |
92 const base::FilePath& local_file_path, | 98 const base::FilePath& local_file_path, |
93 const std::string& title, | 99 const std::string& title, |
94 const std::string& content_type, | 100 const std::string& content_type, |
95 const drive::UploadNewFileOptions& options, | 101 const drive::UploadNewFileOptions& options, |
96 const UploadCompletionCallback& callback, | 102 const UploadCompletionCallback& callback, |
97 const ProgressCallback& progress_callback) { | 103 const ProgressCallback& progress_callback) { |
98 DCHECK(!callback.is_null()); | 104 DCHECK(!callback.is_null()); |
99 const std::string kFileContent = "test content"; | 105 const std::string kFileContent = "test content"; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 const drive::UploadCompletionCallback& callback, | 146 const drive::UploadCompletionCallback& callback, |
141 const ProgressCallback& progress_callback) { | 147 const ProgressCallback& progress_callback) { |
142 // At the moment, sync file system doesn't support resuming of the uploading. | 148 // At the moment, sync file system doesn't support resuming of the uploading. |
143 // So this method shouldn't be reached. | 149 // So this method shouldn't be reached. |
144 NOTREACHED(); | 150 NOTREACHED(); |
145 return CancelCallback(); | 151 return CancelCallback(); |
146 } | 152 } |
147 | 153 |
148 } // namespace drive_backend | 154 } // namespace drive_backend |
149 } // namespace sync_file_system | 155 } // namespace sync_file_system |
OLD | NEW |