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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
162 InvalidationHandler* handler, | 162 InvalidationHandler* handler, |
163 const ObjectIdSet& ids) { | 163 const ObjectIdSet& ids) { |
164 registrar_.UpdateRegisteredIds(handler, ids); | 164 registrar_.UpdateRegisteredIds(handler, ids); |
165 } | 165 } |
166 | 166 |
167 void FakeSyncManager::UnregisterInvalidationHandler( | 167 void FakeSyncManager::UnregisterInvalidationHandler( |
168 InvalidationHandler* handler) { | 168 InvalidationHandler* handler) { |
169 registrar_.UnregisterHandler(handler); | 169 registrar_.UnregisterHandler(handler); |
170 } | 170 } |
171 | 171 |
172 void FakeSyncManager::AcknowledgeInvalidation(const invalidation::ObjectId& id, | |
173 const AckHandle& ack_handle) { | |
174 } | |
akalin
2012/10/19 13:27:16
add "// Do nothing." comment
dcheng
2012/10/19 19:38:11
Done.
| |
175 | |
172 void FakeSyncManager::StartSyncingNormally( | 176 void FakeSyncManager::StartSyncingNormally( |
173 const ModelSafeRoutingInfo& routing_info) { | 177 const ModelSafeRoutingInfo& routing_info) { |
174 // Do nothing. | 178 // Do nothing. |
175 } | 179 } |
176 | 180 |
177 void FakeSyncManager::ConfigureSyncer( | 181 void FakeSyncManager::ConfigureSyncer( |
178 ConfigureReason reason, | 182 ConfigureReason reason, |
179 ModelTypeSet types_to_config, | 183 ModelTypeSet types_to_config, |
180 const ModelSafeRoutingInfo& new_routing_info, | 184 const ModelSafeRoutingInfo& new_routing_info, |
181 const base::Closure& ready_task, | 185 const base::Closure& ready_task, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
258 registrar_.DispatchInvalidationsToHandlers(invalidation_map, source); | 262 registrar_.DispatchInvalidationsToHandlers(invalidation_map, source); |
259 } | 263 } |
260 | 264 |
261 void FakeSyncManager::UpdateInvalidatorStateOnSyncThread( | 265 void FakeSyncManager::UpdateInvalidatorStateOnSyncThread( |
262 InvalidatorState state) { | 266 InvalidatorState state) { |
263 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 267 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
264 registrar_.UpdateInvalidatorState(state); | 268 registrar_.UpdateInvalidatorState(state); |
265 } | 269 } |
266 | 270 |
267 } // namespace syncer | 271 } // namespace syncer |
OLD | NEW |