| 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/util/weak_handle.h" | 9 #include "sync/internal_api/public/util/weak_handle.h" |
| 10 #include "sync/notifier/sync_notifier.h" | 10 #include "sync/notifier/sync_notifier.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 bool use_ssl, | 51 bool use_ssl, |
| 52 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | 52 const scoped_refptr<base::TaskRunner>& blocking_task_runner, |
| 53 scoped_ptr<HttpPostProviderFactory> post_factory, | 53 scoped_ptr<HttpPostProviderFactory> post_factory, |
| 54 const syncer::ModelSafeRoutingInfo& model_safe_routing_info, | 54 const syncer::ModelSafeRoutingInfo& model_safe_routing_info, |
| 55 const std::vector<syncer::ModelSafeWorker*>& workers, | 55 const std::vector<syncer::ModelSafeWorker*>& workers, |
| 56 syncer::ExtensionsActivityMonitor* extensions_activity_monitor, | 56 syncer::ExtensionsActivityMonitor* extensions_activity_monitor, |
| 57 ChangeDelegate* change_delegate, | 57 ChangeDelegate* change_delegate, |
| 58 const SyncCredentials& credentials, | 58 const SyncCredentials& credentials, |
| 59 scoped_ptr<syncer::SyncNotifier> sync_notifier, | 59 scoped_ptr<syncer::SyncNotifier> sync_notifier, |
| 60 const std::string& restored_key_for_bootstrapping, | 60 const std::string& restored_key_for_bootstrapping, |
| 61 bool keystore_encryption_enabled, |
| 61 TestingMode testing_mode, | 62 TestingMode testing_mode, |
| 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>(), |
| (...skipping 131 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 |