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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
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 "components/sync/test/engine/fake_sync_scheduler.h"
6 6
7 namespace syncer { 7 namespace syncer {
8 8
9 FakeSyncScheduler::FakeSyncScheduler() {} 9 FakeSyncScheduler::FakeSyncScheduler() {}
10 10
11 FakeSyncScheduler::~FakeSyncScheduler() {} 11 FakeSyncScheduler::~FakeSyncScheduler() {}
12 12
13 void FakeSyncScheduler::Start(Mode mode, base::Time last_poll_time) { 13 void FakeSyncScheduler::Start(Mode mode, base::Time last_poll_time) {}
14 }
15 14
16 void FakeSyncScheduler::Stop() { 15 void FakeSyncScheduler::Stop() {}
17 }
18 16
19 void FakeSyncScheduler::ScheduleLocalNudge( 17 void FakeSyncScheduler::ScheduleLocalNudge(
20 ModelTypeSet types, 18 ModelTypeSet types,
21 const tracked_objects::Location& nudge_location) { 19 const tracked_objects::Location& nudge_location) {}
22 }
23 20
24 void FakeSyncScheduler::ScheduleLocalRefreshRequest( 21 void FakeSyncScheduler::ScheduleLocalRefreshRequest(
25 ModelTypeSet types, 22 ModelTypeSet types,
26 const tracked_objects::Location& nudge_location) { 23 const tracked_objects::Location& nudge_location) {}
27 }
28 24
29 void FakeSyncScheduler::ScheduleInvalidationNudge( 25 void FakeSyncScheduler::ScheduleInvalidationNudge(
30 syncer::ModelType type, 26 syncer::ModelType type,
31 std::unique_ptr<InvalidationInterface> interface, 27 std::unique_ptr<InvalidationInterface> interface,
32 const tracked_objects::Location& nudge_location) {} 28 const tracked_objects::Location& nudge_location) {}
33 29
34 void FakeSyncScheduler::ScheduleConfiguration( 30 void FakeSyncScheduler::ScheduleConfiguration(
35 const ConfigurationParams& params) { 31 const ConfigurationParams& params) {
36 params.ready_task.Run(); 32 params.ready_task.Run();
37 } 33 }
38 34
39 void FakeSyncScheduler::ScheduleClearServerData(const ClearParams& params) { 35 void FakeSyncScheduler::ScheduleClearServerData(const ClearParams& params) {
40 params.report_success_task.Run(); 36 params.report_success_task.Run();
41 } 37 }
42 38
43 void FakeSyncScheduler::ScheduleInitialSyncNudge(syncer::ModelType model_type) { 39 void FakeSyncScheduler::ScheduleInitialSyncNudge(syncer::ModelType model_type) {
44 } 40 }
45 41
46 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) { 42 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {}
47 }
48 43
49 void FakeSyncScheduler::OnCredentialsUpdated() { 44 void FakeSyncScheduler::OnCredentialsUpdated() {}
50 }
51 45
52 void FakeSyncScheduler::OnConnectionStatusChange() { 46 void FakeSyncScheduler::OnConnectionStatusChange() {}
53 }
54 47
55 void FakeSyncScheduler::OnThrottled( 48 void FakeSyncScheduler::OnThrottled(const base::TimeDelta& throttle_duration) {}
56 const base::TimeDelta& throttle_duration) {
57 }
58 49
59 void FakeSyncScheduler::OnTypesThrottled( 50 void FakeSyncScheduler::OnTypesThrottled(
60 ModelTypeSet types, 51 ModelTypeSet types,
61 const base::TimeDelta& throttle_duration) { 52 const base::TimeDelta& throttle_duration) {}
62 }
63 53
64 bool FakeSyncScheduler::IsCurrentlyThrottled() { 54 bool FakeSyncScheduler::IsCurrentlyThrottled() {
65 return false; 55 return false;
66 } 56 }
67 57
68 void FakeSyncScheduler::OnReceivedShortPollIntervalUpdate( 58 void FakeSyncScheduler::OnReceivedShortPollIntervalUpdate(
69 const base::TimeDelta& new_interval) { 59 const base::TimeDelta& new_interval) {}
70 }
71 60
72 void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate( 61 void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate(
73 const base::TimeDelta& new_interval) { 62 const base::TimeDelta& new_interval) {}
74 }
75 63
76 void FakeSyncScheduler::OnReceivedCustomNudgeDelays( 64 void FakeSyncScheduler::OnReceivedCustomNudgeDelays(
77 const std::map<ModelType, base::TimeDelta>& nudge_delays) { 65 const std::map<ModelType, base::TimeDelta>& nudge_delays) {}
78 }
79 66
80 void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size) { 67 void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size) {}
81 }
82 68
83 void FakeSyncScheduler::OnSyncProtocolError(const SyncProtocolError& error) { 69 void FakeSyncScheduler::OnSyncProtocolError(const SyncProtocolError& error) {}
84 }
85 70
86 void FakeSyncScheduler::OnReceivedGuRetryDelay( 71 void FakeSyncScheduler::OnReceivedGuRetryDelay(const base::TimeDelta& delay) {}
87 const base::TimeDelta& delay) {
88 }
89 72
90 void FakeSyncScheduler::OnReceivedMigrationRequest(ModelTypeSet types) { 73 void FakeSyncScheduler::OnReceivedMigrationRequest(ModelTypeSet types) {}
91 }
92 74
93 } // namespace syncer 75 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/test/engine/fake_sync_scheduler.h ('k') | components/sync/test/engine/mock_connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698