| Index: ios/public/test/fake_sync_service.cc
|
| diff --git a/ios/public/test/fake_sync_service.cc b/ios/public/test/fake_sync_service.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6ec2d52d46f38c35e82da565086010102a0d963b
|
| --- /dev/null
|
| +++ b/ios/public/test/fake_sync_service.cc
|
| @@ -0,0 +1,119 @@
|
| +// 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 "ios/public/test/fake_sync_service.h"
|
| +
|
| +#include "components/sync_driver/data_type_manager.h"
|
| +
|
| +FakeSyncService::FakeSyncService() : error_(GoogleServiceAuthError::NONE) {
|
| +}
|
| +
|
| +FakeSyncService::~FakeSyncService() {
|
| +}
|
| +
|
| +bool FakeSyncService::HasSyncSetupCompleted() const {
|
| + return false;
|
| +}
|
| +
|
| +bool FakeSyncService::IsSyncActive() const {
|
| + return false;
|
| +}
|
| +
|
| +syncer::ModelTypeSet FakeSyncService::GetActiveDataTypes() const {
|
| + return syncer::ModelTypeSet();
|
| +}
|
| +
|
| +void FakeSyncService::AddObserver(sync_driver::SyncServiceObserver* observer) {
|
| +}
|
| +
|
| +void FakeSyncService::RemoveObserver(
|
| + sync_driver::SyncServiceObserver* observer) {
|
| +}
|
| +
|
| +bool FakeSyncService::HasObserver(
|
| + const sync_driver::SyncServiceObserver* observer) const {
|
| + return false;
|
| +}
|
| +
|
| +bool FakeSyncService::IsSyncEnabledAndLoggedIn() {
|
| + return false;
|
| +}
|
| +
|
| +void FakeSyncService::DisableForUser() {
|
| +}
|
| +
|
| +void FakeSyncService::StopAndSuppress() {
|
| +}
|
| +
|
| +void FakeSyncService::UnsuppressAndStart() {
|
| +}
|
| +
|
| +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;
|
| +}
|
| +
|
| +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::IsPassphraseRequired() const {
|
| + return false;
|
| +}
|
| +
|
| +syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const {
|
| + return syncer::ModelTypeSet();
|
| +}
|
|
|