| 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/values.h" | 7 #include "base/values.h" |
| 8 #include "sync/internal_api/public/base_transaction.h" | 8 #include "sync/internal_api/public/base_transaction.h" |
| 9 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 9 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
| 10 #include "sync/internal_api/public/user_share.h" | 10 #include "sync/internal_api/public/user_share.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 void FakeSyncService::TriggerRefresh(const syncer::ModelTypeSet& types) {} |
| 34 |
| 33 syncer::ModelTypeSet FakeSyncService::GetActiveDataTypes() const { | 35 syncer::ModelTypeSet FakeSyncService::GetActiveDataTypes() const { |
| 34 return syncer::ModelTypeSet(); | 36 return syncer::ModelTypeSet(); |
| 35 } | 37 } |
| 36 | 38 |
| 37 SyncClient* FakeSyncService::GetSyncClient() const { | 39 SyncClient* FakeSyncService::GetSyncClient() const { |
| 38 return nullptr; | 40 return nullptr; |
| 39 } | 41 } |
| 40 | 42 |
| 41 void FakeSyncService::AddObserver(SyncServiceObserver* observer) { | 43 void FakeSyncService::AddObserver(SyncServiceObserver* observer) { |
| 42 } | 44 } |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 syncer::TypeDebugInfoObserver* observer) {} | 215 syncer::TypeDebugInfoObserver* observer) {} |
| 214 | 216 |
| 215 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() { | 217 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() { |
| 216 return base::WeakPtr<syncer::JsController>(); | 218 return base::WeakPtr<syncer::JsController>(); |
| 217 } | 219 } |
| 218 | 220 |
| 219 void FakeSyncService::GetAllNodes( | 221 void FakeSyncService::GetAllNodes( |
| 220 const base::Callback<void(scoped_ptr<base::ListValue>)>& callback) {} | 222 const base::Callback<void(scoped_ptr<base::ListValue>)>& callback) {} |
| 221 | 223 |
| 222 } // namespace sync_driver | 224 } // namespace sync_driver |
| OLD | NEW |