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
3 // found in the LICENSE file.
5 #include "components/sync_driver/fake_sync_client.h"
7 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
8 #include "components/password_manager/core/browser/password_store.h"
10 namespace sync_driver
{
12 FakeSyncClient::FakeSyncClient() : factory_(nullptr) {}
14 FakeSyncClient::FakeSyncClient(SyncApiComponentFactory
* factory
)
15 : factory_(factory
) {}
17 FakeSyncClient::~FakeSyncClient() {}
19 SyncService
* FakeSyncClient::GetSyncService() {
23 PrefService
* FakeSyncClient::GetPrefService() {
27 bookmarks::BookmarkModel
* FakeSyncClient::GetBookmarkModel() {
31 history::HistoryService
* FakeSyncClient::GetHistoryService() {
35 scoped_refptr
<password_manager::PasswordStore
>
36 FakeSyncClient::GetPasswordStore() {
37 return scoped_refptr
<password_manager::PasswordStore
>();
40 autofill::PersonalDataManager
* FakeSyncClient::GetPersonalDataManager() {
44 scoped_refptr
<autofill::AutofillWebDataService
>
45 FakeSyncClient::GetWebDataService() {
46 return scoped_refptr
<autofill::AutofillWebDataService
>();
49 base::WeakPtr
<syncer::SyncableService
>
50 FakeSyncClient::GetSyncableServiceForType(syncer::ModelType type
) {
51 return base::WeakPtr
<syncer::SyncableService
>();
54 SyncApiComponentFactory
* FakeSyncClient::GetSyncApiComponentFactory() {
58 } // namespace sync_driver