diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-02 04:28:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-02 04:55:18 +0300 |
commit | 4b1ca08f26152fbcfb5eb838d271fdd88c381eca (patch) | |
tree | a005f6414ead9ae4ee287e6d198bab68ad6bdf63 /src/fs/virtfs/virtfsdir_unittest.cc | |
parent | ce9dd5dfa8e49e5204f25e079c1283ab6173b7cb (diff) | |
download | plus-4b1ca08f26152fbcfb5eb838d271fdd88c381eca.tar.gz plus-4b1ca08f26152fbcfb5eb838d271fdd88c381eca.tar.bz2 plus-4b1ca08f26152fbcfb5eb838d271fdd88c381eca.tar.xz plus-4b1ca08f26152fbcfb5eb838d271fdd88c381eca.zip |
Add base class for VirtDirEntry and VirtZipEntry.
Diffstat (limited to 'src/fs/virtfs/virtfsdir_unittest.cc')
-rw-r--r-- | src/fs/virtfs/virtfsdir_unittest.cc | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/fs/virtfs/virtfsdir_unittest.cc b/src/fs/virtfs/virtfsdir_unittest.cc index c70d9cc52..4923c105c 100644 --- a/src/fs/virtfs/virtfsdir_unittest.cc +++ b/src/fs/virtfs/virtfsdir_unittest.cc @@ -59,7 +59,7 @@ TEST_CASE("VirtFsDir addToSearchPath") REQUIRE(VirtFsDir::searchEntryByRoot("dir1/") != nullptr); REQUIRE(VirtFsDir::searchEntryByRoot("test/") == nullptr); REQUIRE(VirtFsDir::getEntries().size() == 1); - REQUIRE(VirtFsDir::getEntries()[0]->mRootDir == "dir1/"); + REQUIRE(VirtFsDir::getEntries()[0]->root == "dir1/"); REQUIRE(VirtFsDir::getEntries()[0]->mUserDir == "dir1"); } @@ -71,7 +71,7 @@ TEST_CASE("VirtFsDir addToSearchPath") REQUIRE(VirtFsDir::searchEntryByRoot("dir1/") != nullptr); REQUIRE(VirtFsDir::searchEntryByRoot("test/") == nullptr); REQUIRE(VirtFsDir::getEntries().size() == 1); - REQUIRE(VirtFsDir::getEntries()[0]->mRootDir == "dir1/"); + REQUIRE(VirtFsDir::getEntries()[0]->root == "dir1/"); REQUIRE(VirtFsDir::getEntries()[0]->mUserDir == "dir1/"); } @@ -87,8 +87,8 @@ TEST_CASE("VirtFsDir addToSearchPath") REQUIRE(VirtFsDir::searchEntryByRoot("dir2/") != nullptr); REQUIRE(VirtFsDir::searchEntryByRoot("test/") == nullptr); REQUIRE(VirtFsDir::getEntries().size() == 2); - REQUIRE(VirtFsDir::getEntries()[0]->mRootDir == "dir2/"); - REQUIRE(VirtFsDir::getEntries()[1]->mRootDir == "dir1/"); + REQUIRE(VirtFsDir::getEntries()[0]->root == "dir2/"); + REQUIRE(VirtFsDir::getEntries()[1]->root == "dir1/"); REQUIRE(VirtFsDir::getEntries()[0]->mUserDir == "dir2"); REQUIRE(VirtFsDir::getEntries()[1]->mUserDir == "dir1"); } @@ -105,8 +105,8 @@ TEST_CASE("VirtFsDir addToSearchPath") REQUIRE(VirtFsDir::searchEntryByRoot("dir2/") != nullptr); REQUIRE(VirtFsDir::searchEntryByRoot("test/") == nullptr); REQUIRE(VirtFsDir::getEntries().size() == 2); - REQUIRE(VirtFsDir::getEntries()[0]->mRootDir == "dir1/"); - REQUIRE(VirtFsDir::getEntries()[1]->mRootDir == "dir2/"); + REQUIRE(VirtFsDir::getEntries()[0]->root == "dir1/"); + REQUIRE(VirtFsDir::getEntries()[1]->root == "dir2/"); REQUIRE(VirtFsDir::getEntries()[0]->mUserDir == "dir1/"); REQUIRE(VirtFsDir::getEntries()[1]->mUserDir == "dir2"); } @@ -127,11 +127,11 @@ TEST_CASE("VirtFsDir addToSearchPath") REQUIRE(VirtFsDir::searchEntryByRoot("dir3/test/") != nullptr); REQUIRE(VirtFsDir::searchEntryByRoot("test/") == nullptr); REQUIRE(VirtFsDir::getEntries().size() == 3); - REQUIRE(VirtFsDir::getEntries()[0]->mRootDir == "dir1/"); + REQUIRE(VirtFsDir::getEntries()[0]->root == "dir1/"); REQUIRE(VirtFsDir::getEntries()[0]->mUserDir == "dir1"); - REQUIRE(VirtFsDir::getEntries()[1]->mRootDir == "dir2/"); + REQUIRE(VirtFsDir::getEntries()[1]->root == "dir2/"); REQUIRE(VirtFsDir::getEntries()[1]->mUserDir == "dir2"); - REQUIRE(VirtFsDir::getEntries()[2]->mRootDir == "dir3/test/"); + REQUIRE(VirtFsDir::getEntries()[2]->root == "dir3/test/"); REQUIRE(VirtFsDir::getEntries()[2]->mUserDir == "dir3/test"); } @@ -151,11 +151,11 @@ TEST_CASE("VirtFsDir addToSearchPath") REQUIRE(VirtFsDir::searchEntryByRoot("dir3/test/") != nullptr); REQUIRE(VirtFsDir::searchEntryByRoot("test/") == nullptr); REQUIRE(VirtFsDir::getEntries().size() == 3); - REQUIRE(VirtFsDir::getEntries()[0]->mRootDir == "dir3/test/"); + REQUIRE(VirtFsDir::getEntries()[0]->root == "dir3/test/"); REQUIRE(VirtFsDir::getEntries()[0]->mUserDir == "dir3/test"); - REQUIRE(VirtFsDir::getEntries()[1]->mRootDir == "dir1/"); + REQUIRE(VirtFsDir::getEntries()[1]->root == "dir1/"); REQUIRE(VirtFsDir::getEntries()[1]->mUserDir == "dir1"); - REQUIRE(VirtFsDir::getEntries()[2]->mRootDir == "dir2/"); + REQUIRE(VirtFsDir::getEntries()[2]->root == "dir2/"); REQUIRE(VirtFsDir::getEntries()[2]->mUserDir == "dir2"); } @@ -198,20 +198,20 @@ TEST_CASE("VirtFsDir removeFromSearchPath") REQUIRE_THROWS(VirtFsDir::removeFromSearchPath("dir2")); REQUIRE(VirtFsDir::removeFromSearchPath("dir1")); REQUIRE(VirtFsDir::getEntries().size() == 2); - REQUIRE(VirtFsDir::getEntries()[0]->mRootDir == "dir3/"); + REQUIRE(VirtFsDir::getEntries()[0]->root == "dir3/"); REQUIRE(VirtFsDir::getEntries()[0]->mUserDir == "dir3"); - REQUIRE(VirtFsDir::getEntries()[1]->mRootDir == "dir2/dir3/"); + REQUIRE(VirtFsDir::getEntries()[1]->root == "dir2/dir3/"); REQUIRE(VirtFsDir::getEntries()[1]->mUserDir == "dir2/dir3"); REQUIRE_THROWS(VirtFsDir::removeFromSearchPath("dir1")); REQUIRE(VirtFsDir::getEntries().size() == 2); - REQUIRE(VirtFsDir::getEntries()[0]->mRootDir == "dir3/"); + REQUIRE(VirtFsDir::getEntries()[0]->root == "dir3/"); REQUIRE(VirtFsDir::getEntries()[0]->mUserDir == "dir3"); - REQUIRE(VirtFsDir::getEntries()[1]->mRootDir == "dir2/dir3/"); + REQUIRE(VirtFsDir::getEntries()[1]->root == "dir2/dir3/"); REQUIRE(VirtFsDir::getEntries()[1]->mUserDir == "dir2/dir3"); REQUIRE(VirtFsDir::removeFromSearchPath("dir2/dir3")); REQUIRE_THROWS(VirtFsDir::removeFromSearchPath("dir2/dir3/")); REQUIRE(VirtFsDir::getEntries().size() == 1); - REQUIRE(VirtFsDir::getEntries()[0]->mRootDir == "dir3/"); + REQUIRE(VirtFsDir::getEntries()[0]->root == "dir3/"); REQUIRE(VirtFsDir::getEntries()[0]->mUserDir == "dir3"); } @@ -221,7 +221,7 @@ TEST_CASE("VirtFsDir removeFromSearchPath") Append_true, SkipError_true)); REQUIRE(VirtFsDir::getEntries().size() == 1); - REQUIRE(VirtFsDir::getEntries()[0]->mRootDir == "dir1/"); + REQUIRE(VirtFsDir::getEntries()[0]->root == "dir1/"); REQUIRE(VirtFsDir::getEntries()[0]->mUserDir == "dir1"); REQUIRE_THROWS(VirtFsDir::removeFromSearchPath("dir2")); REQUIRE(VirtFsDir::removeFromSearchPath("dir1")); @@ -230,7 +230,7 @@ TEST_CASE("VirtFsDir removeFromSearchPath") Append_true, SkipError_true)); REQUIRE(VirtFsDir::getEntries().size() == 1); - REQUIRE(VirtFsDir::getEntries()[0]->mRootDir == "dir1/"); + REQUIRE(VirtFsDir::getEntries()[0]->root == "dir1/"); REQUIRE(VirtFsDir::getEntries()[0]->mUserDir == "dir1"); } |