#include "util/file/directory_reader.h"
#include <set>
#include "base/files/file_path.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "gtest/gtest.h"
#include "test/filesystem.h"
#include "test/scoped_temp_dir.h"
#include "util/file/file_io.h"
#include "util/file/filesystem.h"
namespace crashpad {
namespace test {
namespace {
TEST(DirectoryReader, BadPaths) { … }
#if !BUILDFLAG(IS_FUCHSIA)
TEST(DirectoryReader, BadPaths_SymbolicLinks) { … }
#endif
TEST(DirectoryReader, EmptyDirectory) { … }
void ExpectFiles(const std::set<base::FilePath>& files,
const std::set<base::FilePath>& expected) { … }
void TestFilesAndDirectories(bool symbolic_links) { … }
TEST(DirectoryReader, FilesAndDirectories) { … }
#if !BUILDFLAG(IS_FUCHSIA)
TEST(DirectoryReader, FilesAndDirectories_SymbolicLinks) { … }
#endif
}
}
}