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: components/browser_sync/profile_sync_service_unittest.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 10 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: components/browser_sync/profile_sync_service_unittest.cc
diff --git a/components/browser_sync/profile_sync_service_unittest.cc b/components/browser_sync/profile_sync_service_unittest.cc
index 935d62fc92c66b29d89748a227f13e5a4ab48167..2c5d0ad7787a056a64814f349859723e0b24138b 100644
--- a/components/browser_sync/profile_sync_service_unittest.cc
+++ b/components/browser_sync/profile_sync_service_unittest.cc
@@ -373,8 +373,7 @@ TEST_F(ProfileSyncServiceTest, InitialState) {
// Verify a successful initialization.
TEST_F(ProfileSyncServiceTest, SuccessfulInitialization) {
- prefs()->SetManagedPref(syncer::prefs::kSyncManaged,
- new base::FundamentalValue(false));
+ prefs()->SetManagedPref(syncer::prefs::kSyncManaged, new base::Value(false));
IssueTestTokens();
CreateService(ProfileSyncService::AUTO_START);
ExpectDataTypeManagerCreation(1, GetDefaultConfigureCalledCallback());
@@ -386,8 +385,7 @@ TEST_F(ProfileSyncServiceTest, SuccessfulInitialization) {
// Verify a successful initialization.
TEST_F(ProfileSyncServiceTest, SuccessfulLocalBackendInitialization) {
- prefs()->SetManagedPref(syncer::prefs::kSyncManaged,
- new base::FundamentalValue(false));
+ prefs()->SetManagedPref(syncer::prefs::kSyncManaged, new base::Value(false));
IssueTestTokens();
CreateServiceWithLocalSyncBackend();
ExpectDataTypeManagerCreation(1, GetDefaultConfigureCalledCallback());
@@ -400,8 +398,7 @@ TEST_F(ProfileSyncServiceTest, SuccessfulLocalBackendInitialization) {
// Verify that an initialization where first setup is not complete does not
// start up the backend.
TEST_F(ProfileSyncServiceTest, NeedsConfirmation) {
- prefs()->SetManagedPref(syncer::prefs::kSyncManaged,
- new base::FundamentalValue(false));
+ prefs()->SetManagedPref(syncer::prefs::kSyncManaged, new base::Value(false));
IssueTestTokens();
CreateService(ProfileSyncService::MANUAL_START);
syncer::SyncPrefs sync_prefs(prefs());
@@ -436,8 +433,7 @@ TEST_F(ProfileSyncServiceTest, SetupInProgress) {
// Verify that disable by enterprise policy works.
TEST_F(ProfileSyncServiceTest, DisabledByPolicyBeforeInit) {
- prefs()->SetManagedPref(syncer::prefs::kSyncManaged,
- new base::FundamentalValue(true));
+ prefs()->SetManagedPref(syncer::prefs::kSyncManaged, new base::Value(true));
IssueTestTokens();
CreateService(ProfileSyncService::AUTO_START);
InitializeForNthSync();
@@ -457,8 +453,7 @@ TEST_F(ProfileSyncServiceTest, DisabledByPolicyAfterInit) {
EXPECT_FALSE(service()->IsManaged());
EXPECT_TRUE(service()->IsSyncActive());
- prefs()->SetManagedPref(syncer::prefs::kSyncManaged,
- new base::FundamentalValue(true));
+ prefs()->SetManagedPref(syncer::prefs::kSyncManaged, new base::Value(true));
EXPECT_TRUE(service()->IsManaged());
EXPECT_FALSE(service()->IsSyncActive());

Powered by Google App Engine
This is Rietveld 408576698