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

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: 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 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..2327949e5223375621ab20869a72e4ad4e78bd69
--- /dev/null
+++ b/sync/test/engine/fake_sync_scheduler.cc
@@ -0,0 +1,81 @@
+// 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"
+
+namespace syncer {
+
+FakeSyncScheduler::FakeSyncScheduler()
+ : 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) {
+ params.ready_task.Run();
+ return true;
+}
+
+void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {
+}
+
+base::TimeDelta FakeSyncScheduler::GetSessionsCommitDelay() const {
+ return base::TimeDelta();
+}
+
+void FakeSyncScheduler::OnCredentialsUpdated() {
+
+}
+
+void FakeSyncScheduler::OnConnectionStatusChange() {
+
+}
+
+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 syncer

Powered by Google App Engine
This is Rietveld 408576698