| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "sync/internal_api/public/test/fake_sync_manager.h" | 5 #include "sync/internal_api/public/test/fake_sync_manager.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "sync/internal_api/public/http_post_provider_factory.h" | 8 #include "sync/internal_api/public/http_post_provider_factory.h" |
| 9 #include "sync/internal_api/public/internal_components_factory.h" |
| 9 #include "sync/internal_api/public/util/weak_handle.h" | 10 #include "sync/internal_api/public/util/weak_handle.h" |
| 10 #include "sync/notifier/sync_notifier.h" | 11 #include "sync/notifier/sync_notifier.h" |
| 11 | 12 |
| 12 namespace syncer { | 13 namespace syncer { |
| 13 | 14 |
| 14 FakeSyncManager::FakeSyncManager() { | 15 FakeSyncManager::FakeSyncManager() { |
| 15 } | 16 } |
| 16 | 17 |
| 17 FakeSyncManager::~FakeSyncManager() { | 18 FakeSyncManager::~FakeSyncManager() { |
| 18 } | 19 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 bool use_ssl, | 52 bool use_ssl, |
| 52 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | 53 const scoped_refptr<base::TaskRunner>& blocking_task_runner, |
| 53 scoped_ptr<HttpPostProviderFactory> post_factory, | 54 scoped_ptr<HttpPostProviderFactory> post_factory, |
| 54 const syncer::ModelSafeRoutingInfo& model_safe_routing_info, | 55 const syncer::ModelSafeRoutingInfo& model_safe_routing_info, |
| 55 const std::vector<syncer::ModelSafeWorker*>& workers, | 56 const std::vector<syncer::ModelSafeWorker*>& workers, |
| 56 syncer::ExtensionsActivityMonitor* extensions_activity_monitor, | 57 syncer::ExtensionsActivityMonitor* extensions_activity_monitor, |
| 57 ChangeDelegate* change_delegate, | 58 ChangeDelegate* change_delegate, |
| 58 const SyncCredentials& credentials, | 59 const SyncCredentials& credentials, |
| 59 scoped_ptr<syncer::SyncNotifier> sync_notifier, | 60 scoped_ptr<syncer::SyncNotifier> sync_notifier, |
| 60 const std::string& restored_key_for_bootstrapping, | 61 const std::string& restored_key_for_bootstrapping, |
| 61 TestingMode testing_mode, | 62 scoped_ptr<InternalComponentsFactory> internal_components_factory, |
| 62 syncer::Encryptor* encryptor, | 63 syncer::Encryptor* encryptor, |
| 63 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler, | 64 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler, |
| 64 syncer::ReportUnrecoverableErrorFunction | 65 syncer::ReportUnrecoverableErrorFunction |
| 65 report_unrecoverable_error_function) { | 66 report_unrecoverable_error_function) { |
| 66 sync_loop_ = MessageLoop::current(); | 67 sync_loop_ = MessageLoop::current(); |
| 67 PurgePartiallySyncedTypes(); | 68 PurgePartiallySyncedTypes(); |
| 68 FOR_EACH_OBSERVER(SyncManager::Observer, observers_, | 69 FOR_EACH_OBSERVER(SyncManager::Observer, observers_, |
| 69 OnInitializationComplete( | 70 OnInitializationComplete( |
| 70 syncer::WeakHandle<syncer::JsBackend>(), | 71 syncer::WeakHandle<syncer::JsBackend>(), |
| 71 true)); | 72 true)); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 return false; | 203 return false; |
| 203 } | 204 } |
| 204 | 205 |
| 205 bool FakeSyncManager::HasUnsyncedItems() const { | 206 bool FakeSyncManager::HasUnsyncedItems() const { |
| 206 NOTIMPLEMENTED(); | 207 NOTIMPLEMENTED(); |
| 207 return false; | 208 return false; |
| 208 } | 209 } |
| 209 | 210 |
| 210 } // namespace syncer | 211 } // namespace syncer |
| 211 | 212 |
| OLD | NEW |