chromium/storage/browser/file_system/file_system_operation_impl_write_unittest.cc

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

#include <stdint.h>

#include <memory>
#include <utility>
#include <vector>

#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "storage/browser/blob/blob_storage_context.h"
#include "storage/browser/file_system/file_system_context.h"
#include "storage/browser/file_system/file_system_file_util.h"
#include "storage/browser/file_system/file_system_operation_context.h"
#include "storage/browser/file_system/file_system_operation_runner.h"
#include "storage/browser/file_system/file_system_util.h"
#include "storage/browser/file_system/local_file_util.h"
#include "storage/browser/quota/quota_manager_proxy.h"
#include "storage/browser/test/mock_blob_util.h"
#include "storage/browser/test/mock_file_change_observer.h"
#include "storage/browser/test/mock_quota_manager.h"
#include "storage/browser/test/mock_special_storage_policy.h"
#include "storage/browser/test/test_file_system_backend.h"
#include "storage/browser/test/test_file_system_context.h"
#include "storage/common/file_system/file_system_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "url/gurl.h"
#include "url/origin.h"

namespace storage {

namespace {

const char kOrigin[] =;
const FileSystemType kFileSystemType =;

}  // namespace

class FileSystemOperationImplWriteTest : public testing::Test {};

TEST_F(FileSystemOperationImplWriteTest, TestWriteSuccess) {}

TEST_F(FileSystemOperationImplWriteTest, TestWriteZero) {}

TEST_F(FileSystemOperationImplWriteTest, TestWriteInvalidBlob) {}

TEST_F(FileSystemOperationImplWriteTest, TestWriteInvalidFile) {}

TEST_F(FileSystemOperationImplWriteTest, TestWriteDir) {}

TEST_F(FileSystemOperationImplWriteTest, TestWriteFailureByQuota) {}

TEST_F(FileSystemOperationImplWriteTest, TestImmediateCancelSuccessfulWrite) {}

TEST_F(FileSystemOperationImplWriteTest, TestImmediateCancelFailingWrite) {}

// TODO(ericu,dmikurube,kinuko): Add more tests for cancel cases.

}  // namespace storage