Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: sync/internal_api/test/fake_sync_manager.cc

Issue 10911084: Implement Invalidator::Acknowledge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adapt patch to new TickClock interface Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/internal_api/sync_manager_impl.cc ('k') | sync/notifier/ack_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl.cc ('k') | sync/notifier/ack_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698