#include "storage/browser/file_system/file_system_operation_runner.h"
#include <optional>
#include <utility>
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/test/task_environment.h"
#include "base/threading/thread_restrictions.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/browser_task_environment.h"
#include "storage/browser/file_system/external_mount_points.h"
#include "storage/browser/file_system/file_system_backend.h"
#include "storage/browser/file_system/file_system_context.h"
#include "storage/browser/quota/quota_manager_proxy.h"
#include "storage/browser/test/mock_special_storage_policy.h"
#include "storage/browser/test/test_file_system_context.h"
#include "storage/browser/test/test_file_system_options.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"
FileSystemContext;
FileSystemOperationRunner;
FileSystemType;
FileSystemURL;
namespace content {
namespace {
void GetStatus(bool* done,
base::File::Error* status_out,
base::File::Error status) { … }
void GetCancelStatus(bool* operation_done,
bool* cancel_done,
base::File::Error* status_out,
base::File::Error status) { … }
void DidOpenFile(base::File file, base::ScopedClosureRunner on_close_callback) { … }
}
class FileSystemOperationRunnerTest : public testing::Test { … };
TEST_F(FileSystemOperationRunnerTest, NotFoundError) { … }
TEST_F(FileSystemOperationRunnerTest, InvalidURLError) { … }
TEST_F(FileSystemOperationRunnerTest, NotFoundErrorAndCancel) { … }
TEST_F(FileSystemOperationRunnerTest, InvalidURLErrorAndCancel) { … }
TEST_F(FileSystemOperationRunnerTest, CancelWithInvalidId) { … }
class MultiThreadFileSystemOperationRunnerTest : public testing::Test { … };
TEST_F(MultiThreadFileSystemOperationRunnerTest, OpenAndShutdown) { … }
}