#include "base/test/test_file_util.h"
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <sys/types.h>
#include <unistd.h>
#include <string>
#include "base/check_op.h"
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/notimplemented.h"
#include "base/notreached.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
namespace base {
namespace {
bool DenyFilePermission(const FilePath& path, mode_t permission) { … }
void* GetPermissionInfo(const FilePath& path, size_t* length) { … }
bool RestorePermissionInfo(const FilePath& path, void* info, size_t length) { … }
}
bool DieFileDie(const FilePath& file, bool recurse) { … }
void SyncPageCacheToDisk() { … }
#if !BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) && !BUILDFLAG(IS_APPLE) && \
!BUILDFLAG(IS_ANDROID)
bool EvictFileFromSystemCache(const FilePath& file) {
NOTIMPLEMENTED();
return false;
}
#endif
bool MakeFileUnreadable(const FilePath& path) { … }
bool MakeFileUnwritable(const FilePath& path) { … }
FilePermissionRestorer::FilePermissionRestorer(const FilePath& path)
: … { … }
FilePermissionRestorer::~FilePermissionRestorer() { … }
}