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

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

Issue 322333004: sync: Inject sync/'s dependency on invalidations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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
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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 syncer::TypeDebugInfoObserver* observer) {} 256 syncer::TypeDebugInfoObserver* observer) {}
257 257
258 bool FakeSyncManager::HasDirectoryTypeDebugInfoObserver( 258 bool FakeSyncManager::HasDirectoryTypeDebugInfoObserver(
259 syncer::TypeDebugInfoObserver* observer) { 259 syncer::TypeDebugInfoObserver* observer) {
260 return false; 260 return false;
261 } 261 }
262 262
263 void FakeSyncManager::RequestEmitDebugInfo() {} 263 void FakeSyncManager::RequestEmitDebugInfo() {}
264 264
265 void FakeSyncManager::OnIncomingInvalidation( 265 void FakeSyncManager::OnIncomingInvalidation(
266 const ObjectIdInvalidationMap& invalidation_map) { 266 syncer::ModelType type,
267 scoped_ptr<InvalidationInterface> invalidation) {
267 // Do nothing. 268 // Do nothing.
268 } 269 }
269 270
270 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() { 271 ModelTypeSet FakeSyncManager::GetLastRefreshRequestTypes() {
271 return last_refresh_request_types_; 272 return last_refresh_request_types_;
272 } 273 }
273 274
274 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) { 275 void FakeSyncManager::OnInvalidatorStateChange(InvalidatorState state) {
275 // Do nothing. 276 // Do nothing.
276 } 277 }
277 278
278 std::string FakeSyncManager::GetOwnerName() const { return "FakeSyncManager"; }
279
280 } // namespace syncer 279 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/sync_rollback_manager_base.cc ('k') | sync/notifier/dropped_invalidation_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698