summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/virtfs_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-05 19:21:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-05 19:21:42 +0300
commitab311005113b2648cf5d709ec2a12baea90ede95 (patch)
treecf79250d77babb1fea16bb007bbd9a5bcae1aa65 /src/fs/virtfs/virtfs_unittest.cc
parent77cc5e96c21aac8e1572824a7bf9a2c15ea1ba64 (diff)
downloadmv-ab311005113b2648cf5d709ec2a12baea90ede95.tar.gz
mv-ab311005113b2648cf5d709ec2a12baea90ede95.tar.bz2
mv-ab311005113b2648cf5d709ec2a12baea90ede95.tar.xz
mv-ab311005113b2648cf5d709ec2a12baea90ede95.zip
Rename virtlist into list.
Diffstat (limited to 'src/fs/virtfs/virtfs_unittest.cc')
-rw-r--r--src/fs/virtfs/virtfs_unittest.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fs/virtfs/virtfs_unittest.cc b/src/fs/virtfs/virtfs_unittest.cc
index 3c0b65679..8c7688cb6 100644
--- a/src/fs/virtfs/virtfs_unittest.cc
+++ b/src/fs/virtfs/virtfs_unittest.cc
@@ -24,7 +24,7 @@
#include "fs/paths.h"
#include "fs/virtfs/fs.h"
-#include "fs/virtfs/virtlist.h"
+#include "fs/virtfs/list.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
@@ -216,7 +216,7 @@ static void removeTemp(StringVect &restrict list)
}
}
-static bool inList(const VirtFs::VirtList *const list,
+static bool inList(const VirtFs::List *const list,
const std::string &name)
{
FOR_EACH (StringVectCIter, it, list->names)
@@ -234,7 +234,7 @@ TEST_CASE("VirtFs enumerateFiles1")
VirtFs::mountDirSilent("data", Append_false);
VirtFs::mountDirSilent("../data", Append_false);
- VirtFs::VirtList *list = nullptr;
+ VirtFs::List *list = nullptr;
const int cnt1 = VirtFs::exists("test/test2.txt") ? 28 : 27;
const int cnt2 = 28;
@@ -277,7 +277,7 @@ TEST_CASE("VirtFs enumerateFiles2")
VirtFs::mountDirSilent("../data/test/dir1",
Append_false);
- VirtFs::VirtList *list = nullptr;
+ VirtFs::List *list = nullptr;
list = VirtFs::enumerateFiles("/");
REQUIRE(list->names.size() == 5);
@@ -299,7 +299,7 @@ TEST_CASE("VirtFs enumerateFiles3")
VirtFs::mountZip(prefix + "data/test/test.zip",
Append_false);
- VirtFs::VirtList *list = nullptr;
+ VirtFs::List *list = nullptr;
list = VirtFs::enumerateFiles("/");
REQUIRE(list->names.size() == 1);
@@ -321,7 +321,7 @@ TEST_CASE("VirtFs enumerateFiles4")
VirtFs::mountZip(prefix + "data/test/test2.zip",
Append_false);
- VirtFs::VirtList *list = nullptr;
+ VirtFs::List *list = nullptr;
list = VirtFs::enumerateFiles("/");
REQUIRE(list->names.size() == 4);
@@ -347,7 +347,7 @@ TEST_CASE("VirtFs enumerateFiles5")
Append_false);
VirtFs::mountDirSilent(prefix + "data/test", Append_false);
- VirtFs::VirtList *list = nullptr;
+ VirtFs::List *list = nullptr;
list = VirtFs::enumerateFiles("dir2");
REQUIRE(inList(list, "file1.txt"));