File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ TEST_F(FileManagerTest, getBypassFile) {
547
547
Manager.setStatCache (std::move (Cache));
548
548
549
549
// Set up a virtual file with a different size than FakeStatCache uses.
550
- const FileEntry * File = Manager.getVirtualFile (" /tmp/test" , /* Size=*/ 10 , 0 );
550
+ FileEntryRef File = Manager.getVirtualFileRef (" /tmp/test" , /* Size=*/ 10 , 0 );
551
551
ASSERT_TRUE (File);
552
552
const FileEntry &FE = *File;
553
553
EXPECT_EQ (FE.getSize (), 10 );
@@ -562,7 +562,7 @@ TEST_F(FileManagerTest, getBypassFile) {
562
562
EXPECT_EQ (FE.getSize (), 10 );
563
563
564
564
// Bypass the file.
565
- OptionalFileEntryRef BypassRef = Manager.getBypassFile (File-> getLastRef () );
565
+ OptionalFileEntryRef BypassRef = Manager.getBypassFile (File);
566
566
ASSERT_TRUE (BypassRef);
567
567
EXPECT_EQ (" /tmp/test" , BypassRef->getName ());
568
568
You can’t perform that action at this time.
0 commit comments