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

Unified Diff: sync/sessions/sync_session_unittest.cc

Issue 10520010: Not for review: Support sync init with missing or corrupt store (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Documentation Created 8 years, 6 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
Index: sync/sessions/sync_session_unittest.cc
diff --git a/sync/sessions/sync_session_unittest.cc b/sync/sessions/sync_session_unittest.cc
index 012f33d2df8aa14ef33223057b737b6c4e942bf2..10542e1e423c0258f7c8baca8be5884cb9485602 100644
--- a/sync/sessions/sync_session_unittest.cc
+++ b/sync/sessions/sync_session_unittest.cc
@@ -39,16 +39,6 @@ class SyncSessionTest : public testing::Test,
}
virtual void SetUp() {
- ModelSafeRoutingInfo routing_info;
- std::vector<ModelSafeWorker*> workers;
-
- GetModelSafeRoutingInfo(&routing_info);
- GetWorkers(&workers);
-
- context_.reset(
- new SyncSessionContext(
- NULL, NULL, routing_info, workers, &extensions_activity_monitor_,
- std::vector<SyncEngineEventListener*>(), NULL, NULL));
routes_.clear();
routes_[syncable::BOOKMARKS] = GROUP_UI;
routes_[syncable::AUTOFILL] = GROUP_DB;
@@ -62,6 +52,16 @@ class SyncSessionTest : public testing::Test,
workers_.push_back(passive_worker);
workers_.push_back(ui_worker);
workers_.push_back(db_worker);
+
+ std::vector<ModelSafeWorker*> workers;
+ GetWorkers(&workers);
+
+ context_.reset(
+ new SyncSessionContext(
+ NULL, NULL, workers, &extensions_activity_monitor_,
+ std::vector<SyncEngineEventListener*>(), NULL, NULL));
+ context_->set_routing_info(routes_);
+
session_.reset(MakeSession());
}
virtual void TearDown() {

Powered by Google App Engine
This is Rietveld 408576698