• Home
  • Raw
  • Download

Lines Matching refs:manager

94   FileManagerTest() : manager(options) {  in FileManagerTest()
98 FileManager manager; member in __anonf2e4b5390111::FileManagerTest
104 const FileEntry *file = manager.getVirtualFile("foo.cpp", 42, 0); in TEST_F()
111 file = manager.getVirtualFile("x/y/z.cpp", 42, 0); in TEST_F()
125 manager.setStatCache(std::make_unique<FakeStatCache>()); in TEST_F()
127 ASSERT_FALSE(manager.getDirectory("virtual/dir/foo")); in TEST_F()
128 ASSERT_FALSE(manager.getDirectory("virtual/dir")); in TEST_F()
129 ASSERT_FALSE(manager.getDirectory("virtual")); in TEST_F()
135 manager.setStatCache(std::make_unique<FakeStatCache>()); in TEST_F()
137 manager.getVirtualFile("virtual/dir/bar.h", 100, 0); in TEST_F()
138 ASSERT_FALSE(manager.getDirectory("virtual/dir/foo")); in TEST_F()
140 auto dir = manager.getDirectory("virtual/dir"); in TEST_F()
144 dir = manager.getDirectory("virtual"); in TEST_F()
163 manager.setStatCache(std::move(statCache)); in TEST_F()
165 auto file = manager.getFile("/tmp/test"); in TEST_F()
175 file = manager.getFile(FileName); in TEST_F()
187 manager.setStatCache(std::make_unique<FakeStatCache>()); in TEST_F()
189 manager.getVirtualFile("virtual/dir/bar.h", 100, 0); in TEST_F()
190 auto file = manager.getFile("virtual/dir/bar.h"); in TEST_F()
209 manager.setStatCache(std::move(statCache)); in TEST_F()
211 auto fileFoo = manager.getFile("foo.cpp"); in TEST_F()
212 auto fileBar = manager.getFile("bar.cpp"); in TEST_F()
228 manager.setStatCache(std::move(statCache)); in TEST_F()
231 manager.getVirtualFile("bar.cpp", 200, 0); in TEST_F()
233 auto file = manager.getFile("xyz.txt"); in TEST_F()
237 auto readingDirAsFile = manager.getFile("MyDirectory"); in TEST_F()
241 auto readingFileAsDir = manager.getDirectory("foo.cpp"); in TEST_F()
257 manager.setStatCache(std::move(statCache)); in TEST_F()
259 auto f1 = manager.getFile("abc/foo.cpp"); in TEST_F()
260 auto f2 = manager.getFile("abc/bar.cpp"); in TEST_F()
266 auto r1 = manager.getFileRef("abc/foo.cpp"); in TEST_F()
267 auto r2 = manager.getFileRef("abc/bar.cpp"); in TEST_F()
297 manager.setStatCache(std::move(StatCache)); in TEST_F()
300 auto F1 = manager.getFileRef("dir/f1.cpp"); in TEST_F()
301 auto F1Alias = manager.getFileRef("dir/f1-alias.cpp"); in TEST_F()
302 auto F1Alias2 = manager.getFileRef("dir/f1-alias.cpp"); in TEST_F()
314 EXPECT_DEATH((void)manager.getFileRef("dir/f1-alias-alias.cpp"), in TEST_F()
319 auto F2Alias = manager.getFileRef("dir/f2-alias.cpp"); in TEST_F()
320 auto F2 = manager.getFileRef("dir/f2.cpp"); in TEST_F()
321 auto F2Alias2 = manager.getFileRef("dir/f2-alias.cpp"); in TEST_F()
341 manager.setStatCache(std::move(statCache)); in TEST_F()
343 ASSERT_TRUE(manager.getVirtualFile("abc/foo.cpp", 100, 0)->isValid()); in TEST_F()
344 ASSERT_TRUE(manager.getVirtualFile("abc/bar.cpp", 200, 0)->isValid()); in TEST_F()
346 auto f1 = manager.getFile("abc/foo.cpp"); in TEST_F()
347 auto f2 = manager.getFile("abc/bar.cpp"); in TEST_F()
360 manager.setStatCache(std::move(StatCache)); in TEST_F()
362 auto F1 = manager.getFileRef("dir/f1.cpp"); in TEST_F()
363 auto F1Again = manager.getFileRef("dir/f1.cpp"); in TEST_F()
364 auto F1Also = manager.getFileRef("dir/f1-also.cpp"); in TEST_F()
365 auto F1Redirect = manager.getFileRef("dir/f1-redirect.cpp"); in TEST_F()
366 auto F2 = manager.getFileRef("dir/f2.cpp"); in TEST_F()
415 manager.setStatCache(std::move(statCache)); in TEST_F()
418 const FileEntry *file1 = manager.getVirtualFile("c:\\tmp\\test", 123, 1); in TEST_F()
425 auto file2 = manager.getFile("c:/tmp/test", 100, 1); in TEST_F()