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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_mock.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/driver/glue/sync_backend_host_mock.h" 5 #include "components/sync/driver/glue/sync_backend_host_mock.h"
6 6
7 #include "components/sync/driver/sync_frontend.h" 7 #include "components/sync/driver/sync_frontend.h"
8 #include "components/sync/engine/activation_context.h" 8 #include "components/sync/engine/activation_context.h"
9 9
10 namespace syncer { 10 namespace syncer {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 ChangeProcessor* change_processor) {} 74 ChangeProcessor* change_processor) {}
75 void SyncBackendHostMock::DeactivateDirectoryDataType(ModelType type) {} 75 void SyncBackendHostMock::DeactivateDirectoryDataType(ModelType type) {}
76 76
77 void SyncBackendHostMock::ActivateNonBlockingDataType( 77 void SyncBackendHostMock::ActivateNonBlockingDataType(
78 ModelType type, 78 ModelType type,
79 std::unique_ptr<ActivationContext> activation_context) {} 79 std::unique_ptr<ActivationContext> activation_context) {}
80 80
81 void SyncBackendHostMock::DeactivateNonBlockingDataType(ModelType type) {} 81 void SyncBackendHostMock::DeactivateNonBlockingDataType(ModelType type) {}
82 82
83 UserShare* SyncBackendHostMock::GetUserShare() const { 83 UserShare* SyncBackendHostMock::GetUserShare() const {
84 return NULL; 84 return nullptr;
85 } 85 }
86 86
87 SyncBackendHost::Status SyncBackendHostMock::GetDetailedStatus() { 87 SyncBackendHost::Status SyncBackendHostMock::GetDetailedStatus() {
88 return SyncBackendHost::Status(); 88 return SyncBackendHost::Status();
89 } 89 }
90 90
91 SyncCycleSnapshot SyncBackendHostMock::GetLastCycleSnapshot() const { 91 SyncCycleSnapshot SyncBackendHostMock::GetLastCycleSnapshot() const {
92 return SyncCycleSnapshot(); 92 return SyncCycleSnapshot();
93 } 93 }
94 94
(...skipping 17 matching lines...) Expand all
112 const BaseTransaction* trans) const { 112 const BaseTransaction* trans) const {
113 return false; 113 return false;
114 } 114 }
115 115
116 void SyncBackendHostMock::GetModelSafeRoutingInfo( 116 void SyncBackendHostMock::GetModelSafeRoutingInfo(
117 ModelSafeRoutingInfo* out) const {} 117 ModelSafeRoutingInfo* out) const {}
118 118
119 void SyncBackendHostMock::FlushDirectory() const {} 119 void SyncBackendHostMock::FlushDirectory() const {}
120 120
121 base::MessageLoop* SyncBackendHostMock::GetSyncLoopForTesting() { 121 base::MessageLoop* SyncBackendHostMock::GetSyncLoopForTesting() {
122 return NULL; 122 return nullptr;
123 } 123 }
124 124
125 void SyncBackendHostMock::RefreshTypesForTest(ModelTypeSet types) {} 125 void SyncBackendHostMock::RefreshTypesForTest(ModelTypeSet types) {}
126 126
127 void SyncBackendHostMock::RequestBufferedProtocolEventsAndEnableForwarding() {} 127 void SyncBackendHostMock::RequestBufferedProtocolEventsAndEnableForwarding() {}
128 128
129 void SyncBackendHostMock::DisableProtocolEventForwarding() {} 129 void SyncBackendHostMock::DisableProtocolEventForwarding() {}
130 130
131 void SyncBackendHostMock::EnableDirectoryTypeDebugInfoForwarding() {} 131 void SyncBackendHostMock::EnableDirectoryTypeDebugInfoForwarding() {}
132 132
133 void SyncBackendHostMock::DisableDirectoryTypeDebugInfoForwarding() {} 133 void SyncBackendHostMock::DisableDirectoryTypeDebugInfoForwarding() {}
134 134
135 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { 135 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) {
136 fail_initial_download_ = should_fail; 136 fail_initial_download_ = should_fail;
137 } 137 }
138 138
139 void SyncBackendHostMock::ClearServerData( 139 void SyncBackendHostMock::ClearServerData(
140 const SyncManager::ClearServerDataCallback& callback) { 140 const SyncManager::ClearServerDataCallback& callback) {
141 callback.Run(); 141 callback.Run();
142 } 142 }
143 143
144 void SyncBackendHostMock::OnCookieJarChanged(bool account_mismatch, 144 void SyncBackendHostMock::OnCookieJarChanged(bool account_mismatch,
145 bool empty_jar) {} 145 bool empty_jar) {}
146 146
147 } // namespace syncer 147 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_mock.h ('k') | components/sync/driver/glue/sync_backend_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698