summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'unittests')
-rw-r--r--unittests/config.cpp12
-rw-r--r--unittests/core.cpp18
-rw-r--r--unittests/mockDefs.cpp9
-rw-r--r--unittests/mockDefs.h2
-rw-r--r--unittests/service.cpp11
5 files changed, 46 insertions, 6 deletions
diff --git a/unittests/config.cpp b/unittests/config.cpp
index 20a025a..6e3f92c 100644
--- a/unittests/config.cpp
+++ b/unittests/config.cpp
@@ -1,10 +1,20 @@
#define BOOST_TEST_MODULE GitFS_Config
-#include <boost/test/data/test_case.hpp>
+#include <boost/test/data/test_case.hpp> // IWYU pragma: keep
#include <boost/test/unit_test.hpp>
#include "mockDefs.h"
#include <compileTimeFormatter.h>
#include <definedDirs.h>
+#include <dryice.h>
+#include <filesystem>
+#include <map>
+#include <memory>
+#include <service.h>
+#include <string>
+#include <volume.h>
+namespace NetFS {
+ class ConfigError;
+}
using namespace GitFS;
using namespace GitFS::Test;
diff --git a/unittests/core.cpp b/unittests/core.cpp
index 9cd7552..e64ae80 100644
--- a/unittests/core.cpp
+++ b/unittests/core.cpp
@@ -1,10 +1,22 @@
#define BOOST_TEST_MODULE GitFS_Core
-#include <boost/test/data/test_case.hpp>
+#include <boost/test/data/test_case.hpp> // IWYU pragma: keep
#include <boost/test/unit_test.hpp>
#include "mockDefs.h"
-#include "sys/fcntl.h"
-#include "sys/stat.h"
+#include <algorithm>
+#include <cerrno>
+#include <cstdio>
+#include <exceptions.h>
+#include <fcntl.h>
+#include <map>
+#include <memory>
+#include <ostream>
+#include <string>
+#include <sys/stat.h>
+#include <tuple>
+#include <unistd.h>
+#include <vector>
+#include <volume.h>
using namespace GitFS;
using namespace GitFS::Test;
diff --git a/unittests/mockDefs.cpp b/unittests/mockDefs.cpp
index a257758..a144575 100644
--- a/unittests/mockDefs.cpp
+++ b/unittests/mockDefs.cpp
@@ -1,7 +1,14 @@
#include "mockDefs.h"
-#include <boost/test/test_tools.hpp>
+#include <boost/test/test_tools.hpp> // IWYU pragma: keep
#include <compileTimeFormatter.h>
#include <definedDirs.h>
+#include <dryice.h>
+#include <filesystem>
+#include <memory>
+#include <service.h>
+#include <string>
+#include <volume.h>
+// IWYU pragma: no_include <boost/test/unit_test.hpp>
using namespace AdHoc::literals;
diff --git a/unittests/mockDefs.h b/unittests/mockDefs.h
index 750a256..9efe187 100644
--- a/unittests/mockDefs.h
+++ b/unittests/mockDefs.h
@@ -3,7 +3,9 @@
#include <dryice.h>
#include <service.h>
+#include <types.h>
#include <visibility.h>
+#include <volume.h>
namespace GitFS::Test {
class DLL_PUBLIC Service : public IceTray::DryIce {
diff --git a/unittests/service.cpp b/unittests/service.cpp
index b1bab5a..e2829a6 100644
--- a/unittests/service.cpp
+++ b/unittests/service.cpp
@@ -1,10 +1,19 @@
#define BOOST_TEST_MODULE GitFS_Service
-#include <boost/test/data/test_case.hpp>
+#include <boost/test/data/test_case.hpp> // IWYU pragma: keep
#include <boost/test/unit_test.hpp>
#include "mockDefs.h"
#include <compileTimeFormatter.h>
#include <definedDirs.h>
+#include <dryice.h>
+#include <filesystem>
+#include <memory>
+#include <service.h>
+#include <string>
+namespace NetFS {
+ class AuthError;
+ class ConfigError;
+}
using namespace GitFS;
using namespace GitFS::Test;