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

Unified Diff: chrome/browser/sync/glue/data_type_manager_impl_unittest.cc

Issue 266883007: Add a reason for configuring DTM for backup/rollback. In backup/rollback, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dtm test Created 6 years, 7 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 | « chrome/browser/sync/glue/data_type_manager_impl.cc ('k') | sync/internal_api/public/configure_reason.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/data_type_manager_impl_unittest.cc
diff --git a/chrome/browser/sync/glue/data_type_manager_impl_unittest.cc b/chrome/browser/sync/glue/data_type_manager_impl_unittest.cc
index 8046a01220954938034093ae1e41c3e1a5809adb..01da243067b61701327e8e112ccd7cf6a628a99f 100644
--- a/chrome/browser/sync/glue/data_type_manager_impl_unittest.cc
+++ b/chrome/browser/sync/glue/data_type_manager_impl_unittest.cc
@@ -1114,4 +1114,19 @@ TEST_F(SyncDataTypeManagerImplTest, FilterDesiredTypes) {
EXPECT_EQ(DataTypeManager::STOPPED, dtm_->state());
}
+TEST_F(SyncDataTypeManagerImplTest, ConfigureForBackupRollback) {
+ AddController(BOOKMARKS);
+
+ SetConfigureStartExpectation();
+
+
+ ModelTypeSet expected_types = syncer::ControlTypes();
+ expected_types.Put(BOOKMARKS);
+ configurer_.set_expected_configure_types(expected_types);
+ dtm_->set_priority_types(expected_types);
+
+ dtm_->Configure(ModelTypeSet(BOOKMARKS),
+ syncer::CONFIGURE_REASON_BACKUP_ROLLBACK);
+}
+
} // namespace browser_sync
« no previous file with comments | « chrome/browser/sync/glue/data_type_manager_impl.cc ('k') | sync/internal_api/public/configure_reason.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698