chromium/chrome/browser/sync_file_system/drive_backend/fake_drive_uploader.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/sync_file_system/drive_backend/fake_drive_uploader.h"

#include "base/check.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/notreached.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "google_apis/drive/drive_api_parser.h"
#include "google_apis/drive/drive_common_callbacks.h"
#include "testing/gtest/include/gtest/gtest.h"

FakeDriveService;
UploadCompletionCallback;
ApiErrorCode;
CancelCallbackOnce;
FileResource;
FileResourceCallback;
ProgressCallback;

namespace sync_file_system {
namespace drive_backend {

namespace {

void DidAddFileOrDirectoryForMakingConflict(
    ApiErrorCode error,
    std::unique_ptr<FileResource> entry) {}

void DidAddFileForUploadNew(UploadCompletionCallback callback,
                            ApiErrorCode error,
                            std::unique_ptr<FileResource> entry) {}

void DidGetFileResourceForUploadExisting(UploadCompletionCallback callback,
                                         ApiErrorCode error,
                                         std::unique_ptr<FileResource> entry) {}

}  // namespace

FakeDriveServiceWrapper::FakeDriveServiceWrapper()
    :{}

FakeDriveServiceWrapper::~FakeDriveServiceWrapper() {}

CancelCallbackOnce FakeDriveServiceWrapper::AddNewDirectory(
    const std::string& parent_resource_id,
    const std::string& directory_name,
    const drive::AddNewDirectoryOptions& options,
    FileResourceCallback callback) {}

FakeDriveUploader::FakeDriveUploader(
    FakeDriveServiceWrapper* fake_drive_service)
    :{}

FakeDriveUploader::~FakeDriveUploader() {}

void FakeDriveUploader::StartBatchProcessing() {}

void FakeDriveUploader::StopBatchProcessing() {}

CancelCallbackOnce FakeDriveUploader::UploadNewFile(
    const std::string& parent_resource_id,
    const base::FilePath& local_file_path,
    const std::string& title,
    const std::string& content_type,
    const drive::UploadNewFileOptions& options,
    UploadCompletionCallback callback,
    ProgressCallback progress_callback) {}

CancelCallbackOnce FakeDriveUploader::UploadExistingFile(
    const std::string& resource_id,
    const base::FilePath& local_file_path,
    const std::string& content_type,
    const drive::UploadExistingFileOptions& options,
    UploadCompletionCallback callback,
    ProgressCallback progress_callback) {}

CancelCallbackOnce FakeDriveUploader::ResumeUploadFile(
    const GURL& upload_location,
    const base::FilePath& local_file_path,
    const std::string& content_type,
    drive::UploadCompletionCallback callback,
    ProgressCallback progress_callback) {}

}  // namespace drive_backend
}  // namespace sync_file_system