| 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/internal_components_factory.h" |
| 10 #include "sync/internal_api/public/util/weak_handle.h" | 10 #include "sync/internal_api/public/util/weak_handle.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 int sync_server_port, | 55 int sync_server_port, |
| 56 bool use_ssl, | 56 bool use_ssl, |
| 57 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | 57 const scoped_refptr<base::TaskRunner>& blocking_task_runner, |
| 58 scoped_ptr<HttpPostProviderFactory> post_factory, | 58 scoped_ptr<HttpPostProviderFactory> post_factory, |
| 59 const std::vector<ModelSafeWorker*>& workers, | 59 const std::vector<ModelSafeWorker*>& workers, |
| 60 ExtensionsActivityMonitor* extensions_activity_monitor, | 60 ExtensionsActivityMonitor* extensions_activity_monitor, |
| 61 ChangeDelegate* change_delegate, | 61 ChangeDelegate* change_delegate, |
| 62 const SyncCredentials& credentials, | 62 const SyncCredentials& credentials, |
| 63 scoped_ptr<SyncNotifier> sync_notifier, | 63 scoped_ptr<SyncNotifier> sync_notifier, |
| 64 const std::string& restored_key_for_bootstrapping, | 64 const std::string& restored_key_for_bootstrapping, |
| 65 bool keystore_encryption_enabled, |
| 65 scoped_ptr<InternalComponentsFactory> internal_components_factory, | 66 scoped_ptr<InternalComponentsFactory> internal_components_factory, |
| 66 Encryptor* encryptor, | 67 Encryptor* encryptor, |
| 67 UnrecoverableErrorHandler* unrecoverable_error_handler, | 68 UnrecoverableErrorHandler* unrecoverable_error_handler, |
| 68 ReportUnrecoverableErrorFunction | 69 ReportUnrecoverableErrorFunction |
| 69 report_unrecoverable_error_function) { | 70 report_unrecoverable_error_function) { |
| 70 sync_loop_ = MessageLoop::current(); | 71 sync_loop_ = MessageLoop::current(); |
| 71 PurgePartiallySyncedTypes(); | 72 PurgePartiallySyncedTypes(); |
| 72 FOR_EACH_OBSERVER(SyncManager::Observer, observers_, | 73 FOR_EACH_OBSERVER(SyncManager::Observer, observers_, |
| 73 OnInitializationComplete( | 74 OnInitializationComplete( |
| 74 syncer::WeakHandle<syncer::JsBackend>(), | 75 syncer::WeakHandle<syncer::JsBackend>(), |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 return false; | 207 return false; |
| 207 } | 208 } |
| 208 | 209 |
| 209 bool FakeSyncManager::HasUnsyncedItems() { | 210 bool FakeSyncManager::HasUnsyncedItems() { |
| 210 NOTIMPLEMENTED(); | 211 NOTIMPLEMENTED(); |
| 211 return false; | 212 return false; |
| 212 } | 213 } |
| 213 | 214 |
| 214 } // namespace syncer | 215 } // namespace syncer |
| 215 | 216 |
| OLD | NEW |