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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 } | 88 } |
89 run_loop.Run(); | 89 run_loop.Run(); |
90 } | 90 } |
91 | 91 |
92 void FakeSyncManager::Init( | 92 void FakeSyncManager::Init( |
93 const FilePath& database_location, | 93 const FilePath& database_location, |
94 const WeakHandle<JsEventHandler>& event_handler, | 94 const WeakHandle<JsEventHandler>& event_handler, |
95 const std::string& sync_server_and_path, | 95 const std::string& sync_server_and_path, |
96 int sync_server_port, | 96 int sync_server_port, |
97 bool use_ssl, | 97 bool use_ssl, |
98 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | |
99 scoped_ptr<HttpPostProviderFactory> post_factory, | 98 scoped_ptr<HttpPostProviderFactory> post_factory, |
100 const std::vector<ModelSafeWorker*>& workers, | 99 const std::vector<ModelSafeWorker*>& workers, |
101 ExtensionsActivityMonitor* extensions_activity_monitor, | 100 ExtensionsActivityMonitor* extensions_activity_monitor, |
102 ChangeDelegate* change_delegate, | 101 ChangeDelegate* change_delegate, |
103 const SyncCredentials& credentials, | 102 const SyncCredentials& credentials, |
104 scoped_ptr<Invalidator> invalidator, | 103 scoped_ptr<Invalidator> invalidator, |
105 const std::string& restored_key_for_bootstrapping, | 104 const std::string& restored_key_for_bootstrapping, |
106 const std::string& restored_keystore_key_for_bootstrapping, | 105 const std::string& restored_keystore_key_for_bootstrapping, |
107 scoped_ptr<InternalComponentsFactory> internal_components_factory, | 106 scoped_ptr<InternalComponentsFactory> internal_components_factory, |
108 Encryptor* encryptor, | 107 Encryptor* encryptor, |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 registrar_.DispatchInvalidationsToHandlers(id_state_map, source); | 256 registrar_.DispatchInvalidationsToHandlers(id_state_map, source); |
258 } | 257 } |
259 | 258 |
260 void FakeSyncManager::UpdateInvalidatorStateOnSyncThread( | 259 void FakeSyncManager::UpdateInvalidatorStateOnSyncThread( |
261 InvalidatorState state) { | 260 InvalidatorState state) { |
262 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 261 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
263 registrar_.UpdateInvalidatorState(state); | 262 registrar_.UpdateInvalidatorState(state); |
264 } | 263 } |
265 | 264 |
266 } // namespace syncer | 265 } // namespace syncer |
OLD | NEW |