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

Unified Diff: sync/engine/sync_scheduler_whitebox_unittest.cc

Issue 9348036: Trim code from sync's ServerConnectionManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after Fred's patch Created 8 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
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/sessions/test_util.h » ('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 35a095564b00759c026f9f6733d73fd80e2a3f87..33ddb29c567ec609fe49def64893a363b03668e3 100644
--- a/sync/engine/sync_scheduler_whitebox_unittest.cc
+++ b/sync/engine/sync_scheduler_whitebox_unittest.cc
@@ -34,7 +34,6 @@ class SyncSchedulerWhiteboxTest : public testing::Test {
routes[syncable::NIGORI] = GROUP_PASSIVE;
registrar_.reset(new FakeModelSafeWorkerRegistrar(routes));
connection_.reset(new MockConnectionManager(NULL));
- connection_->SetServerReachable();
context_ =
new SyncSessionContext(
connection_.get(), dir_maker_.directory(),
@@ -58,10 +57,6 @@ class SyncSchedulerWhiteboxTest : public testing::Test {
scheduler_->last_sync_session_end_time_ = ticks;
}
- void SetServerConnection(bool connected) {
- scheduler_->server_connection_ok_ = connected;
- }
-
void ResetWaitInterval() {
scheduler_->wait_interval_.reset();
}
@@ -90,7 +85,6 @@ class SyncSchedulerWhiteboxTest : public testing::Test {
void InitializeSyncerOnNormalMode() {
SetMode(SyncScheduler::NORMAL_MODE);
ResetWaitInterval();
- SetServerConnection(true);
SetLastSyncedTime(base::TimeTicks::Now());
}
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/sessions/test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698