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

Unified Diff: components/sync/driver/glue/sync_backend_registrar_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/glue/sync_backend_registrar_unittest.cc
diff --git a/components/sync/driver/glue/sync_backend_registrar_unittest.cc b/components/sync/driver/glue/sync_backend_registrar_unittest.cc
index 2cbba5a95624b35eab0cb9ed95a3d15a76f28723..8ae4fe549d61bccbbe1c76c6208a70e0fc8a181f 100644
--- a/components/sync/driver/glue/sync_backend_registrar_unittest.cc
+++ b/components/sync/driver/glue/sync_backend_registrar_unittest.cc
@@ -27,7 +27,7 @@ using ::testing::Return;
using ::testing::StrictMock;
void TriggerChanges(SyncBackendRegistrar* registrar, ModelType type) {
- registrar->OnChangesApplied(type, 0, NULL, ImmutableChangeRecordList());
+ registrar->OnChangesApplied(type, 0, nullptr, ImmutableChangeRecordList());
registrar->OnChangesComplete(type);
}
@@ -81,7 +81,7 @@ class SyncBackendRegistrarTest : public testing::Test {
SyncBackendRegistrarTest()
: db_thread_("DBThreadForTest"),
file_thread_("FileThreadForTest"),
- sync_thread_(NULL) {}
+ sync_thread_(nullptr) {}
~SyncBackendRegistrarTest() override {}
@@ -224,7 +224,7 @@ TEST_F(SyncBackendRegistrarTest, ActivateDeactivateUIDataType) {
StrictMock<ChangeProcessorMock> change_processor_mock;
EXPECT_CALL(change_processor_mock, StartImpl());
EXPECT_CALL(change_processor_mock, IsRunning()).WillRepeatedly(Return(true));
- EXPECT_CALL(change_processor_mock, ApplyChangesFromSyncModel(NULL, _, _));
+ EXPECT_CALL(change_processor_mock, ApplyChangesFromSyncModel(nullptr, _, _));
EXPECT_CALL(change_processor_mock, IsRunning()).WillRepeatedly(Return(true));
EXPECT_CALL(change_processor_mock, CommitChangesFromSyncModel());
EXPECT_CALL(change_processor_mock, IsRunning()).WillRepeatedly(Return(false));
@@ -256,7 +256,7 @@ TEST_F(SyncBackendRegistrarTest, ActivateDeactivateNonUIDataType) {
StrictMock<ChangeProcessorMock> change_processor_mock;
EXPECT_CALL(change_processor_mock, StartImpl());
EXPECT_CALL(change_processor_mock, IsRunning()).WillRepeatedly(Return(true));
- EXPECT_CALL(change_processor_mock, ApplyChangesFromSyncModel(NULL, _, _));
+ EXPECT_CALL(change_processor_mock, ApplyChangesFromSyncModel(nullptr, _, _));
EXPECT_CALL(change_processor_mock, IsRunning()).WillRepeatedly(Return(true));
EXPECT_CALL(change_processor_mock, CommitChangesFromSyncModel());
EXPECT_CALL(change_processor_mock, IsRunning()).WillRepeatedly(Return(false));
« no previous file with comments | « components/sync/driver/glue/sync_backend_registrar.cc ('k') | components/sync/driver/model_association_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698