summaryrefslogtreecommitdiff
path: root/test/buildtool/multithreading
diff options
context:
space:
mode:
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"