| 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/values.h" | 8 #include "base/values.h" |
| 8 #include "sync/internal_api/public/base_transaction.h" | 9 #include "sync/internal_api/public/base_transaction.h" |
| 9 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 10 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
| 10 #include "sync/internal_api/public/user_share.h" | 11 #include "sync/internal_api/public/user_share.h" |
| 11 | 12 |
| 12 namespace sync_driver { | 13 namespace sync_driver { |
| 13 | 14 |
| 14 FakeSyncService::FakeSyncService() | 15 FakeSyncService::FakeSyncService() |
| 15 : error_(GoogleServiceAuthError::NONE), | 16 : error_(GoogleServiceAuthError::NONE), |
| 16 user_share_(make_scoped_ptr(new syncer::UserShare())) {} | 17 user_share_(base::WrapUnique(new syncer::UserShare())) {} |
| 17 | 18 |
| 18 FakeSyncService::~FakeSyncService() { | 19 FakeSyncService::~FakeSyncService() { |
| 19 } | 20 } |
| 20 | 21 |
| 21 bool FakeSyncService::IsFirstSetupComplete() const { | 22 bool FakeSyncService::IsFirstSetupComplete() const { |
| 22 return false; | 23 return false; |
| 23 } | 24 } |
| 24 | 25 |
| 25 bool FakeSyncService::IsSyncAllowed() const { | 26 bool FakeSyncService::IsSyncAllowed() const { |
| 26 return false; | 27 return false; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 syncer::TypeDebugInfoObserver* observer) {} | 212 syncer::TypeDebugInfoObserver* observer) {} |
| 212 | 213 |
| 213 void FakeSyncService::RemoveTypeDebugInfoObserver( | 214 void FakeSyncService::RemoveTypeDebugInfoObserver( |
| 214 syncer::TypeDebugInfoObserver* observer) {} | 215 syncer::TypeDebugInfoObserver* observer) {} |
| 215 | 216 |
| 216 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() { | 217 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() { |
| 217 return base::WeakPtr<syncer::JsController>(); | 218 return base::WeakPtr<syncer::JsController>(); |
| 218 } | 219 } |
| 219 | 220 |
| 220 void FakeSyncService::GetAllNodes( | 221 void FakeSyncService::GetAllNodes( |
| 221 const base::Callback<void(scoped_ptr<base::ListValue>)>& callback) {} | 222 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} |
| 222 | 223 |
| 223 } // namespace sync_driver | 224 } // namespace sync_driver |
| OLD | NEW |