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

Unified Diff: sync/engine/sync_scheduler_whitebox_unittest.cc

Issue 12538015: sync: Handle POLL jobs in separate a code path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« sync/engine/sync_scheduler_impl.cc ('K') | « sync/engine/sync_scheduler_impl.cc ('k') | no next file » | 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 01adb85ee79235a2e179980e6fef2fdf583cd63f..8c6ddbf41afb9d93ee577106dd4c316cfb23e84b 100644
--- a/sync/engine/sync_scheduler_whitebox_unittest.cc
+++ b/sync/engine/sync_scheduler_whitebox_unittest.cc
@@ -174,25 +174,6 @@ TEST_F(SyncSchedulerWhiteboxTest, ContinueNudge) {
EXPECT_EQ(decision, SyncSchedulerImpl::CONTINUE);
}
-TEST_F(SyncSchedulerWhiteboxTest, DropPoll) {
rlarocque 2013/03/18 22:02:18 I think it's safe to drop these tests, since the l
- InitializeSyncerOnNormalMode();
- SetMode(SyncScheduler::CONFIGURATION_MODE);
-
- SyncSchedulerImpl::JobProcessDecision decision = CreateAndDecideJob(
- SyncSessionJob::POLL);
-
- EXPECT_EQ(decision, SyncSchedulerImpl::DROP);
-}
-
-TEST_F(SyncSchedulerWhiteboxTest, ContinuePoll) {
- InitializeSyncerOnNormalMode();
-
- SyncSchedulerImpl::JobProcessDecision decision = CreateAndDecideJob(
- SyncSessionJob::POLL);
-
- EXPECT_EQ(decision, SyncSchedulerImpl::CONTINUE);
-}
-
TEST_F(SyncSchedulerWhiteboxTest, ContinueConfiguration) {
InitializeSyncerOnNormalMode();
SetMode(SyncScheduler::CONFIGURATION_MODE);
« sync/engine/sync_scheduler_impl.cc ('K') | « sync/engine/sync_scheduler_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698