Remove unused did_first_* fields from InternalDocumentStateData.
[chromium-blink-merge.git] / components / sync_driver / fake_sync_service.cc
blobd502010621ad4a3b3669281a02b0938f2522a1d3
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_service.h"
7 #include "sync/internal_api/public/base_transaction.h"
8 #include "sync/internal_api/public/user_share.h"
10 namespace sync_driver {
12 FakeSyncService::FakeSyncService() : error_(GoogleServiceAuthError::NONE) {
15 FakeSyncService::~FakeSyncService() {
18 bool FakeSyncService::HasSyncSetupCompleted() const {
19 return false;
22 bool FakeSyncService::IsSyncAllowed() const {
23 return false;
26 bool FakeSyncService::IsSyncActive() const {
27 return false;
30 syncer::ModelTypeSet FakeSyncService::GetActiveDataTypes() const {
31 return syncer::ModelTypeSet();
34 void FakeSyncService::AddObserver(SyncServiceObserver* observer) {
37 void FakeSyncService::RemoveObserver(SyncServiceObserver* observer) {
40 bool FakeSyncService::HasObserver(const SyncServiceObserver* observer) const {
41 return false;
44 bool FakeSyncService::CanSyncStart() const {
45 return false;
48 void FakeSyncService::OnDataTypeRequestsSyncStartup(syncer::ModelType type) {
51 void FakeSyncService::RequestStop(
52 sync_driver::SyncService::SyncStopDataFate data_fate) {
55 void FakeSyncService::RequestStart() {
58 syncer::ModelTypeSet FakeSyncService::GetPreferredDataTypes() const {
59 return syncer::ModelTypeSet();
62 void FakeSyncService::OnUserChoseDatatypes(bool sync_everything,
63 syncer::ModelTypeSet chosen_types) {
66 void FakeSyncService::SetSyncSetupCompleted() {
69 bool FakeSyncService::FirstSetupInProgress() const {
70 return false;
73 void FakeSyncService::SetSetupInProgress(bool setup_in_progress) {
76 bool FakeSyncService::setup_in_progress() const {
77 return false;
80 bool FakeSyncService::ConfigurationDone() const {
81 return false;
84 const GoogleServiceAuthError& FakeSyncService::GetAuthError() const {
85 return error_;
88 bool FakeSyncService::HasUnrecoverableError() const {
89 return false;
92 bool FakeSyncService::backend_initialized() const {
93 return false;
96 OpenTabsUIDelegate* FakeSyncService::GetOpenTabsUIDelegate() {
97 return nullptr;
100 bool FakeSyncService::IsPassphraseRequiredForDecryption() const {
101 return false;
104 base::Time FakeSyncService::GetExplicitPassphraseTime() const {
105 return base::Time();
108 bool FakeSyncService::IsUsingSecondaryPassphrase() const {
109 return false;
112 void FakeSyncService::EnableEncryptEverything() {
115 void FakeSyncService::SetEncryptionPassphrase(const std::string& passphrase,
116 PassphraseType type) {
119 bool FakeSyncService::SetDecryptionPassphrase(const std::string& passphrase) {
120 return false;
123 bool FakeSyncService::IsCryptographerReady(
124 const syncer::BaseTransaction* trans) const {
125 return false;
128 syncer::UserShare* FakeSyncService::GetUserShare() const {
129 return new syncer::UserShare();
132 bool FakeSyncService::IsPassphraseRequired() const {
133 return false;
136 syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const {
137 return syncer::ModelTypeSet();
140 } // namespace sync_driver