blob: d502010621ad4a3b3669281a02b0938f2522a1d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync_driver/fake_sync_service.h"
#include "sync/internal_api/public/base_transaction.h"
#include "sync/internal_api/public/user_share.h"
namespace sync_driver {
FakeSyncService::FakeSyncService() : error_(GoogleServiceAuthError::NONE) {
}
FakeSyncService::~FakeSyncService() {
}
bool FakeSyncService::HasSyncSetupCompleted() const {
return false;
}
bool FakeSyncService::IsSyncAllowed() const {
return false;
}
bool FakeSyncService::IsSyncActive() const {
return false;
}
syncer::ModelTypeSet FakeSyncService::GetActiveDataTypes() const {
return syncer::ModelTypeSet();
}
void FakeSyncService::AddObserver(SyncServiceObserver* observer) {
}
void FakeSyncService::RemoveObserver(SyncServiceObserver* observer) {
}
bool FakeSyncService::HasObserver(const SyncServiceObserver* observer) const {
return false;
}
bool FakeSyncService::CanSyncStart() const {
return false;
}
void FakeSyncService::OnDataTypeRequestsSyncStartup(syncer::ModelType type) {
}
void FakeSyncService::RequestStop(
sync_driver::SyncService::SyncStopDataFate data_fate) {
}
void FakeSyncService::RequestStart() {
}
syncer::ModelTypeSet FakeSyncService::GetPreferredDataTypes() const {
return syncer::ModelTypeSet();
}
void FakeSyncService::OnUserChoseDatatypes(bool sync_everything,
syncer::ModelTypeSet chosen_types) {
}
void FakeSyncService::SetSyncSetupCompleted() {
}
bool FakeSyncService::FirstSetupInProgress() const {
return false;
}
void FakeSyncService::SetSetupInProgress(bool setup_in_progress) {
}
bool FakeSyncService::setup_in_progress() const {
return false;
}
bool FakeSyncService::ConfigurationDone() const {
return false;
}
const GoogleServiceAuthError& FakeSyncService::GetAuthError() const {
return error_;
}
bool FakeSyncService::HasUnrecoverableError() const {
return false;
}
bool FakeSyncService::backend_initialized() const {
return false;
}
OpenTabsUIDelegate* FakeSyncService::GetOpenTabsUIDelegate() {
return nullptr;
}
bool FakeSyncService::IsPassphraseRequiredForDecryption() const {
return false;
}
base::Time FakeSyncService::GetExplicitPassphraseTime() const {
return base::Time();
}
bool FakeSyncService::IsUsingSecondaryPassphrase() const {
return false;
}
void FakeSyncService::EnableEncryptEverything() {
}
void FakeSyncService::SetEncryptionPassphrase(const std::string& passphrase,
PassphraseType type) {
}
bool FakeSyncService::SetDecryptionPassphrase(const std::string& passphrase) {
return false;
}
bool FakeSyncService::IsCryptographerReady(
const syncer::BaseTransaction* trans) const {
return false;
}
syncer::UserShare* FakeSyncService::GetUserShare() const {
return new syncer::UserShare();
}
bool FakeSyncService::IsPassphraseRequired() const {
return false;
}
syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const {
return syncer::ModelTypeSet();
}
} // namespace sync_driver
|