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

Unified Diff: sync/test/engine/fake_sync_scheduler.cc

Issue 488843002: [Sync] Add support for server controlled nudge delays (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/test/engine/fake_sync_scheduler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 817b37c993dcc132aad5b3badbb71495eeccc4d7..a9b6f57d490479df16493f57f5062ddc6cc08a29 100644
--- a/sync/test/engine/fake_sync_scheduler.cc
+++ b/sync/test/engine/fake_sync_scheduler.cc
@@ -17,19 +17,16 @@ void FakeSyncScheduler::Stop() {
}
void FakeSyncScheduler::ScheduleLocalNudge(
- const base::TimeDelta& desired_delay,
ModelTypeSet types,
const tracked_objects::Location& nudge_location) {
}
void FakeSyncScheduler::ScheduleLocalRefreshRequest(
- const base::TimeDelta& desired_delay,
ModelTypeSet types,
const tracked_objects::Location& nudge_location) {
}
void FakeSyncScheduler::ScheduleInvalidationNudge(
- const base::TimeDelta& desired_delay,
syncer::ModelType type,
scoped_ptr<InvalidationInterface> interface,
const tracked_objects::Location& nudge_location) {
@@ -46,10 +43,6 @@ void FakeSyncScheduler::ScheduleInitialSyncNudge(syncer::ModelType model_type) {
void FakeSyncScheduler::SetNotificationsEnabled(bool notifications_enabled) {
}
-base::TimeDelta FakeSyncScheduler::GetSessionsCommitDelay() const {
- return base::TimeDelta();
-}
-
void FakeSyncScheduler::OnCredentialsUpdated() {
}
@@ -72,15 +65,15 @@ bool FakeSyncScheduler::IsCurrentlyThrottled() {
}
void FakeSyncScheduler::OnReceivedShortPollIntervalUpdate(
- const base::TimeDelta& new_interval) {
+ const base::TimeDelta& new_interval) {
}
void FakeSyncScheduler::OnReceivedLongPollIntervalUpdate(
- const base::TimeDelta& new_interval) {
+ const base::TimeDelta& new_interval) {
}
-void FakeSyncScheduler::OnReceivedSessionsCommitDelay(
- const base::TimeDelta& new_delay) {
+void FakeSyncScheduler::OnReceivedCustomNudgeDelays(
+ const std::map<ModelType, base::TimeDelta>& nudge_delays) {
}
void FakeSyncScheduler::OnReceivedClientInvalidationHintBufferSize(int size) {
« no previous file with comments | « 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