| 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/core/base_transaction.h" | 9 #include "components/sync/core/base_transaction.h" |
| 10 #include "components/sync/core/user_share.h" | 10 #include "components/sync/core/user_share.h" |
| 11 #include "components/sync/driver/data_type_controller.h" | 11 #include "components/sync/driver/data_type_controller.h" |
| 12 #include "components/sync/engine/cycle/sync_cycle_snapshot.h" | |
| 13 | 12 |
| 14 namespace sync_driver { | 13 namespace sync_driver { |
| 15 | 14 |
| 16 FakeSyncService::FakeSyncService() | 15 FakeSyncService::FakeSyncService() |
| 17 : error_(GoogleServiceAuthError::NONE), | 16 : error_(GoogleServiceAuthError::NONE), |
| 18 user_share_(base::MakeUnique<syncer::UserShare>()) {} | 17 user_share_(base::MakeUnique<syncer::UserShare>()) {} |
| 19 | 18 |
| 20 FakeSyncService::~FakeSyncService() {} | 19 FakeSyncService::~FakeSyncService() {} |
| 21 | 20 |
| 22 bool FakeSyncService::IsFirstSetupComplete() const { | 21 bool FakeSyncService::IsFirstSetupComplete() const { |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 syncer::TypeDebugInfoObserver* observer) {} | 206 syncer::TypeDebugInfoObserver* observer) {} |
| 208 | 207 |
| 209 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() { | 208 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() { |
| 210 return base::WeakPtr<syncer::JsController>(); | 209 return base::WeakPtr<syncer::JsController>(); |
| 211 } | 210 } |
| 212 | 211 |
| 213 void FakeSyncService::GetAllNodes( | 212 void FakeSyncService::GetAllNodes( |
| 214 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} | 213 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} |
| 215 | 214 |
| 216 } // namespace sync_driver | 215 } // namespace sync_driver |
| OLD | NEW |