Index: components/sync_driver/fake_sync_service.cc |
diff --git a/components/sync_driver/fake_sync_service.cc b/components/sync_driver/fake_sync_service.cc |
deleted file mode 100644 |
index 6b990747ca13cdafbaf5c82dbb3ea7bdc5865022..0000000000000000000000000000000000000000 |
--- a/components/sync_driver/fake_sync_service.cc |
+++ /dev/null |
@@ -1,226 +0,0 @@ |
-// 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 "base/memory/ptr_util.h" |
-#include "base/values.h" |
-#include "components/sync/core/base_transaction.h" |
-#include "components/sync/core/user_share.h" |
-#include "components/sync/sessions/sync_session_snapshot.h" |
- |
-namespace sync_driver { |
- |
-FakeSyncService::FakeSyncService() |
- : error_(GoogleServiceAuthError::NONE), |
- user_share_(base::WrapUnique(new syncer::UserShare())) {} |
- |
-FakeSyncService::~FakeSyncService() { |
-} |
- |
-bool FakeSyncService::IsFirstSetupComplete() const { |
- return false; |
-} |
- |
-bool FakeSyncService::IsSyncAllowed() const { |
- return false; |
-} |
- |
-bool FakeSyncService::IsSyncActive() const { |
- return false; |
-} |
- |
-void FakeSyncService::TriggerRefresh(const syncer::ModelTypeSet& types) {} |
- |
-syncer::ModelTypeSet FakeSyncService::GetActiveDataTypes() const { |
- return syncer::ModelTypeSet(); |
-} |
- |
-SyncClient* FakeSyncService::GetSyncClient() const { |
- return nullptr; |
-} |
- |
-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::SetFirstSetupComplete() {} |
- |
-bool FakeSyncService::IsFirstSetupInProgress() const { |
- return false; |
-} |
- |
-std::unique_ptr<SyncSetupInProgressHandle> |
-FakeSyncService::GetSetupInProgressHandle() { |
- return nullptr; |
-} |
- |
-bool FakeSyncService::IsSetupInProgress() const { |
- return false; |
-} |
- |
-bool FakeSyncService::ConfigurationDone() const { |
- return false; |
-} |
- |
-const GoogleServiceAuthError& FakeSyncService::GetAuthError() const { |
- return error_; |
-} |
- |
-bool FakeSyncService::HasUnrecoverableError() const { |
- return false; |
-} |
- |
-bool FakeSyncService::IsBackendInitialized() 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() { |
-} |
- |
-bool FakeSyncService::IsEncryptEverythingEnabled() const { |
- return false; |
-} |
- |
-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 user_share_.get(); |
-} |
- |
-LocalDeviceInfoProvider* FakeSyncService::GetLocalDeviceInfoProvider() const { |
- return nullptr; |
-} |
- |
-void FakeSyncService::RegisterDataTypeController( |
- sync_driver::DataTypeController* data_type_controller) { |
-} |
- |
-void FakeSyncService::ReenableDatatype(syncer::ModelType type) {} |
- |
-bool FakeSyncService::IsPassphraseRequired() const { |
- return false; |
-} |
- |
-syncer::ModelTypeSet FakeSyncService::GetEncryptedDataTypes() const { |
- return syncer::ModelTypeSet(); |
-} |
- |
-FakeSyncService::SyncTokenStatus FakeSyncService::GetSyncTokenStatus() const { |
- return FakeSyncService::SyncTokenStatus(); |
-} |
- |
-std::string FakeSyncService::QuerySyncStatusSummaryString() { |
- return ""; |
-} |
- |
-bool FakeSyncService::QueryDetailedSyncStatus(syncer::SyncStatus* result) { |
- return false; |
-} |
- |
-base::string16 FakeSyncService::GetLastSyncedTimeString() const { |
- return base::string16(); |
-} |
- |
-std::string FakeSyncService::GetBackendInitializationStateString() const { |
- return std::string(); |
-} |
- |
-syncer::sessions::SyncSessionSnapshot FakeSyncService::GetLastSessionSnapshot() |
- const { |
- return syncer::sessions::SyncSessionSnapshot(); |
-} |
- |
-base::Value* FakeSyncService::GetTypeStatusMap() const { |
- return new base::ListValue(); |
-} |
- |
-const GURL& FakeSyncService::sync_service_url() const { |
- return sync_service_url_; |
-} |
- |
-std::string FakeSyncService::unrecoverable_error_message() const { |
- return unrecoverable_error_message_; |
-} |
- |
-tracked_objects::Location FakeSyncService::unrecoverable_error_location() |
- const { |
- return tracked_objects::Location(); |
-} |
- |
-void FakeSyncService::AddProtocolEventObserver( |
- browser_sync::ProtocolEventObserver* observer) {} |
- |
-void FakeSyncService::RemoveProtocolEventObserver( |
- browser_sync::ProtocolEventObserver* observer) {} |
- |
-void FakeSyncService::AddTypeDebugInfoObserver( |
- syncer::TypeDebugInfoObserver* observer) {} |
- |
-void FakeSyncService::RemoveTypeDebugInfoObserver( |
- syncer::TypeDebugInfoObserver* observer) {} |
- |
-base::WeakPtr<syncer::JsController> FakeSyncService::GetJsController() { |
- return base::WeakPtr<syncer::JsController>(); |
-} |
- |
-void FakeSyncService::GetAllNodes( |
- const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) {} |
- |
-} // namespace sync_driver |