• Home
  • Raw
  • Download

Lines Matching refs:manager

70   FileManagerTest() : manager(options) {  in FileManagerTest()
74 FileManager manager; member in __anon7d43dccb0111::FileManagerTest
80 const FileEntry *file = manager.getVirtualFile("foo.cpp", 42, 0); in TEST_F()
87 file = manager.getVirtualFile("x/y/z.cpp", 42, 0); in TEST_F()
101 manager.addStatCache(llvm::make_unique<FakeStatCache>()); in TEST_F()
103 EXPECT_EQ(nullptr, manager.getDirectory("virtual/dir/foo")); in TEST_F()
104 EXPECT_EQ(nullptr, manager.getDirectory("virtual/dir")); in TEST_F()
105 EXPECT_EQ(nullptr, manager.getDirectory("virtual")); in TEST_F()
111 manager.addStatCache(llvm::make_unique<FakeStatCache>()); in TEST_F()
113 manager.getVirtualFile("virtual/dir/bar.h", 100, 0); in TEST_F()
114 EXPECT_EQ(nullptr, manager.getDirectory("virtual/dir/foo")); in TEST_F()
116 const DirectoryEntry *dir = manager.getDirectory("virtual/dir"); in TEST_F()
120 dir = manager.getDirectory("virtual"); in TEST_F()
139 manager.addStatCache(std::move(statCache)); in TEST_F()
141 const FileEntry *file = manager.getFile("/tmp/test"); in TEST_F()
150 file = manager.getFile(FileName); in TEST_F()
162 manager.addStatCache(llvm::make_unique<FakeStatCache>()); in TEST_F()
164 manager.getVirtualFile("virtual/dir/bar.h", 100, 0); in TEST_F()
165 const FileEntry *file = manager.getFile("virtual/dir/bar.h"); in TEST_F()
183 manager.addStatCache(std::move(statCache)); in TEST_F()
185 const FileEntry *fileFoo = manager.getFile("foo.cpp"); in TEST_F()
186 const FileEntry *fileBar = manager.getFile("bar.cpp"); in TEST_F()
199 manager.addStatCache(std::move(statCache)); in TEST_F()
202 manager.getVirtualFile("bar.cpp", 200, 0); in TEST_F()
204 const FileEntry *file = manager.getFile("xyz.txt"); in TEST_F()
219 manager.addStatCache(std::move(statCache)); in TEST_F()
221 EXPECT_EQ(manager.getFile("abc/foo.cpp"), manager.getFile("abc/bar.cpp")); in TEST_F()
232 manager.addStatCache(std::move(statCache)); in TEST_F()
234 manager.getVirtualFile("abc/foo.cpp", 100, 0); in TEST_F()
235 manager.getVirtualFile("abc/bar.cpp", 200, 0); in TEST_F()
237 EXPECT_EQ(manager.getFile("abc/foo.cpp"), manager.getFile("abc/bar.cpp")); in TEST_F()
241 manager.addStatCache(llvm::make_unique<FakeStatCache>()); in TEST_F()
244 manager.addStatCache(std::move(statCacheOwner)); in TEST_F()
245 manager.addStatCache(llvm::make_unique<FakeStatCache>()); in TEST_F()
246 manager.removeStatCache(statCache); in TEST_F()