#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "llvm/Support/FileCollector.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Testing/Support/SupportHelpers.h"
usingnamespacellvm;
TempDir;
TempFile;
TempLink;
namespace llvm {
namespace vfs {
inline bool operator==(const llvm::vfs::YAMLVFSEntry &LHS,
const llvm::vfs::YAMLVFSEntry &RHS) { … }
}
}
namespace {
class TestingFileCollector : public FileCollector { … };
}
TEST(FileCollectorTest, addFile) { … }
TEST(FileCollectorTest, addDirectory) { … }
TEST(FileCollectorTest, copyFiles) { … }
TEST(FileCollectorTest, recordAndConstructDirectory) { … }
TEST(FileCollectorTest, recordVFSAccesses) { … }
#ifndef _WIN32
TEST(FileCollectorTest, Symlinks) { … }
TEST(FileCollectorTest, recordVFSSymlinkAccesses) { … }
#endif