| 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" |
| 11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "google_apis/drive/drive_api_parser.h" | 12 #include "google_apis/drive/drive_api_parser.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 using drive::FakeDriveService; | 15 using drive::FakeDriveService; |
| 16 using drive::UploadCompletionCallback; | 16 using drive::UploadCompletionCallback; |
| 17 using google_apis::CancelCallback; | 17 using google_apis::CancelCallback; |
| 18 using google_apis::FileResource; | 18 using google_apis::FileResource; |
| 19 using google_apis::FileResourceCallback; | 19 using google_apis::FileResourceCallback; |
| 20 using google_apis::DriveApiErrorCode; | 20 using google_apis::DriveApiErrorCode; |
| 21 using google_apis::ProgressCallback; | 21 using google_apis::ProgressCallback; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 const drive::UploadCompletionCallback& callback, | 146 const drive::UploadCompletionCallback& callback, |
| 147 const ProgressCallback& progress_callback) { | 147 const ProgressCallback& progress_callback) { |
| 148 // 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. |
| 149 // So this method shouldn't be reached. | 149 // So this method shouldn't be reached. |
| 150 NOTREACHED(); | 150 NOTREACHED(); |
| 151 return CancelCallback(); | 151 return CancelCallback(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // namespace drive_backend | 154 } // namespace drive_backend |
| 155 } // namespace sync_file_system | 155 } // namespace sync_file_system |
| OLD | NEW |