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

Unified Diff: sync/engine/syncer_unittest.cc

Issue 19982002: sync: Remove SyncSourceInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Convert SyncShareRecords to typedef Created 7 years, 5 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/syncer.cc ('k') | sync/internal_api/debug_info_event_listener.cc » ('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 a2ccccfb23a5df3a165c6c3eb23a8ccf55cd90e4..b9bae1924b81a36a2d1e34d24f06b15384abf911 100644
--- a/sync/engine/syncer_unittest.cc
+++ b/sync/engine/syncer_unittest.cc
@@ -181,14 +181,7 @@ class SyncerTest : public testing::Test,
}
void SyncShareNudge() {
- ModelSafeRoutingInfo info;
- GetModelSafeRoutingInfo(&info);
- ModelTypeInvalidationMap invalidation_map =
- ModelSafeRoutingInfoToInvalidationMap(info, std::string());
- sessions::SyncSourceInfo source_info(
- sync_pb::GetUpdatesCallerInfo::LOCAL,
- invalidation_map);
- session_.reset(SyncSession::Build(context_.get(), this, source_info));
+ session_.reset(SyncSession::Build(context_.get(), this));
// Pretend we've seen a local change, to make the nudge_tracker look normal.
nudge_tracker_.RecordLocalChange(ModelTypeSet(BOOKMARKS));
@@ -201,18 +194,10 @@ class SyncerTest : public testing::Test,
}
void SyncShareConfigure() {
- ModelSafeRoutingInfo info;
- GetModelSafeRoutingInfo(&info);
- ModelTypeInvalidationMap invalidation_map =
- ModelSafeRoutingInfoToInvalidationMap(info, std::string());
- sessions::SyncSourceInfo source_info(
- sync_pb::GetUpdatesCallerInfo::RECONFIGURATION,
- invalidation_map);
- session_.reset(SyncSession::Build(context_.get(),
- this,
- source_info));
+ session_.reset(SyncSession::Build(context_.get(), this));
EXPECT_TRUE(syncer_->ConfigureSyncShare(
GetRoutingInfoTypes(context_->routing_info()),
+ sync_pb::GetUpdatesCallerInfo::RECONFIGURATION,
session_.get()));
}
« no previous file with comments | « sync/engine/syncer.cc ('k') | sync/internal_api/debug_info_event_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698