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

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

Issue 10701046: sync: Remove SyncManager::TestingMode in favour of InternalComponentsFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: now with more scope Created 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "sync/test/engine/fake_sync_scheduler.h"
6
7 namespace syncer {
8
9 FakeSyncScheduler::FakeSyncScheduler()
10 : created_on_loop_(MessageLoop::current()) {}
11
12 FakeSyncScheduler::~FakeSyncScheduler() {}
13
14 void FakeSyncScheduler::Start(Mode mode) {
15 }
16
17 void FakeSyncScheduler::RequestStop(const base::Closure& callback) {
18 created_on_loop_->PostTask(FROM_HERE, callback);
19 }
20
21 void FakeSyncScheduler::ScheduleNudgeAsync(
22 const base::TimeDelta& delay,
23 NudgeSource source,
24 ModelTypeSet types,
25 const tracked_objects::Location& nudge_location) {
26 }
27
28 void FakeSyncScheduler::ScheduleNudgeWithPayloadsAsync(
29 const base::TimeDelta& delay, NudgeSource source,
30 const ModelTypePayloadMap& types_with_payloads,
31 const tracked_objects::Location& nudge_location) {
32 }
33
34 bool FakeSyncScheduler::ScheduleConfiguration(
35 const ConfigurationParams& params) {
36 params.ready_task.Run();
37 return true;
38 }
39
40 void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {
41 }
42
43 base::TimeDelta FakeSyncScheduler::GetSessionsCommitDelay() const {
44 return base::TimeDelta();
45 }
46
47 void FakeSyncScheduler::OnCredentialsUpdated() {
48
49 }
50
51 void FakeSyncScheduler::OnConnectionStatusChange() {
52
53 }
54
55 void FakeSyncScheduler::OnSilencedUntil(
56 const base::TimeTicks& silenced_until) {
57 }
58 bool FakeSyncScheduler::IsSyncingCurrentlySilenced() {
59 return false;
60 }
61
62 void FakeSyncScheduler::OnReceivedShortPollIntervalUpdate(
63 const base::TimeDelta& new_interval) {
64 }
65
66 void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate(
67 const base::TimeDelta& new_interval) {
68 }
69
70 void FakeSyncScheduler::OnReceivedSessionsCommitDelay(
71 const base::TimeDelta& new_delay) {
72 }
73
74 void FakeSyncScheduler::OnShouldStopSyncingPermanently() {
75 }
76
77 void FakeSyncScheduler::OnSyncProtocolError(
78 const sessions::SyncSessionSnapshot& snapshot) {
79 }
80
81 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698