summaryrefslogtreecommitdiff
path: root/src/unittests/fs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-08 04:53:47 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-08 05:01:50 +0300
commit62f77691f6437c633ea505d7e4a49bcb5a96af5b (patch)
tree46924291ae5846c3e37629413cec57225c9fba4c /src/unittests/fs
parent24458e96c0181f4f64f70da763315d4f07835bcd (diff)
downloadmv-62f77691f6437c633ea505d7e4a49bcb5a96af5b.tar.gz
mv-62f77691f6437c633ea505d7e4a49bcb5a96af5b.tar.bz2
mv-62f77691f6437c633ea505d7e4a49bcb5a96af5b.tar.xz
mv-62f77691f6437c633ea505d7e4a49bcb5a96af5b.zip
Remove extra headers.
Diffstat (limited to 'src/unittests/fs')
-rw-r--r--src/unittests/fs/virtfs/virtfs1_basic.cc13
-rw-r--r--src/unittests/fs/virtfs/virtfs1_enumerate.cc32
-rw-r--r--src/unittests/fs/virtfs/virtfs1_exists.cc12
-rw-r--r--src/unittests/fs/virtfs/virtfs1_getrealdir.cc10
-rw-r--r--src/unittests/fs/virtfs/virtfs1_mount.cc9
-rw-r--r--src/unittests/fs/virtfs/virtfs1_unmount.cc9
-rw-r--r--src/unittests/fs/virtfs/virtfs2_unittest.cc13
7 files changed, 0 insertions, 98 deletions
diff --git a/src/unittests/fs/virtfs/virtfs1_basic.cc b/src/unittests/fs/virtfs/virtfs1_basic.cc
index 3d8b21877..73153df37 100644
--- a/src/unittests/fs/virtfs/virtfs1_basic.cc
+++ b/src/unittests/fs/virtfs/virtfs1_basic.cc
@@ -20,22 +20,9 @@
#include "unittests/unittests.h"
-#include "fs/files.h"
-
-#include "fs/virtfs/direntry.h"
#include "fs/virtfs/fs.h"
-#include "fs/virtfs/rwops.h"
-#include "fs/virtfs/list.h"
#include "utils/checkutils.h"
-#include "utils/delete2.h"
-#include "utils/foreach.h"
-#include "utils/stringutils.h"
-
-PRAGMA48(GCC diagnostic push)
-PRAGMA48(GCC diagnostic ignored "-Wshadow")
-#include <SDL_rwops.h>
-PRAGMA48(GCC diagnostic pop)
#ifndef UNITTESTS_CATCH
#include <algorithm>
diff --git a/src/unittests/fs/virtfs/virtfs1_enumerate.cc b/src/unittests/fs/virtfs/virtfs1_enumerate.cc
index f2caa0171..1cbc5239b 100644
--- a/src/unittests/fs/virtfs/virtfs1_enumerate.cc
+++ b/src/unittests/fs/virtfs/virtfs1_enumerate.cc
@@ -22,20 +22,12 @@
#include "fs/files.h"
-#include "fs/virtfs/direntry.h"
#include "fs/virtfs/fs.h"
-#include "fs/virtfs/rwops.h"
#include "fs/virtfs/list.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
#include "utils/foreach.h"
-#include "utils/stringutils.h"
-
-PRAGMA48(GCC diagnostic push)
-PRAGMA48(GCC diagnostic ignored "-Wshadow")
-#include <SDL_rwops.h>
-PRAGMA48(GCC diagnostic pop)
#ifndef UNITTESTS_CATCH
#include <algorithm>
@@ -80,30 +72,6 @@ static bool inList(const VirtFs::List *const list,
return false;
}
-static bool inList(StringVect list,
- const std::string &name)
-{
- FOR_EACH (StringVectCIter, it, list)
- {
- if (*it == name)
- return true;
- }
- return false;
-}
-
-static bool inList(StringVect list,
- const std::string &dir,
- const std::string &name)
-{
- const std::string path = pathJoin(dir, name);
- FOR_EACH (StringVectCIter, it, list)
- {
- if (*it == path)
- return true;
- }
- return false;
-}
-
TEST_CASE("VirtFs1 enumerateFiles1", "")
{
VirtFs::init(".");
diff --git a/src/unittests/fs/virtfs/virtfs1_exists.cc b/src/unittests/fs/virtfs/virtfs1_exists.cc
index 310cb28ae..977572677 100644
--- a/src/unittests/fs/virtfs/virtfs1_exists.cc
+++ b/src/unittests/fs/virtfs/virtfs1_exists.cc
@@ -20,22 +20,10 @@
#include "unittests/unittests.h"
-#include "fs/files.h"
-
-#include "fs/virtfs/direntry.h"
#include "fs/virtfs/fs.h"
-#include "fs/virtfs/rwops.h"
-#include "fs/virtfs/list.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
-#include "utils/foreach.h"
-#include "utils/stringutils.h"
-
-PRAGMA48(GCC diagnostic push)
-PRAGMA48(GCC diagnostic ignored "-Wshadow")
-#include <SDL_rwops.h>
-PRAGMA48(GCC diagnostic pop)
#ifndef UNITTESTS_CATCH
#include <algorithm>
diff --git a/src/unittests/fs/virtfs/virtfs1_getrealdir.cc b/src/unittests/fs/virtfs/virtfs1_getrealdir.cc
index 7b2f7915c..ea0d3ccb0 100644
--- a/src/unittests/fs/virtfs/virtfs1_getrealdir.cc
+++ b/src/unittests/fs/virtfs/virtfs1_getrealdir.cc
@@ -22,20 +22,10 @@
#include "fs/files.h"
-#include "fs/virtfs/direntry.h"
#include "fs/virtfs/fs.h"
-#include "fs/virtfs/rwops.h"
-#include "fs/virtfs/list.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
-#include "utils/foreach.h"
-#include "utils/stringutils.h"
-
-PRAGMA48(GCC diagnostic push)
-PRAGMA48(GCC diagnostic ignored "-Wshadow")
-#include <SDL_rwops.h>
-PRAGMA48(GCC diagnostic pop)
#ifndef UNITTESTS_CATCH
#include <algorithm>
diff --git a/src/unittests/fs/virtfs/virtfs1_mount.cc b/src/unittests/fs/virtfs/virtfs1_mount.cc
index 1174fe1a9..6b3a50e80 100644
--- a/src/unittests/fs/virtfs/virtfs1_mount.cc
+++ b/src/unittests/fs/virtfs/virtfs1_mount.cc
@@ -24,18 +24,9 @@
#include "fs/virtfs/direntry.h"
#include "fs/virtfs/fs.h"
-#include "fs/virtfs/rwops.h"
-#include "fs/virtfs/list.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
-#include "utils/foreach.h"
-#include "utils/stringutils.h"
-
-PRAGMA48(GCC diagnostic push)
-PRAGMA48(GCC diagnostic ignored "-Wshadow")
-#include <SDL_rwops.h>
-PRAGMA48(GCC diagnostic pop)
#ifndef UNITTESTS_CATCH
#include <algorithm>
diff --git a/src/unittests/fs/virtfs/virtfs1_unmount.cc b/src/unittests/fs/virtfs/virtfs1_unmount.cc
index 549061f25..5e6815d5c 100644
--- a/src/unittests/fs/virtfs/virtfs1_unmount.cc
+++ b/src/unittests/fs/virtfs/virtfs1_unmount.cc
@@ -24,18 +24,9 @@
#include "fs/virtfs/direntry.h"
#include "fs/virtfs/fs.h"
-#include "fs/virtfs/rwops.h"
-#include "fs/virtfs/list.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
-#include "utils/foreach.h"
-#include "utils/stringutils.h"
-
-PRAGMA48(GCC diagnostic push)
-PRAGMA48(GCC diagnostic ignored "-Wshadow")
-#include <SDL_rwops.h>
-PRAGMA48(GCC diagnostic pop)
#ifndef UNITTESTS_CATCH
#include <algorithm>
diff --git a/src/unittests/fs/virtfs/virtfs2_unittest.cc b/src/unittests/fs/virtfs/virtfs2_unittest.cc
index 86d932655..8e578cc71 100644
--- a/src/unittests/fs/virtfs/virtfs2_unittest.cc
+++ b/src/unittests/fs/virtfs/virtfs2_unittest.cc
@@ -22,10 +22,8 @@
#include "fs/files.h"
-#include "fs/virtfs/direntry.h"
#include "fs/virtfs/fs.h"
#include "fs/virtfs/rwops.h"
-#include "fs/virtfs/list.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
@@ -43,17 +41,6 @@ PRAGMA48(GCC diagnostic pop)
#include "debug.h"
-static bool inList(const VirtFs::List *const list,
- const std::string &name)
-{
- FOR_EACH (StringVectCIter, it, list->names)
- {
- if (*it == name)
- return true;
- }
- return false;
-}
-
static bool inList(StringVect list,
const std::string &name)
{