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" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 167 } |
168 | 168 |
169 std::string FakeSyncService::GetBackendInitializationStateString() const { | 169 std::string FakeSyncService::GetBackendInitializationStateString() const { |
170 return std::string(); | 170 return std::string(); |
171 } | 171 } |
172 | 172 |
173 SyncCycleSnapshot FakeSyncService::GetLastCycleSnapshot() const { | 173 SyncCycleSnapshot FakeSyncService::GetLastCycleSnapshot() const { |
174 return SyncCycleSnapshot(); | 174 return SyncCycleSnapshot(); |
175 } | 175 } |
176 | 176 |
177 base::Value* FakeSyncService::GetTypeStatusMap() const { | 177 base::Value* FakeSyncService::GetTypeStatusMap() { |
178 return new base::ListValue(); | 178 return new base::ListValue(); |
179 } | 179 } |
180 | 180 |
181 const GURL& FakeSyncService::sync_service_url() const { | 181 const GURL& FakeSyncService::sync_service_url() const { |
182 return sync_service_url_; | 182 return sync_service_url_; |
183 } | 183 } |
184 | 184 |
185 std::string FakeSyncService::unrecoverable_error_message() const { | 185 std::string FakeSyncService::unrecoverable_error_message() const { |
186 return unrecoverable_error_message_; | 186 return unrecoverable_error_message_; |
187 } | 187 } |
(...skipping 16 matching lines...) Expand all Loading... |
204 TypeDebugInfoObserver* observer) {} | 204 TypeDebugInfoObserver* observer) {} |
205 | 205 |
206 base::WeakPtr<JsController> FakeSyncService::GetJsController() { | 206 base::WeakPtr<JsController> FakeSyncService::GetJsController() { |
207 return base::WeakPtr<JsController>(); | 207 return base::WeakPtr<JsController>(); |
208 } | 208 } |
209 | 209 |
210 void FakeSyncService::GetAllNodes( | 210 void FakeSyncService::GetAllNodes( |
211 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} | 211 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} |
212 | 212 |
213 } // namespace syncer | 213 } // namespace syncer |
OLD | NEW |