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

Unified Diff: components/sync/driver/sync_policy_handler_unittest.cc

Issue 2427803002: [Sync] Replacing NULL with nullptr in code and null in comments for components/sync/ (Closed)
Patch Set: Fixing start of sentence capitlization. Created 4 years, 2 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/sync/driver/sync_policy_handler_unittest.cc
diff --git a/components/sync/driver/sync_policy_handler_unittest.cc b/components/sync/driver/sync_policy_handler_unittest.cc
index ac4417b58edc41b6d45ae3e707c6d287c09cc1dc..92538b94b0ffd2d54bb828eacfc398fab7d04d1d 100644
--- a/components/sync/driver/sync_policy_handler_unittest.cc
+++ b/components/sync/driver/sync_policy_handler_unittest.cc
@@ -23,7 +23,7 @@ TEST_F(SyncPolicyHandlerTest, Default) {
SyncPolicyHandler handler;
PrefValueMap prefs;
handler.ApplyPolicySettings(policy, &prefs);
- EXPECT_FALSE(prefs.GetValue(prefs::kSyncManaged, NULL));
+ EXPECT_FALSE(prefs.GetValue(prefs::kSyncManaged, nullptr));
}
TEST_F(SyncPolicyHandlerTest, Enabled) {
@@ -36,7 +36,7 @@ TEST_F(SyncPolicyHandlerTest, Enabled) {
handler.ApplyPolicySettings(policy, &prefs);
// Enabling Sync should not set the pref.
- EXPECT_FALSE(prefs.GetValue(prefs::kSyncManaged, NULL));
+ EXPECT_FALSE(prefs.GetValue(prefs::kSyncManaged, nullptr));
}
TEST_F(SyncPolicyHandlerTest, Disabled) {
@@ -49,7 +49,7 @@ TEST_F(SyncPolicyHandlerTest, Disabled) {
handler.ApplyPolicySettings(policy, &prefs);
// Sync should be flagged as managed.
- const base::Value* value = NULL;
+ const base::Value* value = nullptr;
EXPECT_TRUE(prefs.GetValue(prefs::kSyncManaged, &value));
ASSERT_TRUE(value);
bool sync_managed = false;
« no previous file with comments | « components/sync/driver/sync_api_component_factory.h ('k') | components/sync/driver/ui_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698