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

Unified Diff: sync/engine/syncer_unittest.cc

Issue 72403003: sync: Per-type update application (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + fix typo Created 7 years 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_command.cc ('k') | sync/engine/update_applicator.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 684b404240ed4f28bc4c25c3b4fc054e94ddf6c8..1678ba611fc4c618805236d51913c63dcc4bbc0a 100644
--- a/sync/engine/syncer_unittest.cc
+++ b/sync/engine/syncer_unittest.cc
@@ -189,7 +189,7 @@ class SyncerTest : public testing::Test,
EXPECT_TRUE(
syncer_->NormalSyncShare(
- GetRoutingInfoTypes(context_->routing_info()),
+ context_->enabled_types(),
nudge_tracker_,
session_.get()));
}
@@ -197,7 +197,7 @@ class SyncerTest : public testing::Test,
void SyncShareConfigure() {
session_.reset(SyncSession::Build(context_.get(), this));
EXPECT_TRUE(syncer_->ConfigureSyncShare(
- GetRoutingInfoTypes(context_->routing_info()),
+ context_->enabled_types(),
sync_pb::GetUpdatesCallerInfo::RECONFIGURATION,
session_.get()));
}
@@ -544,8 +544,7 @@ TEST_F(SyncerTest, GetCommitIdsFiltersThrottledEntries) {
// Now sync without enabling bookmarks.
syncer_->NormalSyncShare(
- Difference(GetRoutingInfoTypes(context_->routing_info()),
- ModelTypeSet(BOOKMARKS)),
+ Difference(context_->enabled_types(), ModelTypeSet(BOOKMARKS)),
nudge_tracker_,
session_.get());
@@ -559,7 +558,7 @@ TEST_F(SyncerTest, GetCommitIdsFiltersThrottledEntries) {
// Sync again with bookmarks enabled.
syncer_->NormalSyncShare(
- GetRoutingInfoTypes(context_->routing_info()),
+ context_->enabled_types(),
nudge_tracker_,
session_.get());
SyncShareNudge();
« no previous file with comments | « sync/engine/syncer_command.cc ('k') | sync/engine/update_applicator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698