| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/fake_sync_service.h" | 5 #include "components/sync/driver/fake_sync_service.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "components/sync/driver/data_type_controller.h" | 9 #include "components/sync/driver/data_type_controller.h" |
| 10 #include "components/sync/syncable/base_transaction.h" | 10 #include "components/sync/syncable/base_transaction.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 LocalDeviceInfoProvider* FakeSyncService::GetLocalDeviceInfoProvider() const { | 140 LocalDeviceInfoProvider* FakeSyncService::GetLocalDeviceInfoProvider() const { |
| 141 return nullptr; | 141 return nullptr; |
| 142 } | 142 } |
| 143 | 143 |
| 144 void FakeSyncService::RegisterDataTypeController( | 144 void FakeSyncService::RegisterDataTypeController( |
| 145 std::unique_ptr<DataTypeController> data_type_controller) {} | 145 std::unique_ptr<DataTypeController> data_type_controller) {} |
| 146 | 146 |
| 147 void FakeSyncService::ReenableDatatype(ModelType type) {} | 147 void FakeSyncService::ReenableDatatype(ModelType type) {} |
| 148 | 148 |
| 149 bool FakeSyncService::IsPassphraseRequired() const { | |
| 150 return false; | |
| 151 } | |
| 152 | |
| 153 ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const { | |
| 154 return ModelTypeSet(); | |
| 155 } | |
| 156 | |
| 157 FakeSyncService::SyncTokenStatus FakeSyncService::GetSyncTokenStatus() const { | 149 FakeSyncService::SyncTokenStatus FakeSyncService::GetSyncTokenStatus() const { |
| 158 return FakeSyncService::SyncTokenStatus(); | 150 return FakeSyncService::SyncTokenStatus(); |
| 159 } | 151 } |
| 160 | 152 |
| 161 std::string FakeSyncService::QuerySyncStatusSummaryString() { | 153 std::string FakeSyncService::QuerySyncStatusSummaryString() { |
| 162 return ""; | 154 return ""; |
| 163 } | 155 } |
| 164 | 156 |
| 165 bool FakeSyncService::QueryDetailedSyncStatus(SyncStatus* result) { | 157 bool FakeSyncService::QueryDetailedSyncStatus(SyncStatus* result) { |
| 166 return false; | 158 return false; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 return base::WeakPtr<JsController>(); | 203 return base::WeakPtr<JsController>(); |
| 212 } | 204 } |
| 213 | 205 |
| 214 void FakeSyncService::GetAllNodes( | 206 void FakeSyncService::GetAllNodes( |
| 215 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} | 207 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} |
| 216 | 208 |
| 217 SigninManagerBase* FakeSyncService::signin() const { | 209 SigninManagerBase* FakeSyncService::signin() const { |
| 218 return nullptr; | 210 return nullptr; |
| 219 } | 211 } |
| 220 | 212 |
| 213 bool FakeSyncService::IsPassphraseRequired() const { |
| 214 return false; |
| 215 } |
| 216 |
| 217 ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const { |
| 218 return ModelTypeSet(); |
| 219 } |
| 220 |
| 221 void FakeSyncService::Shutdown() {} |
| 222 |
| 221 } // namespace syncer | 223 } // namespace syncer |
| OLD | NEW |