#include "util/file/filesystem.h"
#include <sys/time.h>
#include "build/build_config.h"
#include "gtest/gtest.h"
#include "test/errors.h"
#include "test/filesystem.h"
#include "test/scoped_temp_dir.h"
#include "util/file/file_writer.h"
#include "util/misc/time.h"
namespace crashpad {
namespace test {
namespace {
constexpr char kTestFileContent[] = …;
bool CurrentTime(timespec* now) { … }
TEST(Filesystem, FileModificationTime) { … }
#if !BUILDFLAG(IS_FUCHSIA)
TEST(Filesystem, FileModificationTime_SymbolicLinks) { … }
#endif
TEST(Filesystem, CreateDirectory) { … }
TEST(Filesystem, MoveFileOrDirectory) { … }
#if !BUILDFLAG(IS_FUCHSIA)
TEST(Filesystem, MoveFileOrDirectory_SymbolicLinks) { … }
#endif
TEST(Filesystem, IsRegularFile) { … }
#if !BUILDFLAG(IS_FUCHSIA)
TEST(Filesystem, IsRegularFile_SymbolicLinks) { … }
#endif
TEST(Filesystem, IsDirectory) { … }
#if !BUILDFLAG(IS_FUCHSIA)
TEST(Filesystem, IsDirectory_SymbolicLinks) { … }
#endif
TEST(Filesystem, RemoveFile) { … }
#if !BUILDFLAG(IS_FUCHSIA)
TEST(Filesystem, RemoveFile_SymbolicLinks) { … }
#endif
TEST(Filesystem, RemoveDirectory) { … }
#if !BUILDFLAG(IS_FUCHSIA)
TEST(Filesystem, RemoveDirectory_SymbolicLinks) { … }
#endif
TEST(Filesystem, GetFileSize) { … }
TEST(Filesystem, GetDirectorySize) { … }
}
}
}