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

Unified Diff: sync/engine/syncer_unittest.cc

Issue 13743003: sync: Finish the SyncScheduler refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix AuthErrorTest Created 7 years, 8 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_session_job_unittest.cc ('k') | sync/sessions/nudge_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/syncer_unittest.cc
diff --git a/sync/engine/syncer_unittest.cc b/sync/engine/syncer_unittest.cc
index 2dcc4b76927dbff3da79f789b84c8f9238c9b1f2..dc53f46317a675bdf4d4b69558f7e8c6d29be3dd 100644
--- a/sync/engine/syncer_unittest.cc
+++ b/sync/engine/syncer_unittest.cc
@@ -181,24 +181,15 @@ class SyncerTest : public testing::Test,
return new SyncSession(context_.get(), this, source_info);
}
-
- void SyncShareAsDelegate(SyncSessionJob::Purpose purpose) {
- SyncerStep start;
- SyncerStep end;
- SyncSessionJob::GetSyncerStepsForPurpose(purpose, &start, &end);
-
- session_.reset(MakeSession());
- EXPECT_TRUE(syncer_->SyncShare(session_.get(), start, end));
- }
-
void SyncShareNudge() {
session_.reset(MakeSession());
- SyncShareAsDelegate(SyncSessionJob::NUDGE);
+ EXPECT_TRUE(syncer_->SyncShare(session_.get(), SYNCER_BEGIN, SYNCER_END));
}
void SyncShareConfigure() {
session_.reset(MakeSession());
- SyncShareAsDelegate(SyncSessionJob::CONFIGURATION);
+ EXPECT_TRUE(
+ syncer_->SyncShare(session_.get(), DOWNLOAD_UPDATES, APPLY_UPDATES));
}
virtual void SetUp() {
« no previous file with comments | « sync/engine/sync_session_job_unittest.cc ('k') | sync/sessions/nudge_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698