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

Unified 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: test 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 side-by-side diff with in-line comments
Download patch
Index: sync/test/engine/fake_sync_scheduler.cc
diff --git a/sync/test/engine/fake_sync_scheduler.cc b/sync/test/engine/fake_sync_scheduler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..845102a07ea199310cd9572e368d87ffb99fad02
--- /dev/null
+++ b/sync/test/engine/fake_sync_scheduler.cc
@@ -0,0 +1,71 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "sync/test/engine/fake_sync_scheduler.h"
+
+#include "sync/engine/syncer.h"
+
+namespace syncer {
+
+FakeSyncScheduler::FakeSyncScheduler()
+ : SyncScheduler("fake", NULL, new Syncer()),
+ created_on_loop_(MessageLoop::current()) {}
+
+FakeSyncScheduler::~FakeSyncScheduler() {}
+
+void FakeSyncScheduler::Start(Mode mode) {
+}
+
+void FakeSyncScheduler::RequestStop(const base::Closure& callback) {
+ created_on_loop_->PostTask(FROM_HERE, callback);
+}
+
+void FakeSyncScheduler::ScheduleNudgeAsync(
+ const base::TimeDelta& delay,
+ NudgeSource source,
+ ModelTypeSet types,
+ const tracked_objects::Location& nudge_location) {
+}
+
+void FakeSyncScheduler::ScheduleNudgeWithPayloadsAsync(
+ const base::TimeDelta& delay, NudgeSource source,
+ const ModelTypePayloadMap& types_with_payloads,
+ const tracked_objects::Location& nudge_location) {
+}
+
+bool FakeSyncScheduler::ScheduleConfiguration(
+ const ConfigurationParams& params) {
Nicolas Zea 2012/07/18 21:10:12 probably should invoke the ready callback.
tim (not reviewing) 2012/07/18 21:57:47 Done.
+ return true;
+}
+
+void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {
+}
+
+void FakeSyncScheduler::OnSilencedUntil(
+ const base::TimeTicks& silenced_until) {
+}
+bool FakeSyncScheduler::IsSyncingCurrentlySilenced() {
+ return false;
+}
+
+void FakeSyncScheduler::OnReceivedShortPollIntervalUpdate(
+ const base::TimeDelta& new_interval) {
+}
+
+void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate(
+ const base::TimeDelta& new_interval) {
+}
+
+void FakeSyncScheduler::OnReceivedSessionsCommitDelay(
+ const base::TimeDelta& new_delay) {
+}
+
+void FakeSyncScheduler::OnShouldStopSyncingPermanently() {
+}
+
+void FakeSyncScheduler::OnSyncProtocolError(
+ const sessions::SyncSessionSnapshot& snapshot) {
+}
+
+} // namespace csync
Nicolas Zea 2012/07/18 21:10:12 csync -> syncer
tim (not reviewing) 2012/07/18 21:57:47 Done.
« sync/test/engine/fake_sync_scheduler.h ('K') | « sync/test/engine/fake_sync_scheduler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698