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

Side by Side Diff: sync/test/engine/fake_sync_scheduler.cc

Issue 11052007: Rename ModelType/ObjectIdStateMap to InvalidationMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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/test/engine/fake_sync_scheduler.h ('k') | sync/test/engine/mock_connection_manager.h » ('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/test/engine/fake_sync_scheduler.h" 5 #include "sync/test/engine/fake_sync_scheduler.h"
6 6
7 namespace syncer { 7 namespace syncer {
8 8
9 FakeSyncScheduler::FakeSyncScheduler() 9 FakeSyncScheduler::FakeSyncScheduler()
10 : created_on_loop_(MessageLoop::current()) {} 10 : created_on_loop_(MessageLoop::current()) {}
11 11
12 FakeSyncScheduler::~FakeSyncScheduler() {} 12 FakeSyncScheduler::~FakeSyncScheduler() {}
13 13
14 void FakeSyncScheduler::Start(Mode mode) { 14 void FakeSyncScheduler::Start(Mode mode) {
15 } 15 }
16 16
17 void FakeSyncScheduler::RequestStop(const base::Closure& callback) { 17 void FakeSyncScheduler::RequestStop(const base::Closure& callback) {
18 created_on_loop_->PostTask(FROM_HERE, callback); 18 created_on_loop_->PostTask(FROM_HERE, callback);
19 } 19 }
20 20
21 void FakeSyncScheduler::ScheduleNudgeAsync( 21 void FakeSyncScheduler::ScheduleNudgeAsync(
22 const base::TimeDelta& delay, 22 const base::TimeDelta& delay,
23 NudgeSource source, 23 NudgeSource source,
24 ModelTypeSet types, 24 ModelTypeSet types,
25 const tracked_objects::Location& nudge_location) { 25 const tracked_objects::Location& nudge_location) {
26 } 26 }
27 27
28 void FakeSyncScheduler::ScheduleNudgeWithStatesAsync( 28 void FakeSyncScheduler::ScheduleNudgeWithStatesAsync(
29 const base::TimeDelta& delay, NudgeSource source, 29 const base::TimeDelta& delay, NudgeSource source,
30 const ModelTypeStateMap& types_with_payloads, 30 const ModelTypeInvalidationMap& invalidation_map,
31 const tracked_objects::Location& nudge_location) { 31 const tracked_objects::Location& nudge_location) {
32 } 32 }
33 33
34 bool FakeSyncScheduler::ScheduleConfiguration( 34 bool FakeSyncScheduler::ScheduleConfiguration(
35 const ConfigurationParams& params) { 35 const ConfigurationParams& params) {
36 params.ready_task.Run(); 36 params.ready_task.Run();
37 return true; 37 return true;
38 } 38 }
39 39
40 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) { 40 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 void FakeSyncScheduler::OnShouldStopSyncingPermanently() { 74 void FakeSyncScheduler::OnShouldStopSyncingPermanently() {
75 } 75 }
76 76
77 void FakeSyncScheduler::OnSyncProtocolError( 77 void FakeSyncScheduler::OnSyncProtocolError(
78 const sessions::SyncSessionSnapshot& snapshot) { 78 const sessions::SyncSessionSnapshot& snapshot) {
79 } 79 }
80 80
81 } // namespace syncer 81 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/test/engine/fake_sync_scheduler.h ('k') | sync/test/engine/mock_connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698