| 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 <cstddef> | 7 #include <cstddef> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 } | 98 } |
| 99 run_loop.Run(); | 99 run_loop.Run(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void FakeSyncManager::Init( | 102 void FakeSyncManager::Init( |
| 103 const FilePath& database_location, | 103 const FilePath& database_location, |
| 104 const WeakHandle<JsEventHandler>& event_handler, | 104 const WeakHandle<JsEventHandler>& event_handler, |
| 105 const std::string& sync_server_and_path, | 105 const std::string& sync_server_and_path, |
| 106 int sync_server_port, | 106 int sync_server_port, |
| 107 bool use_ssl, | 107 bool use_ssl, |
| 108 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | |
| 109 scoped_ptr<HttpPostProviderFactory> post_factory, | 108 scoped_ptr<HttpPostProviderFactory> post_factory, |
| 110 const std::vector<ModelSafeWorker*>& workers, | 109 const std::vector<ModelSafeWorker*>& workers, |
| 111 ExtensionsActivityMonitor* extensions_activity_monitor, | 110 ExtensionsActivityMonitor* extensions_activity_monitor, |
| 112 ChangeDelegate* change_delegate, | 111 ChangeDelegate* change_delegate, |
| 113 const SyncCredentials& credentials, | 112 const SyncCredentials& credentials, |
| 114 scoped_ptr<Invalidator> invalidator, | 113 scoped_ptr<Invalidator> invalidator, |
| 115 const std::string& restored_key_for_bootstrapping, | 114 const std::string& restored_key_for_bootstrapping, |
| 116 const std::string& restored_keystore_key_for_bootstrapping, | 115 const std::string& restored_keystore_key_for_bootstrapping, |
| 117 scoped_ptr<InternalComponentsFactory> internal_components_factory, | 116 scoped_ptr<InternalComponentsFactory> internal_components_factory, |
| 118 Encryptor* encryptor, | 117 Encryptor* encryptor, |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 registrar_.EmitOnNotificationsEnabled(); | 271 registrar_.EmitOnNotificationsEnabled(); |
| 273 } | 272 } |
| 274 | 273 |
| 275 void FakeSyncManager::DisableNotificationsOnSyncThread( | 274 void FakeSyncManager::DisableNotificationsOnSyncThread( |
| 276 NotificationsDisabledReason reason) { | 275 NotificationsDisabledReason reason) { |
| 277 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 276 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
| 278 registrar_.EmitOnNotificationsDisabled(reason); | 277 registrar_.EmitOnNotificationsDisabled(reason); |
| 279 } | 278 } |
| 280 | 279 |
| 281 } // namespace syncer | 280 } // namespace syncer |
| OLD | NEW |