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/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 const WeakHandle<JsEventHandler>& event_handler, | 90 const WeakHandle<JsEventHandler>& event_handler, |
91 const std::string& sync_server_and_path, | 91 const std::string& sync_server_and_path, |
92 int sync_server_port, | 92 int sync_server_port, |
93 bool use_ssl, | 93 bool use_ssl, |
94 scoped_ptr<HttpPostProviderFactory> post_factory, | 94 scoped_ptr<HttpPostProviderFactory> post_factory, |
95 const std::vector<ModelSafeWorker*>& workers, | 95 const std::vector<ModelSafeWorker*>& workers, |
96 ExtensionsActivityMonitor* extensions_activity_monitor, | 96 ExtensionsActivityMonitor* extensions_activity_monitor, |
97 ChangeDelegate* change_delegate, | 97 ChangeDelegate* change_delegate, |
98 const SyncCredentials& credentials, | 98 const SyncCredentials& credentials, |
99 scoped_ptr<Invalidator> invalidator, | 99 scoped_ptr<Invalidator> invalidator, |
| 100 const std::string& invalidator_client_id, |
100 const std::string& restored_key_for_bootstrapping, | 101 const std::string& restored_key_for_bootstrapping, |
101 const std::string& restored_keystore_key_for_bootstrapping, | 102 const std::string& restored_keystore_key_for_bootstrapping, |
102 scoped_ptr<InternalComponentsFactory> internal_components_factory, | 103 scoped_ptr<InternalComponentsFactory> internal_components_factory, |
103 Encryptor* encryptor, | 104 Encryptor* encryptor, |
104 UnrecoverableErrorHandler* unrecoverable_error_handler, | 105 UnrecoverableErrorHandler* unrecoverable_error_handler, |
105 ReportUnrecoverableErrorFunction | 106 ReportUnrecoverableErrorFunction |
106 report_unrecoverable_error_function) { | 107 report_unrecoverable_error_function) { |
107 sync_task_runner_ = base::ThreadTaskRunnerHandle::Get(); | 108 sync_task_runner_ = base::ThreadTaskRunnerHandle::Get(); |
108 PurgePartiallySyncedTypes(); | 109 PurgePartiallySyncedTypes(); |
109 | 110 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 InvalidatorState state) { | 290 InvalidatorState state) { |
290 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 291 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
291 registrar_.UpdateInvalidatorState(state); | 292 registrar_.UpdateInvalidatorState(state); |
292 } | 293 } |
293 | 294 |
294 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { | 295 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { |
295 return last_refresh_request_types_; | 296 return last_refresh_request_types_; |
296 } | 297 } |
297 | 298 |
298 } // namespace syncer | 299 } // namespace syncer |
OLD | NEW |