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