summaryrefslogtreecommitdiff
path: root/test/buildtool/multithreading
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-04-04 16:34:29 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-04-08 15:19:50 +0200
commite047c360dcc5cbdc01ee19a1b755bb70d883e41c (patch)
tree446072ded32f88c1e77d047d27f9fbde6e1825be /test/buildtool/multithreading
parent65fc11ff28e6dd29a95391b6700a02d277b539c6 (diff)
downloadjustbuild-e047c360dcc5cbdc01ee19a1b755bb70d883e41c.tar.gz
test: Add missing includes and fix deps
Diffstat (limited to 'test/buildtool/multithreading')
-rw-r--r--test/buildtool/multithreading/async_map_consumer.test.cpp5
-rw-r--r--test/buildtool/multithreading/async_map_node.test.cpp1
-rw-r--r--test/buildtool/multithreading/task.test.cpp3
-rw-r--r--test/buildtool/multithreading/task_system.test.cpp5
4 files changed, 14 insertions, 0 deletions
diff --git a/test/buildtool/multithreading/async_map_consumer.test.cpp b/test/buildtool/multithreading/async_map_consumer.test.cpp
index 4e8df652..fa7038b9 100644
--- a/test/buildtool/multithreading/async_map_consumer.test.cpp
+++ b/test/buildtool/multithreading/async_map_consumer.test.cpp
@@ -12,9 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include <algorithm> // std::transform
+#include <atomic>
#include <cstdint> // for fixed width integral types
+#include <mutex>
#include <numeric>
+#include <optional>
#include <string>
+#include <vector>
#include "catch2/catch_test_macros.hpp"
#include "catch2/matchers/catch_matchers_all.hpp"
diff --git a/test/buildtool/multithreading/async_map_node.test.cpp b/test/buildtool/multithreading/async_map_node.test.cpp
index 8dd9bf89..782f41ad 100644
--- a/test/buildtool/multithreading/async_map_node.test.cpp
+++ b/test/buildtool/multithreading/async_map_node.test.cpp
@@ -15,6 +15,7 @@
#include <mutex>
#include <string>
#include <thread>
+#include <vector>
#include "catch2/catch_test_macros.hpp"
#include "catch2/matchers/catch_matchers_all.hpp"
diff --git a/test/buildtool/multithreading/task.test.cpp b/test/buildtool/multithreading/task.test.cpp
index cb540def..fab83547 100644
--- a/test/buildtool/multithreading/task.test.cpp
+++ b/test/buildtool/multithreading/task.test.cpp
@@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include <functional>
+#include <utility> // std::move
+
#include "catch2/catch_test_macros.hpp"
#include "src/buildtool/multithreading/task.hpp"
diff --git a/test/buildtool/multithreading/task_system.test.cpp b/test/buildtool/multithreading/task_system.test.cpp
index 694158ba..ea0ed41b 100644
--- a/test/buildtool/multithreading/task_system.test.cpp
+++ b/test/buildtool/multithreading/task_system.test.cpp
@@ -12,12 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include <atomic>
#include <chrono>
+#include <condition_variable>
+#include <cstddef>
+#include <functional>
#include <mutex>
#include <numeric> // std::iota
#include <string>
#include <thread>
#include <unordered_set>
+#include <vector>
#include "catch2/catch_test_macros.hpp"
#include "catch2/generators/catch_generators_all.hpp"