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

Unified Diff: sync/engine/sync_scheduler_whitebox_unittest.cc

Issue 10825439: sync: remove buggy freshness condition in SyncSchedulerImpl add defensive DCHECKs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FIX Created 8 years, 3 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/engine/sync_scheduler_unittest.cc ('k') | sync/sessions/test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/sync_scheduler_whitebox_unittest.cc
diff --git a/sync/engine/sync_scheduler_whitebox_unittest.cc b/sync/engine/sync_scheduler_whitebox_unittest.cc
index 7f4dfdb4552155fb32d2950df2b28536e24de81c..0a9c73e6740c521bafb47f98259cbe162960b0e3 100644
--- a/sync/engine/sync_scheduler_whitebox_unittest.cc
+++ b/sync/engine/sync_scheduler_whitebox_unittest.cc
@@ -71,10 +71,6 @@ class SyncSchedulerWhiteboxTest : public testing::Test {
scheduler_->mode_ = mode;
}
- void SetLastSyncedTime(base::TimeTicks ticks) {
- scheduler_->last_sync_session_end_time_ = ticks;
- }
-
void ResetWaitInterval() {
scheduler_->wait_interval_.reset();
}
@@ -103,7 +99,6 @@ class SyncSchedulerWhiteboxTest : public testing::Test {
void InitializeSyncerOnNormalMode() {
SetMode(SyncScheduler::NORMAL_MODE);
ResetWaitInterval();
- SetLastSyncedTime(base::TimeTicks::Now());
}
SyncSchedulerImpl::JobProcessDecision CreateAndDecideJob(
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/sessions/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698