#include <stdint.h>
#include <memory>
#include <set>
#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 "build/build_config.h"
#include "storage/browser/file_system/native_file_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_ANDROID)
#include "base/test/android/content_uri_test_utils.h"
#endif
#if BUILDFLAG(IS_WIN)
#include "windows.h"
#endif
namespace storage {
namespace {
CopyOrMoveOption;
CopyOrMoveOptionSet;
}
class NativeFileUtilTest : public testing::Test { … };
TEST_F(NativeFileUtilTest, CreateCloseAndDeleteFile) { … }
TEST_F(NativeFileUtilTest, EnsureFileExists) { … }
TEST_F(NativeFileUtilTest, CreateAndDeleteDirectory) { … }
#if !BUILDFLAG(IS_FUCHSIA)
TEST_F(NativeFileUtilTest, TouchFileAndGetFileInfo) { … }
#endif
TEST_F(NativeFileUtilTest, CreateFileEnumerator) { … }
TEST_F(NativeFileUtilTest, Truncate) { … }
TEST_F(NativeFileUtilTest, CopyFile) { … }
TEST_F(NativeFileUtilTest, MoveFile) { … }
TEST_F(NativeFileUtilTest, MoveFile_Directory) { … }
#if !BUILDFLAG(IS_WIN)
TEST_F(NativeFileUtilTest, MoveFile_OverwriteEmptyDirectory) { … }
#endif
TEST_F(NativeFileUtilTest, PreserveLastModified) { … }
#if BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_WIN)
TEST_F(NativeFileUtilTest, PreserveDestinationPermissions) { … }
#endif
#if BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_WIN)
TEST_F(NativeFileUtilTest, PreserveLastModifiedAndDestinationPermissions) { … }
#endif
}