summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/zip_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-02 04:28:19 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-02 04:55:18 +0300
commit4b1ca08f26152fbcfb5eb838d271fdd88c381eca (patch)
treea005f6414ead9ae4ee287e6d198bab68ad6bdf63 /src/fs/virtfs/zip_unittest.cc
parentce9dd5dfa8e49e5204f25e079c1283ab6173b7cb (diff)
downloadmanaverse-4b1ca08f26152fbcfb5eb838d271fdd88c381eca.tar.gz
manaverse-4b1ca08f26152fbcfb5eb838d271fdd88c381eca.tar.bz2
manaverse-4b1ca08f26152fbcfb5eb838d271fdd88c381eca.tar.xz
manaverse-4b1ca08f26152fbcfb5eb838d271fdd88c381eca.zip
Add base class for VirtDirEntry and VirtZipEntry.
Diffstat (limited to 'src/fs/virtfs/zip_unittest.cc')
-rw-r--r--src/fs/virtfs/zip_unittest.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fs/virtfs/zip_unittest.cc b/src/fs/virtfs/zip_unittest.cc
index 763bcc2bd..35d4b1f8e 100644
--- a/src/fs/virtfs/zip_unittest.cc
+++ b/src/fs/virtfs/zip_unittest.cc
@@ -51,7 +51,7 @@ TEST_CASE("Zip readArchiveInfo")
REQUIRE(Zip::readArchiveInfo(entry));
REQUIRE(headers.size() == 2);
- REQUIRE(entry->mArchiveName == name);
+ REQUIRE(entry->root == name);
REQUIRE(headers[0]->fileName == "dir/hide.png");
REQUIRE(headers[0]->compressSize == 365);
REQUIRE(headers[0]->uncompressSize == 368);
@@ -71,7 +71,7 @@ TEST_CASE("Zip readArchiveInfo")
REQUIRE(Zip::readArchiveInfo(entry));
REQUIRE(headers.size() == 11);
- REQUIRE(entry->mArchiveName == name);
+ REQUIRE(entry->root == name);
REQUIRE(headers[0]->fileName == "test.txt");
REQUIRE(headers[0]->compressSize == 17);
REQUIRE(headers[0]->uncompressSize == 23);
@@ -128,7 +128,7 @@ TEST_CASE("Zip readArchiveInfo")
REQUIRE(Zip::readArchiveInfo(entry));
REQUIRE(headers.size() == 2);
- REQUIRE(entry->mArchiveName == name);
+ REQUIRE(entry->root == name);
REQUIRE(headers[0]->fileName == "test.txt");
REQUIRE(headers[0]->compressSize == 17);
REQUIRE(headers[0]->uncompressSize == 23);
@@ -147,7 +147,7 @@ TEST_CASE("Zip readArchiveInfo")
std::vector<ZipLocalHeader*> &headers = entry->mHeaders;
REQUIRE(Zip::readArchiveInfo(entry));
- REQUIRE(entry->mArchiveName == name);
+ REQUIRE(entry->root == name);
REQUIRE(headers.size() == 0);
delete entry;
@@ -178,7 +178,7 @@ TEST_CASE("Zip readCompressedFile")
REQUIRE(Zip::readArchiveInfo(entry));
REQUIRE(headers.size() == 11);
- REQUIRE(entry->mArchiveName == name);
+ REQUIRE(entry->root == name);
// test.txt
uint8_t *const buf = Zip::readCompressedFile(headers[0]);
REQUIRE(buf != nullptr);
@@ -211,7 +211,7 @@ TEST_CASE("Zip readFile")
REQUIRE(Zip::readArchiveInfo(entry));
REQUIRE(headers.size() == 2);
- REQUIRE(entry->mArchiveName == name);
+ REQUIRE(entry->root == name);
for (int f = 0; f < 2; f ++)
{
logger->log("test header: %s, %u, %u",
@@ -234,7 +234,7 @@ TEST_CASE("Zip readFile")
REQUIRE(Zip::readArchiveInfo(entry));
REQUIRE(headers.size() == 11);
- REQUIRE(entry->mArchiveName == name);
+ REQUIRE(entry->root == name);
// test.txt
uint8_t *buf = Zip::readFile(headers[0]);
REQUIRE(buf != nullptr);
@@ -264,7 +264,7 @@ TEST_CASE("Zip readFile")
REQUIRE(Zip::readArchiveInfo(entry));
REQUIRE(headers.size() == 2);
- REQUIRE(entry->mArchiveName == name);
+ REQUIRE(entry->root == name);
for (int f = 0; f < 2; f ++)
{
logger->log("test header: %s, %u, %u",