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

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

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. Created 4 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
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 "components/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 14
15 void FakeSyncScheduler::Stop() {} 15 void FakeSyncScheduler::Stop() {}
16 16
17 void FakeSyncScheduler::ScheduleLocalNudge( 17 void FakeSyncScheduler::ScheduleLocalNudge(
18 ModelTypeSet types, 18 ModelTypeSet types,
19 const tracked_objects::Location& nudge_location) {} 19 const tracked_objects::Location& nudge_location) {}
20 20
21 void FakeSyncScheduler::ScheduleLocalRefreshRequest( 21 void FakeSyncScheduler::ScheduleLocalRefreshRequest(
22 ModelTypeSet types, 22 ModelTypeSet types,
23 const tracked_objects::Location& nudge_location) {} 23 const tracked_objects::Location& nudge_location) {}
24 24
25 void FakeSyncScheduler::ScheduleInvalidationNudge( 25 void FakeSyncScheduler::ScheduleInvalidationNudge(
26 syncer::ModelType type, 26 ModelType type,
27 std::unique_ptr<InvalidationInterface> interface, 27 std::unique_ptr<InvalidationInterface> interface,
28 const tracked_objects::Location& nudge_location) {} 28 const tracked_objects::Location& nudge_location) {}
29 29
30 void FakeSyncScheduler::ScheduleConfiguration( 30 void FakeSyncScheduler::ScheduleConfiguration(
31 const ConfigurationParams& params) { 31 const ConfigurationParams& params) {
32 params.ready_task.Run(); 32 params.ready_task.Run();
33 } 33 }
34 34
35 void FakeSyncScheduler::ScheduleClearServerData(const ClearParams& params) { 35 void FakeSyncScheduler::ScheduleClearServerData(const ClearParams& params) {
36 params.report_success_task.Run(); 36 params.report_success_task.Run();
37 } 37 }
38 38
39 void FakeSyncScheduler::ScheduleInitialSyncNudge(syncer::ModelType model_type) { 39 void FakeSyncScheduler::ScheduleInitialSyncNudge(ModelType model_type) {}
40 }
41 40
42 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {} 41 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {}
43 42
44 void FakeSyncScheduler::OnCredentialsUpdated() {} 43 void FakeSyncScheduler::OnCredentialsUpdated() {}
45 44
46 void FakeSyncScheduler::OnConnectionStatusChange() {} 45 void FakeSyncScheduler::OnConnectionStatusChange() {}
47 46
48 void FakeSyncScheduler::OnThrottled(const base::TimeDelta& throttle_duration) {} 47 void FakeSyncScheduler::OnThrottled(const base::TimeDelta& throttle_duration) {}
49 48
50 void FakeSyncScheduler::OnTypesThrottled( 49 void FakeSyncScheduler::OnTypesThrottled(
(...skipping 15 matching lines...) Expand all
66 65
67 void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size) {} 66 void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size) {}
68 67
69 void FakeSyncScheduler::OnSyncProtocolError(const SyncProtocolError& error) {} 68 void FakeSyncScheduler::OnSyncProtocolError(const SyncProtocolError& error) {}
70 69
71 void FakeSyncScheduler::OnReceivedGuRetryDelay(const base::TimeDelta& delay) {} 70 void FakeSyncScheduler::OnReceivedGuRetryDelay(const base::TimeDelta& delay) {}
72 71
73 void FakeSyncScheduler::OnReceivedMigrationRequest(ModelTypeSet types) {} 72 void FakeSyncScheduler::OnReceivedMigrationRequest(ModelTypeSet types) {}
74 73
75 } // namespace syncer 74 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/test/engine/fake_sync_scheduler.h ('k') | components/sync/test/engine/mock_model_type_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698