#include <stdint.h>
#include <memory>
#include <string>
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "storage/browser/file_system/async_file_util_adapter.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/local_file_util.h"
#include "storage/browser/file_system/native_file_util.h"
#include "storage/browser/quota/quota_manager_proxy.h"
#include "storage/browser/test/async_file_test_helper.h"
#include "storage/browser/test/test_file_system_context.h"
#include "storage/common/file_system/file_system_types.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"
#if BUILDFLAG(IS_POSIX)
#include <sys/stat.h>
#endif
namespace storage {
namespace {
const FileSystemType kFileSystemType = …;
}
class LocalFileUtilTest : public testing::Test { … };
TEST_F(LocalFileUtilTest, CreateAndClose) { … }
#if BUILDFLAG(IS_POSIX)
TEST_F(LocalFileUtilTest, CreateFailForSymlink) { … }
#endif
TEST_F(LocalFileUtilTest, EnsureFileExists) { … }
#if !BUILDFLAG(IS_FUCHSIA)
TEST_F(LocalFileUtilTest, TouchFile) { … }
TEST_F(LocalFileUtilTest, TouchDirectory) { … }
#endif
TEST_F(LocalFileUtilTest, Truncate) { … }
TEST_F(LocalFileUtilTest, CopyFile) { … }
TEST_F(LocalFileUtilTest, CopyDirectory) { … }
TEST_F(LocalFileUtilTest, MoveFile) { … }
TEST_F(LocalFileUtilTest, MoveDirectory) { … }
#if BUILDFLAG(IS_POSIX)
TEST_F(LocalFileUtilTest, FileEnumeratorError) { … }
#endif
}