OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "components/sync_driver/fake_sync_service.h" |
| 6 |
| 7 namespace sync_driver { |
| 8 |
| 9 FakeSyncService::FakeSyncService() : error_(GoogleServiceAuthError::NONE) { |
| 10 } |
| 11 |
| 12 FakeSyncService::~FakeSyncService() { |
| 13 } |
| 14 |
| 15 bool FakeSyncService::HasSyncSetupCompleted() const { |
| 16 return false; |
| 17 } |
| 18 |
| 19 bool FakeSyncService::IsSyncActive() const { |
| 20 return false; |
| 21 } |
| 22 |
| 23 syncer::ModelTypeSet FakeSyncService::GetActiveDataTypes() const { |
| 24 return syncer::ModelTypeSet(); |
| 25 } |
| 26 |
| 27 void FakeSyncService::AddObserver(sync_driver::SyncServiceObserver* observer) { |
| 28 } |
| 29 |
| 30 void FakeSyncService::RemoveObserver( |
| 31 sync_driver::SyncServiceObserver* observer) { |
| 32 } |
| 33 |
| 34 bool FakeSyncService::HasObserver( |
| 35 const sync_driver::SyncServiceObserver* observer) const { |
| 36 return false; |
| 37 } |
| 38 |
| 39 bool FakeSyncService::IsSyncEnabledAndLoggedIn() { |
| 40 return false; |
| 41 } |
| 42 |
| 43 void FakeSyncService::DisableForUser() { |
| 44 } |
| 45 |
| 46 void FakeSyncService::RequestStop() { |
| 47 } |
| 48 |
| 49 void FakeSyncService::RequestStart() { |
| 50 } |
| 51 |
| 52 syncer::ModelTypeSet FakeSyncService::GetPreferredDataTypes() const { |
| 53 return syncer::ModelTypeSet(); |
| 54 } |
| 55 |
| 56 void FakeSyncService::OnUserChoseDatatypes(bool sync_everything, |
| 57 syncer::ModelTypeSet chosen_types) { |
| 58 } |
| 59 |
| 60 void FakeSyncService::SetSyncSetupCompleted() { |
| 61 } |
| 62 |
| 63 bool FakeSyncService::FirstSetupInProgress() const { |
| 64 return false; |
| 65 } |
| 66 |
| 67 void FakeSyncService::SetSetupInProgress(bool setup_in_progress) { |
| 68 } |
| 69 |
| 70 bool FakeSyncService::setup_in_progress() const { |
| 71 return false; |
| 72 } |
| 73 |
| 74 bool FakeSyncService::ConfigurationDone() const { |
| 75 return false; |
| 76 } |
| 77 |
| 78 const GoogleServiceAuthError& FakeSyncService::GetAuthError() const { |
| 79 return error_; |
| 80 } |
| 81 |
| 82 bool FakeSyncService::HasUnrecoverableError() const { |
| 83 return false; |
| 84 } |
| 85 |
| 86 bool FakeSyncService::backend_initialized() const { |
| 87 return false; |
| 88 } |
| 89 |
| 90 bool FakeSyncService::IsPassphraseRequiredForDecryption() const { |
| 91 return false; |
| 92 } |
| 93 |
| 94 base::Time FakeSyncService::GetExplicitPassphraseTime() const { |
| 95 return base::Time(); |
| 96 } |
| 97 |
| 98 bool FakeSyncService::IsUsingSecondaryPassphrase() const { |
| 99 return false; |
| 100 } |
| 101 |
| 102 void FakeSyncService::EnableEncryptEverything() { |
| 103 } |
| 104 |
| 105 void FakeSyncService::SetEncryptionPassphrase(const std::string& passphrase, |
| 106 PassphraseType type) { |
| 107 } |
| 108 |
| 109 bool FakeSyncService::SetDecryptionPassphrase(const std::string& passphrase) { |
| 110 return false; |
| 111 } |
| 112 |
| 113 bool FakeSyncService::IsPassphraseRequired() const { |
| 114 return false; |
| 115 } |
| 116 |
| 117 syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const { |
| 118 return syncer::ModelTypeSet(); |
| 119 } |
| 120 |
| 121 } // namespace sync_driver |
OLD | NEW |