#include "clang/Basic/FileManager.h"
#include "clang/Basic/FileSystemOptions.h"
#include "clang/Basic/FileSystemStatCache.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
usingnamespacellvm;
usingnamespaceclang;
namespace {
class FakeStatCache : public FileSystemStatCache { … };
class FileManagerTest : public ::testing::Test { … };
TEST_F(FileManagerTest, getVirtualFileSetsTheDirFieldCorrectly) { … }
TEST_F(FileManagerTest, NoVirtualDirectoryExistsBeforeAVirtualFileIsAdded) { … }
TEST_F(FileManagerTest, getVirtualFileCreatesDirectoryEntriesForAncestors) { … }
TEST_F(FileManagerTest, getFileReturnsValidFileEntryForExistingRealFile) { … }
TEST_F(FileManagerTest, getFileReturnsValidFileEntryForExistingVirtualFile) { … }
TEST_F(FileManagerTest, getFileReturnsDifferentFileEntriesForDifferentFiles) { … }
TEST_F(FileManagerTest, getFileReturnsErrorForNonexistentFile) { … }
#ifndef _WIN32
TEST_F(FileManagerTest, getFileReturnsSameFileEntryForAliasedRealFiles) { … }
TEST_F(FileManagerTest, getFileRefReturnsCorrectNameForDifferentStatPath) { … }
TEST_F(FileManagerTest, getFileRefReturnsCorrectDirNameForDifferentStatPath) { … }
TEST_F(FileManagerTest, getFileReturnsSameFileEntryForAliasedVirtualFiles) { … }
TEST_F(FileManagerTest, getFileRefEquality) { … }
TEST_F(FileManagerTest, getVirtualFileWithDifferentName) { … }
#endif
static StringRef getSystemRoot() { … }
TEST_F(FileManagerTest, makeAbsoluteUsesVFS) { … }
TEST_F(FileManagerTest, getVirtualFileFillsRealPathName) { … }
TEST_F(FileManagerTest, getFileDontOpenRealPath) { … }
TEST_F(FileManagerTest, getBypassFile) { … }
}