Skip to content

Commit

Permalink
[clang] NFCI: Use FileEntryRef in FileManagerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jansvoboda11 committed Sep 21, 2023
1 parent 3de1e30 commit 69074bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/unittests/Basic/FileManagerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ TEST_F(FileManagerTest, getBypassFile) {
Manager.setStatCache(std::move(Cache));

// Set up a virtual file with a different size than FakeStatCache uses.
const FileEntry *File = Manager.getVirtualFile("/tmp/test", /*Size=*/10, 0);
FileEntryRef File = Manager.getVirtualFileRef("/tmp/test", /*Size=*/10, 0);
ASSERT_TRUE(File);
const FileEntry &FE = *File;
EXPECT_EQ(FE.getSize(), 10);
Expand All @@ -562,7 +562,7 @@ TEST_F(FileManagerTest, getBypassFile) {
EXPECT_EQ(FE.getSize(), 10);

// Bypass the file.
OptionalFileEntryRef BypassRef = Manager.getBypassFile(File->getLastRef());
OptionalFileEntryRef BypassRef = Manager.getBypassFile(File);
ASSERT_TRUE(BypassRef);
EXPECT_EQ("/tmp/test", BypassRef->getName());

Expand Down

0 comments on commit 69074bf

Please sign in to comment.