fixed empty dirRepository and replaced children-> to getter

This commit is contained in:
Ivan Morozov
2022-08-30 17:43:02 +03:00
parent 0655ef49e5
commit 81b6f331c6
6 changed files with 52 additions and 29 deletions

View File

@ -49,7 +49,7 @@ void test_dirEntry_read(const DirectoryEntry& de)
TEST_F(DirEntryTest, test_directoryentry_read)
{
DirectoryEntry de(L"", StgInvalid, {});
DirectoryEntry de(L"", StgInvalid);
stream->seek(0x400, std::ios::beg);
de.Read(stream);
@ -59,7 +59,7 @@ TEST_F(DirEntryTest, test_directoryentry_read)
TEST_F(DirEntryTest, test_directoryentry_write)
{
DirectoryEntry de(L"", StgInvalid, {});
DirectoryEntry de(L"", StgInvalid);
stream->seek(0x400, std::ios::beg);
de.Read(stream);
@ -69,7 +69,7 @@ TEST_F(DirEntryTest, test_directoryentry_write)
EXPECT_EQ(stream->tell(), 0x80);
stream->seek(0, std::ios::beg);
DirectoryEntry other(L"", StgInvalid, {});
DirectoryEntry other(L"", StgInvalid);
other.Read(stream);
test_dirEntry_read(other);
remove(other_filename.c_str());