mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
fixed empty dirRepository and replaced children-> to getter
This commit is contained in:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user