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 "sync/internal_api/public/base_transaction.h" | 9 #include "sync/internal_api/public/base_transaction.h" |
10 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 10 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 void FakeSyncService::OnUserChoseDatatypes(bool sync_everything, | 72 void FakeSyncService::OnUserChoseDatatypes(bool sync_everything, |
73 syncer::ModelTypeSet chosen_types) { | 73 syncer::ModelTypeSet chosen_types) { |
74 } | 74 } |
75 | 75 |
76 void FakeSyncService::SetFirstSetupComplete() {} | 76 void FakeSyncService::SetFirstSetupComplete() {} |
77 | 77 |
78 bool FakeSyncService::IsFirstSetupInProgress() const { | 78 bool FakeSyncService::IsFirstSetupInProgress() const { |
79 return false; | 79 return false; |
80 } | 80 } |
81 | 81 |
82 std::unique_ptr<SyncSetupInProgressHandle> | 82 void FakeSyncService::SetSetupInProgress(bool setup_in_progress) { |
83 FakeSyncService::GetSetupInProgressHandle() { | |
84 return nullptr; | |
85 } | 83 } |
86 | 84 |
87 bool FakeSyncService::IsSetupInProgress() const { | 85 bool FakeSyncService::IsSetupInProgress() const { |
88 return false; | 86 return false; |
89 } | 87 } |
90 | 88 |
91 bool FakeSyncService::ConfigurationDone() const { | 89 bool FakeSyncService::ConfigurationDone() const { |
92 return false; | 90 return false; |
93 } | 91 } |
94 | 92 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 syncer::TypeDebugInfoObserver* observer) {} | 215 syncer::TypeDebugInfoObserver* observer) {} |
218 | 216 |
219 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() { | 217 base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() { |
220 return base::WeakPtr<syncer::JsController>(); | 218 return base::WeakPtr<syncer::JsController>(); |
221 } | 219 } |
222 | 220 |
223 void FakeSyncService::GetAllNodes( | 221 void FakeSyncService::GetAllNodes( |
224 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} | 222 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} |
225 | 223 |
226 } // namespace sync_driver | 224 } // namespace sync_driver |
OLD | NEW |