| 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 "sync/internal_api/public/base_transaction.h" | 7 #include "sync/internal_api/public/base_transaction.h" |
| 8 #include "sync/internal_api/public/user_share.h" | 8 #include "sync/internal_api/public/user_share.h" |
| 9 | 9 |
| 10 namespace sync_driver { | 10 namespace sync_driver { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 } | 56 } |
| 57 | 57 |
| 58 syncer::ModelTypeSet FakeSyncService::GetPreferredDataTypes() const { | 58 syncer::ModelTypeSet FakeSyncService::GetPreferredDataTypes() const { |
| 59 return syncer::ModelTypeSet(); | 59 return syncer::ModelTypeSet(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 void FakeSyncService::OnUserChoseDatatypes(bool sync_everything, | 62 void FakeSyncService::OnUserChoseDatatypes(bool sync_everything, |
| 63 syncer::ModelTypeSet chosen_types) { | 63 syncer::ModelTypeSet chosen_types) { |
| 64 } | 64 } |
| 65 | 65 |
| 66 void FakeSyncService::DeactivateDataType(syncer::ModelType type) { | |
| 67 } | |
| 68 | |
| 69 void FakeSyncService::SetSyncSetupCompleted() { | 66 void FakeSyncService::SetSyncSetupCompleted() { |
| 70 } | 67 } |
| 71 | 68 |
| 72 bool FakeSyncService::FirstSetupInProgress() const { | 69 bool FakeSyncService::FirstSetupInProgress() const { |
| 73 return false; | 70 return false; |
| 74 } | 71 } |
| 75 | 72 |
| 76 void FakeSyncService::SetSetupInProgress(bool setup_in_progress) { | 73 void FakeSyncService::SetSetupInProgress(bool setup_in_progress) { |
| 77 } | 74 } |
| 78 | 75 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 108 return base::Time(); | 105 return base::Time(); |
| 109 } | 106 } |
| 110 | 107 |
| 111 bool FakeSyncService::IsUsingSecondaryPassphrase() const { | 108 bool FakeSyncService::IsUsingSecondaryPassphrase() const { |
| 112 return false; | 109 return false; |
| 113 } | 110 } |
| 114 | 111 |
| 115 void FakeSyncService::EnableEncryptEverything() { | 112 void FakeSyncService::EnableEncryptEverything() { |
| 116 } | 113 } |
| 117 | 114 |
| 115 bool FakeSyncService::EncryptEverythingEnabled() const { |
| 116 return false; |
| 117 } |
| 118 |
| 118 void FakeSyncService::SetEncryptionPassphrase(const std::string& passphrase, | 119 void FakeSyncService::SetEncryptionPassphrase(const std::string& passphrase, |
| 119 PassphraseType type) { | 120 PassphraseType type) { |
| 120 } | 121 } |
| 121 | 122 |
| 122 bool FakeSyncService::SetDecryptionPassphrase(const std::string& passphrase) { | 123 bool FakeSyncService::SetDecryptionPassphrase(const std::string& passphrase) { |
| 123 return false; | 124 return false; |
| 124 } | 125 } |
| 125 | 126 |
| 126 bool FakeSyncService::IsCryptographerReady( | 127 bool FakeSyncService::IsCryptographerReady( |
| 127 const syncer::BaseTransaction* trans) const { | 128 const syncer::BaseTransaction* trans) const { |
| 128 return false; | 129 return false; |
| 129 } | 130 } |
| 130 | 131 |
| 131 syncer::UserShare* FakeSyncService::GetUserShare() const { | 132 syncer::UserShare* FakeSyncService::GetUserShare() const { |
| 132 return new syncer::UserShare(); | 133 return new syncer::UserShare(); |
| 133 } | 134 } |
| 134 | 135 |
| 136 LocalDeviceInfoProvider* FakeSyncService::GetLocalDeviceInfoProvider() const { |
| 137 return nullptr; |
| 138 } |
| 139 |
| 140 void FakeSyncService::RegisterDataTypeController( |
| 141 sync_driver::DataTypeController* data_type_controller) { |
| 142 } |
| 143 |
| 144 void FakeSyncService::ReenableDatatype(syncer::ModelType type) {} |
| 145 |
| 146 void FakeSyncService::DeactivateDataType(syncer::ModelType type) {} |
| 147 |
| 135 bool FakeSyncService::IsPassphraseRequired() const { | 148 bool FakeSyncService::IsPassphraseRequired() const { |
| 136 return false; | 149 return false; |
| 137 } | 150 } |
| 138 | 151 |
| 139 syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const { | 152 syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const { |
| 140 return syncer::ModelTypeSet(); | 153 return syncer::ModelTypeSet(); |
| 141 } | 154 } |
| 142 | 155 |
| 143 } // namespace sync_driver | 156 } // namespace sync_driver |
| OLD | NEW |