summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/profile_sync_factory_impl_unittest.cc
diff options
context:
space:
mode:
authordantasse@chromium.org <dantasse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-08 00:03:07 +0000
committerdantasse@chromium.org <dantasse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-08 00:03:07 +0000
commitf4f771057c8e0b0971b3ea68c8a587b5a6b4a4fe (patch)
tree43da67db6c27ca993392ca2c898a287f35696295 /chrome/browser/sync/profile_sync_factory_impl_unittest.cc
parent2cccf183b98148ef9d52a0bedf301b9dd5988ec8 (diff)
downloadchromium_src-f4f771057c8e0b0971b3ea68c8a587b5a6b4a4fe.zip
chromium_src-f4f771057c8e0b0971b3ea68c8a587b5a6b4a4fe.tar.gz
chromium_src-f4f771057c8e0b0971b3ea68c8a587b5a6b4a4fe.tar.bz2
Turn on theme sync by default.
BUG:none TEST: click the "customize sync" button in the sync setup wizard or in options->personal stuff. There should be a Themes checkbox. Theme sync still has a bug (see http://codereview.chromium.org/1633002/show) but will be fixed soon. Review URL: http://codereview.chromium.org/1508025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/profile_sync_factory_impl_unittest.cc')
-rw-r--r--chrome/browser/sync/profile_sync_factory_impl_unittest.cc20
1 files changed, 12 insertions, 8 deletions
diff --git a/chrome/browser/sync/profile_sync_factory_impl_unittest.cc b/chrome/browser/sync/profile_sync_factory_impl_unittest.cc
index 4df2485..b63c23a 100644
--- a/chrome/browser/sync/profile_sync_factory_impl_unittest.cc
+++ b/chrome/browser/sync/profile_sync_factory_impl_unittest.cc
@@ -43,10 +43,11 @@ TEST_F(ProfileSyncFactoryImplTest, CreatePSSDefault) {
DataTypeController::StateMap controller_states;
DataTypeController::StateMap* controller_states_ptr = &controller_states;
pss->GetDataTypeControllerStates(controller_states_ptr);
- EXPECT_EQ(3U, controller_states_ptr->size());
+ EXPECT_EQ(4U, controller_states_ptr->size());
EXPECT_EQ(1U, controller_states_ptr->count(syncable::BOOKMARKS));
EXPECT_EQ(1U, controller_states_ptr->count(syncable::PREFERENCES));
EXPECT_EQ(1U, controller_states_ptr->count(syncable::AUTOFILL));
+ EXPECT_EQ(1U, controller_states_ptr->count(syncable::THEMES));
}
TEST_F(ProfileSyncFactoryImplTest, CreatePSSDisableAutofill) {
@@ -56,10 +57,11 @@ TEST_F(ProfileSyncFactoryImplTest, CreatePSSDisableAutofill) {
DataTypeController::StateMap controller_states;
DataTypeController::StateMap* controller_states_ptr = &controller_states;
pss->GetDataTypeControllerStates(controller_states_ptr);
- EXPECT_EQ(2U, controller_states_ptr->size());
+ EXPECT_EQ(3U, controller_states_ptr->size());
EXPECT_EQ(1U, controller_states_ptr->count(syncable::BOOKMARKS));
EXPECT_EQ(1U, controller_states_ptr->count(syncable::PREFERENCES));
EXPECT_EQ(0U, controller_states_ptr->count(syncable::AUTOFILL));
+ EXPECT_EQ(1U, controller_states_ptr->count(syncable::THEMES));
}
TEST_F(ProfileSyncFactoryImplTest, CreatePSSDisableBookmarks) {
@@ -69,10 +71,11 @@ TEST_F(ProfileSyncFactoryImplTest, CreatePSSDisableBookmarks) {
DataTypeController::StateMap controller_states;
DataTypeController::StateMap* controller_states_ptr = &controller_states;
pss->GetDataTypeControllerStates(controller_states_ptr);
- EXPECT_EQ(2U, controller_states_ptr->size());
+ EXPECT_EQ(3U, controller_states_ptr->size());
EXPECT_EQ(0U, controller_states_ptr->count(syncable::BOOKMARKS));
EXPECT_EQ(1U, controller_states_ptr->count(syncable::PREFERENCES));
EXPECT_EQ(1U, controller_states_ptr->count(syncable::AUTOFILL));
+ EXPECT_EQ(1U, controller_states_ptr->count(syncable::THEMES));
}
TEST_F(ProfileSyncFactoryImplTest, CreatePSSDisablePreferences) {
@@ -82,22 +85,23 @@ TEST_F(ProfileSyncFactoryImplTest, CreatePSSDisablePreferences) {
DataTypeController::StateMap controller_states;
DataTypeController::StateMap* controller_states_ptr = &controller_states;
pss->GetDataTypeControllerStates(controller_states_ptr);
- EXPECT_EQ(2U, controller_states_ptr->size());
+ EXPECT_EQ(3U, controller_states_ptr->size());
EXPECT_EQ(1U, controller_states_ptr->count(syncable::BOOKMARKS));
EXPECT_EQ(0U, controller_states_ptr->count(syncable::PREFERENCES));
EXPECT_EQ(1U, controller_states_ptr->count(syncable::AUTOFILL));
+ EXPECT_EQ(1U, controller_states_ptr->count(syncable::THEMES));
}
-TEST_F(ProfileSyncFactoryImplTest, CreatePSSEnableThemes) {
- command_line_->AppendSwitch(switches::kEnableSyncThemes);
+TEST_F(ProfileSyncFactoryImplTest, CreatePSSDisableThemes) {
+ command_line_->AppendSwitch(switches::kDisableSyncThemes);
scoped_ptr<ProfileSyncService> pss;
pss.reset(profile_sync_service_factory_->CreateProfileSyncService());
DataTypeController::StateMap controller_states;
DataTypeController::StateMap* controller_states_ptr = &controller_states;
pss->GetDataTypeControllerStates(controller_states_ptr);
- EXPECT_EQ(4U, controller_states_ptr->size());
+ EXPECT_EQ(3U, controller_states_ptr->size());
EXPECT_EQ(1U, controller_states_ptr->count(syncable::BOOKMARKS));
EXPECT_EQ(1U, controller_states_ptr->count(syncable::PREFERENCES));
EXPECT_EQ(1U, controller_states_ptr->count(syncable::AUTOFILL));
- EXPECT_EQ(1U, controller_states_ptr->count(syncable::THEMES));
+ EXPECT_EQ(0U, controller_states_ptr->count(syncable::THEMES));
}