| 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 12 matching lines...) Expand all Loading... |
| 23 } | 23 } |
| 24 | 24 |
| 25 bool FakeSyncService::IsSyncAllowed() const { | 25 bool FakeSyncService::IsSyncAllowed() const { |
| 26 return false; | 26 return false; |
| 27 } | 27 } |
| 28 | 28 |
| 29 bool FakeSyncService::IsSyncActive() const { | 29 bool FakeSyncService::IsSyncActive() const { |
| 30 return false; | 30 return false; |
| 31 } | 31 } |
| 32 | 32 |
| 33 bool FakeSyncService::IsLocalSyncEnabled() const { |
| 34 return false; |
| 35 } |
| 36 |
| 33 void FakeSyncService::TriggerRefresh(const ModelTypeSet& types) {} | 37 void FakeSyncService::TriggerRefresh(const ModelTypeSet& types) {} |
| 34 | 38 |
| 35 ModelTypeSet FakeSyncService::GetActiveDataTypes() const { | 39 ModelTypeSet FakeSyncService::GetActiveDataTypes() const { |
| 36 return ModelTypeSet(); | 40 return ModelTypeSet(); |
| 37 } | 41 } |
| 38 | 42 |
| 39 SyncClient* FakeSyncService::GetSyncClient() const { | 43 SyncClient* FakeSyncService::GetSyncClient() const { |
| 40 return nullptr; | 44 return nullptr; |
| 41 } | 45 } |
| 42 | 46 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 TypeDebugInfoObserver* observer) {} | 208 TypeDebugInfoObserver* observer) {} |
| 205 | 209 |
| 206 base::WeakPtr<JsController> FakeSyncService::GetJsController() { | 210 base::WeakPtr<JsController> FakeSyncService::GetJsController() { |
| 207 return base::WeakPtr<JsController>(); | 211 return base::WeakPtr<JsController>(); |
| 208 } | 212 } |
| 209 | 213 |
| 210 void FakeSyncService::GetAllNodes( | 214 void FakeSyncService::GetAllNodes( |
| 211 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} | 215 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} |
| 212 | 216 |
| 213 } // namespace syncer | 217 } // namespace syncer |
| OLD | NEW |