| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 InvalidationHandler* handler, | 165 InvalidationHandler* handler, |
| 166 const ObjectIdSet& ids) { | 166 const ObjectIdSet& ids) { |
| 167 registrar_.UpdateRegisteredIds(handler, ids); | 167 registrar_.UpdateRegisteredIds(handler, ids); |
| 168 } | 168 } |
| 169 | 169 |
| 170 void FakeSyncManager::UnregisterInvalidationHandler( | 170 void FakeSyncManager::UnregisterInvalidationHandler( |
| 171 InvalidationHandler* handler) { | 171 InvalidationHandler* handler) { |
| 172 registrar_.UnregisterHandler(handler); | 172 registrar_.UnregisterHandler(handler); |
| 173 } | 173 } |
| 174 | 174 |
| 175 void FakeSyncManager::AcknowledgeInvalidation(const invalidation::ObjectId& id, |
| 176 const AckHandle& ack_handle) { |
| 177 // Do nothing. |
| 178 } |
| 179 |
| 175 void FakeSyncManager::StartSyncingNormally( | 180 void FakeSyncManager::StartSyncingNormally( |
| 176 const ModelSafeRoutingInfo& routing_info) { | 181 const ModelSafeRoutingInfo& routing_info) { |
| 177 // Do nothing. | 182 // Do nothing. |
| 178 } | 183 } |
| 179 | 184 |
| 180 void FakeSyncManager::ConfigureSyncer( | 185 void FakeSyncManager::ConfigureSyncer( |
| 181 ConfigureReason reason, | 186 ConfigureReason reason, |
| 182 ModelTypeSet types_to_config, | 187 ModelTypeSet types_to_config, |
| 183 ModelTypeSet failed_types, | 188 ModelTypeSet failed_types, |
| 184 const ModelSafeRoutingInfo& new_routing_info, | 189 const ModelSafeRoutingInfo& new_routing_info, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 InvalidatorState state) { | 289 InvalidatorState state) { |
| 285 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 290 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
| 286 registrar_.UpdateInvalidatorState(state); | 291 registrar_.UpdateInvalidatorState(state); |
| 287 } | 292 } |
| 288 | 293 |
| 289 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { | 294 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { |
| 290 return last_refresh_request_types_; | 295 return last_refresh_request_types_; |
| 291 } | 296 } |
| 292 | 297 |
| 293 } // namespace syncer | 298 } // namespace syncer |
| OLD | NEW |