| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/drive/file_system/operation_test_base.h" | 5 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
| 6 | 6 |
| 7 #include "base/prefs/testing_pref_service.h" | 7 #include "base/prefs/testing_pref_service.h" |
| 8 #include "base/threading/sequenced_worker_pool.h" | 8 #include "base/threading/sequenced_worker_pool.h" |
| 9 #include "chrome/browser/chromeos/drive/change_list_loader.h" | 9 #include "chrome/browser/chromeos/drive/change_list_loader.h" |
| 10 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" | 10 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 void OperationTestBase::LoggingObserver::OnCacheFileUploadNeededByOperation( | 34 void OperationTestBase::LoggingObserver::OnCacheFileUploadNeededByOperation( |
| 35 const std::string& local_id) { | 35 const std::string& local_id) { |
| 36 upload_needed_local_ids_.insert(local_id); | 36 upload_needed_local_ids_.insert(local_id); |
| 37 } | 37 } |
| 38 | 38 |
| 39 void OperationTestBase::LoggingObserver::OnEntryUpdatedByOperation( | 39 void OperationTestBase::LoggingObserver::OnEntryUpdatedByOperation( |
| 40 const std::string& local_id) { | 40 const std::string& local_id) { |
| 41 updated_local_ids_.insert(local_id); | 41 updated_local_ids_.insert(local_id); |
| 42 } | 42 } |
| 43 | 43 |
| 44 void OperationTestBase::LoggingObserver::OnDriveSyncError( |
| 45 DriveSyncErrorType type) { |
| 46 drive_sync_erros_.push_back(type); |
| 47 } |
| 48 |
| 44 OperationTestBase::OperationTestBase() { | 49 OperationTestBase::OperationTestBase() { |
| 45 } | 50 } |
| 46 | 51 |
| 47 OperationTestBase::OperationTestBase(int test_thread_bundle_options) | 52 OperationTestBase::OperationTestBase(int test_thread_bundle_options) |
| 48 : thread_bundle_(test_thread_bundle_options) { | 53 : thread_bundle_(test_thread_bundle_options) { |
| 49 } | 54 } |
| 50 | 55 |
| 51 OperationTestBase::~OperationTestBase() { | 56 OperationTestBase::~OperationTestBase() { |
| 52 } | 57 } |
| 53 | 58 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 FileError OperationTestBase::CheckForUpdates() { | 174 FileError OperationTestBase::CheckForUpdates() { |
| 170 FileError error = FILE_ERROR_FAILED; | 175 FileError error = FILE_ERROR_FAILED; |
| 171 change_list_loader_->CheckForUpdates( | 176 change_list_loader_->CheckForUpdates( |
| 172 google_apis::test_util::CreateCopyResultCallback(&error)); | 177 google_apis::test_util::CreateCopyResultCallback(&error)); |
| 173 test_util::RunBlockingPoolTask(); | 178 test_util::RunBlockingPoolTask(); |
| 174 return error; | 179 return error; |
| 175 } | 180 } |
| 176 | 181 |
| 177 } // namespace file_system | 182 } // namespace file_system |
| 178 } // namespace drive | 183 } // namespace drive |
| OLD | NEW |