#include "chrome/browser/sync_file_system/drive_backend/fake_sync_worker.h"
#include <utility>
#include "base/values.h"
#include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h"
#include "chrome/browser/sync_file_system/sync_status_code.h"
namespace sync_file_system {
namespace drive_backend {
FakeSyncWorker::FakeSyncWorker()
: … { … }
FakeSyncWorker::~FakeSyncWorker() { … }
void FakeSyncWorker::Initialize(
std::unique_ptr<SyncEngineContext> sync_engine_context) { … }
void FakeSyncWorker::RegisterOrigin(const GURL& origin,
SyncStatusCallback callback) { … }
void FakeSyncWorker::EnableOrigin(const GURL& origin,
SyncStatusCallback callback) { … }
void FakeSyncWorker::DisableOrigin(const GURL& origin,
SyncStatusCallback callback) { … }
void FakeSyncWorker::UninstallOrigin(const GURL& origin,
RemoteFileSyncService::UninstallFlag flag,
SyncStatusCallback callback) { … }
void FakeSyncWorker::ProcessRemoteChange(SyncFileCallback callback) { … }
void FakeSyncWorker::SetRemoteChangeProcessor(
RemoteChangeProcessorOnWorker* remote_change_processor_on_worker) { … }
RemoteServiceState FakeSyncWorker::GetCurrentState() const { … }
void FakeSyncWorker::GetOriginStatusMap(
RemoteFileSyncService::StatusMapCallback callback) { … }
base::Value::List FakeSyncWorker::DumpFiles(const GURL& origin) { … }
base::Value::List FakeSyncWorker::DumpDatabase() { … }
void FakeSyncWorker::SetSyncEnabled(bool enabled) { … }
void FakeSyncWorker::PromoteDemotedChanges(base::OnceClosure callback) { … }
void FakeSyncWorker::ApplyLocalChange(const FileChange& local_change,
const base::FilePath& local_path,
const SyncFileMetadata& local_metadata,
const storage::FileSystemURL& url,
SyncStatusCallback callback) { … }
void FakeSyncWorker::ActivateService(RemoteServiceState service_state,
const std::string& description) { … }
void FakeSyncWorker::DeactivateService(const std::string& description) { … }
void FakeSyncWorker::DetachFromSequence() { … }
void FakeSyncWorker::AddObserver(Observer* observer) { … }
void FakeSyncWorker::UpdateServiceState(RemoteServiceState state,
const std::string& description) { … }
}
}