summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-12 00:58:34 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-16 03:38:11 +0300
commit93e72b695e477ac1efc22a0bdddb177199cf2fb9 (patch)
tree7ba4b9fe0d5442ad7ca4e25aee1bc17b830a98ed /test
parent79c5df21ddde12f98eacf2ece8e3091e4f845d38 (diff)
libcamera: Move internal headers to include/libcamera/internal/
The libcamera internal headers are located in src/libcamera/include/. The directory is added to the compiler headers search path with a meson include_directories() directive, and internal headers are included with (e.g. for the internal semaphore.h header) #include "semaphore.h" All was well, until libcxx decided to implement the C++20 synchronization library. The __threading_support header gained a #include <semaphore.h> to include the pthread's semaphore support. As include_directories() adds src/libcamera/include/ to the compiler search path with -I, the internal semaphore.h is included instead of the pthread version. Needless to say, the compiler isn't happy. Three options have been considered to fix this issue: - Use -iquote instead of -I. The -iquote option instructs gcc to only consider the header search path for headers included with the "" version. Meson unfortunately doesn't support this option. - Rename the internal semaphore.h header. This was deemed to be the beginning of a long whack-a-mole game, where namespace clashes with system libraries would appear over time (possibly dependent on particular system configurations) and would need to be constantly fixed. - Move the internal headers to another directory to create a unique namespace through path components. This causes lots of churn in all the existing source files through the all project. The first option would be best, but isn't available to us due to missing support in meson. Even if -iquote support was added, we would need to fix the problem before a new version of meson containing the required support would be released. The third option is thus the only practical solution available. Bite the bullet, and do it, moving headers to include/libcamera/internal/. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test')
-rw-r--r--test/byte-stream-buffer.cpp3
-rw-r--r--test/camera-sensor.cpp10
-rw-r--r--test/camera/buffer_import.cpp6
-rw-r--r--test/controls/control_info_map.cpp2
-rw-r--r--test/controls/control_list.cpp2
-rw-r--r--test/event-dispatcher.cpp3
-rw-r--r--test/event-thread.cpp3
-rw-r--r--test/event.cpp3
-rw-r--r--test/file-descriptor.cpp3
-rw-r--r--test/file.cpp3
-rw-r--r--test/ipa/ipa_interface_test.cpp11
-rw-r--r--test/ipa/ipa_module_test.cpp2
-rw-r--r--test/ipa/ipa_wrappers_test.cpp10
-rw-r--r--test/ipc/unixsocket.cpp7
-rw-r--r--test/libtest/buffer_source.cpp2
-rw-r--r--test/libtest/buffer_source.h4
-rw-r--r--test/libtest/meson.build1
-rw-r--r--test/log/log_api.cpp3
-rw-r--r--test/log/log_process.cpp9
-rw-r--r--test/media_device/media_device_print_test.cpp2
-rw-r--r--test/media_device/media_device_test.h4
-rw-r--r--test/message.cpp5
-rw-r--r--test/object-invoke.cpp3
-rw-r--r--test/object.cpp4
-rw-r--r--test/pipeline/ipu3/ipu3_pipeline_test.cpp7
-rw-r--r--test/pipeline/rkisp1/rkisp1_pipeline_test.cpp7
-rw-r--r--test/process/process_test.cpp7
-rw-r--r--test/serialization/control_serialization.cpp5
-rw-r--r--test/signal-threads.cpp7
-rw-r--r--test/threads.cpp3
-rw-r--r--test/timer-thread.cpp3
-rw-r--r--test/timer.cpp3
-rw-r--r--test/utils.cpp3
-rw-r--r--test/v4l2_subdevice/list_formats.cpp3
-rw-r--r--test/v4l2_subdevice/test_formats.cpp3
-rw-r--r--test/v4l2_subdevice/v4l2_subdevice_test.cpp7
-rw-r--r--test/v4l2_subdevice/v4l2_subdevice_test.h7
-rw-r--r--test/v4l2_videodevice/buffer_sharing.cpp3
-rw-r--r--test/v4l2_videodevice/capture_async.cpp3
-rw-r--r--test/v4l2_videodevice/controls.cpp2
-rw-r--r--test/v4l2_videodevice/formats.cpp4
-rw-r--r--test/v4l2_videodevice/v4l2_m2mdevice.cpp8
-rw-r--r--test/v4l2_videodevice/v4l2_videodevice_test.cpp6
-rw-r--r--test/v4l2_videodevice/v4l2_videodevice_test.h12
44 files changed, 117 insertions, 91 deletions
diff --git a/test/byte-stream-buffer.cpp b/test/byte-stream-buffer.cpp
index bc1d462e..d606f146 100644
--- a/test/byte-stream-buffer.cpp
+++ b/test/byte-stream-buffer.cpp
@@ -8,7 +8,8 @@
#include <array>
#include <iostream>
-#include "byte_stream_buffer.h"
+#include "libcamera/internal/byte_stream_buffer.h"
+
#include "test.h"
using namespace std;
diff --git a/test/camera-sensor.cpp b/test/camera-sensor.cpp
index 6069d668..8c7fd1d2 100644
--- a/test/camera-sensor.cpp
+++ b/test/camera-sensor.cpp
@@ -10,11 +10,11 @@
#include <linux/media-bus-format.h>
-#include "camera_sensor.h"
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "utils.h"
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/utils.h"
+#include "libcamera/internal/v4l2_subdevice.h"
#include "test.h"
diff --git a/test/camera/buffer_import.cpp b/test/camera/buffer_import.cpp
index 3f392cdc..ad680a83 100644
--- a/test/camera/buffer_import.cpp
+++ b/test/camera/buffer_import.cpp
@@ -12,9 +12,9 @@
#include <numeric>
#include <vector>
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_videodevice.h"
#include "buffer_source.h"
#include "camera_test.h"
diff --git a/test/controls/control_info_map.cpp b/test/controls/control_info_map.cpp
index eeb702db..e4305f13 100644
--- a/test/controls/control_info_map.cpp
+++ b/test/controls/control_info_map.cpp
@@ -12,7 +12,7 @@
#include <libcamera/control_ids.h>
#include <libcamera/controls.h>
-#include "camera_controls.h"
+#include "libcamera/internal/camera_controls.h"
#include "camera_test.h"
#include "test.h"
diff --git a/test/controls/control_list.cpp b/test/controls/control_list.cpp
index d51ec47d..5c8485b5 100644
--- a/test/controls/control_list.cpp
+++ b/test/controls/control_list.cpp
@@ -12,7 +12,7 @@
#include <libcamera/control_ids.h>
#include <libcamera/controls.h>
-#include "camera_controls.h"
+#include "libcamera/internal/camera_controls.h"
#include "camera_test.h"
#include "test.h"
diff --git a/test/event-dispatcher.cpp b/test/event-dispatcher.cpp
index 9f9cf178..1b617786 100644
--- a/test/event-dispatcher.cpp
+++ b/test/event-dispatcher.cpp
@@ -13,8 +13,9 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/event-thread.cpp b/test/event-thread.cpp
index 01120733..c90e6ac0 100644
--- a/test/event-thread.cpp
+++ b/test/event-thread.cpp
@@ -13,8 +13,9 @@
#include <libcamera/event_notifier.h>
#include <libcamera/timer.h>
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/event.cpp b/test/event.cpp
index 816060cc..c865092c 100644
--- a/test/event.cpp
+++ b/test/event.cpp
@@ -13,8 +13,9 @@
#include <libcamera/event_notifier.h>
#include <libcamera/timer.h>
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/file-descriptor.cpp b/test/file-descriptor.cpp
index e467f3a7..7477a843 100644
--- a/test/file-descriptor.cpp
+++ b/test/file-descriptor.cpp
@@ -13,8 +13,9 @@
#include <libcamera/file_descriptor.h>
+#include "libcamera/internal/utils.h"
+
#include "test.h"
-#include "utils.h"
using namespace libcamera;
using namespace std;
diff --git a/test/file.cpp b/test/file.cpp
index 65583998..6262a6f0 100644
--- a/test/file.cpp
+++ b/test/file.cpp
@@ -13,7 +13,8 @@
#include <sys/types.h>
#include <unistd.h>
-#include "file.h"
+#include "libcamera/internal/file.h"
+
#include "test.h"
using namespace std;
diff --git a/test/ipa/ipa_interface_test.cpp b/test/ipa/ipa_interface_test.cpp
index 7fa88efe..c394377d 100644
--- a/test/ipa/ipa_interface_test.cpp
+++ b/test/ipa/ipa_interface_test.cpp
@@ -18,12 +18,13 @@
#include <ipa/ipa_vimc.h>
-#include "device_enumerator.h"
-#include "ipa_manager.h"
-#include "ipa_module.h"
-#include "pipeline_handler.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/ipa_manager.h"
+#include "libcamera/internal/ipa_module.h"
+#include "libcamera/internal/pipeline_handler.h"
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/ipa/ipa_module_test.cpp b/test/ipa/ipa_module_test.cpp
index e3aee190..bd5e0e4c 100644
--- a/test/ipa/ipa_module_test.cpp
+++ b/test/ipa/ipa_module_test.cpp
@@ -8,7 +8,7 @@
#include <iostream>
#include <string.h>
-#include "ipa_module.h"
+#include "libcamera/internal/ipa_module.h"
#include "test.h"
diff --git a/test/ipa/ipa_wrappers_test.cpp b/test/ipa/ipa_wrappers_test.cpp
index 4de13212..aa7a9dcc 100644
--- a/test/ipa/ipa_wrappers_test.cpp
+++ b/test/ipa/ipa_wrappers_test.cpp
@@ -15,11 +15,11 @@
#include <libcamera/controls.h>
#include <libipa/ipa_interface_wrapper.h>
-#include "camera_sensor.h"
-#include "device_enumerator.h"
-#include "ipa_context_wrapper.h"
-#include "media_device.h"
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/ipa_context_wrapper.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_subdevice.h"
#include "test.h"
diff --git a/test/ipc/unixsocket.cpp b/test/ipc/unixsocket.cpp
index f53042b8..4487d27b 100644
--- a/test/ipc/unixsocket.cpp
+++ b/test/ipc/unixsocket.cpp
@@ -18,10 +18,11 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
-#include "ipc_unixsocket.h"
+#include "libcamera/internal/ipc_unixsocket.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
+
#include "test.h"
-#include "thread.h"
-#include "utils.h"
#define CMD_CLOSE 0
#define CMD_REVERSE 1
diff --git a/test/libtest/buffer_source.cpp b/test/libtest/buffer_source.cpp
index d1dad2a0..ee87c8cd 100644
--- a/test/libtest/buffer_source.cpp
+++ b/test/libtest/buffer_source.cpp
@@ -10,7 +10,7 @@
#include <iostream>
#include <memory>
-#include "device_enumerator.h"
+#include "libcamera/internal/device_enumerator.h"
#include "test.h"
diff --git a/test/libtest/buffer_source.h b/test/libtest/buffer_source.h
index ae0879c9..95a82a82 100644
--- a/test/libtest/buffer_source.h
+++ b/test/libtest/buffer_source.h
@@ -9,8 +9,8 @@
#include <libcamera/libcamera.h>
-#include "media_device.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_videodevice.h"
using namespace libcamera;
diff --git a/test/libtest/meson.build b/test/libtest/meson.build
index 481f6d6b..542335ea 100644
--- a/test/libtest/meson.build
+++ b/test/libtest/meson.build
@@ -15,7 +15,6 @@ test_includes_public = [
test_includes_internal = [
test_includes_public,
- libcamera_internal_includes,
]
libtest = static_library('libtest', libtest_sources,
diff --git a/test/log/log_api.cpp b/test/log/log_api.cpp
index 33622f84..6f3248a7 100644
--- a/test/log/log_api.cpp
+++ b/test/log/log_api.cpp
@@ -18,7 +18,8 @@
#include <libcamera/logging.h>
-#include "log.h"
+#include "libcamera/internal/log.h"
+
#include "test.h"
using namespace std;
diff --git a/test/log/log_process.cpp b/test/log/log_process.cpp
index 2df4aa43..8463d0ed 100644
--- a/test/log/log_process.cpp
+++ b/test/log/log_process.cpp
@@ -18,11 +18,12 @@
#include <libcamera/logging.h>
#include <libcamera/timer.h>
-#include "log.h"
-#include "process.h"
+#include "libcamera/internal/log.h"
+#include "libcamera/internal/process.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
+
#include "test.h"
-#include "thread.h"
-#include "utils.h"
using namespace std;
using namespace libcamera;
diff --git a/test/media_device/media_device_print_test.cpp b/test/media_device/media_device_print_test.cpp
index 5018906c..1f5e3f3e 100644
--- a/test/media_device/media_device_print_test.cpp
+++ b/test/media_device/media_device_print_test.cpp
@@ -10,7 +10,7 @@
#include <sys/stat.h>
#include <unistd.h>
-#include "media_device.h"
+#include "libcamera/internal/media_device.h"
#include "test.h"
diff --git a/test/media_device/media_device_test.h b/test/media_device/media_device_test.h
index cdbd1484..0c8bf9f2 100644
--- a/test/media_device/media_device_test.h
+++ b/test/media_device/media_device_test.h
@@ -9,8 +9,8 @@
#include <memory>
-#include "device_enumerator.h"
-#include "media_device.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
#include "test.h"
diff --git a/test/message.cpp b/test/message.cpp
index 478bc79d..9553ba8c 100644
--- a/test/message.cpp
+++ b/test/message.cpp
@@ -9,8 +9,9 @@
#include <iostream>
#include <thread>
-#include "message.h"
-#include "thread.h"
+#include "libcamera/internal/message.h"
+#include "libcamera/internal/thread.h"
+
#include "test.h"
using namespace std;
diff --git a/test/object-invoke.cpp b/test/object-invoke.cpp
index fa162c83..1ae11bb1 100644
--- a/test/object-invoke.cpp
+++ b/test/object-invoke.cpp
@@ -11,8 +11,9 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/object.h>
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/object.cpp b/test/object.cpp
index 16118971..264659b4 100644
--- a/test/object.cpp
+++ b/test/object.cpp
@@ -9,8 +9,8 @@
#include <libcamera/object.h>
-#include "message.h"
-#include "thread.h"
+#include "libcamera/internal/message.h"
+#include "libcamera/internal/thread.h"
#include "test.h"
diff --git a/test/pipeline/ipu3/ipu3_pipeline_test.cpp b/test/pipeline/ipu3/ipu3_pipeline_test.cpp
index a5c6be09..34998f8f 100644
--- a/test/pipeline/ipu3/ipu3_pipeline_test.cpp
+++ b/test/pipeline/ipu3/ipu3_pipeline_test.cpp
@@ -13,9 +13,10 @@
#include <libcamera/camera.h>
#include <libcamera/camera_manager.h>
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "media_object.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/media_object.h"
+
#include "test.h"
using namespace std;
diff --git a/test/pipeline/rkisp1/rkisp1_pipeline_test.cpp b/test/pipeline/rkisp1/rkisp1_pipeline_test.cpp
index d46c928f..b6678ce7 100644
--- a/test/pipeline/rkisp1/rkisp1_pipeline_test.cpp
+++ b/test/pipeline/rkisp1/rkisp1_pipeline_test.cpp
@@ -16,9 +16,10 @@
#include <libcamera/camera.h>
#include <libcamera/camera_manager.h>
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "media_object.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/media_object.h"
+
#include "test.h"
using namespace std;
diff --git a/test/process/process_test.cpp b/test/process/process_test.cpp
index 7e7b3c2c..ce0cc7c9 100644
--- a/test/process/process_test.cpp
+++ b/test/process/process_test.cpp
@@ -12,10 +12,11 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
-#include "process.h"
+#include "libcamera/internal/process.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
+
#include "test.h"
-#include "thread.h"
-#include "utils.h"
using namespace std;
using namespace libcamera;
diff --git a/test/serialization/control_serialization.cpp b/test/serialization/control_serialization.cpp
index 11136524..e23383d1 100644
--- a/test/serialization/control_serialization.cpp
+++ b/test/serialization/control_serialization.cpp
@@ -11,8 +11,9 @@
#include <libcamera/control_ids.h>
#include <libcamera/controls.h>
-#include "byte_stream_buffer.h"
-#include "control_serializer.h"
+#include "libcamera/internal/byte_stream_buffer.h"
+#include "libcamera/internal/control_serializer.h"
+
#include "serialization_test.h"
#include "test.h"
diff --git a/test/signal-threads.cpp b/test/signal-threads.cpp
index f77733eb..3c5f3792 100644
--- a/test/signal-threads.cpp
+++ b/test/signal-threads.cpp
@@ -9,10 +9,11 @@
#include <iostream>
#include <thread>
-#include "message.h"
-#include "thread.h"
+#include "libcamera/internal/message.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/utils.h"
+
#include "test.h"
-#include "utils.h"
using namespace std;
using namespace libcamera;
diff --git a/test/threads.cpp b/test/threads.cpp
index 0454761d..b4b8d913 100644
--- a/test/threads.cpp
+++ b/test/threads.cpp
@@ -9,7 +9,8 @@
#include <iostream>
#include <thread>
-#include "thread.h"
+#include "libcamera/internal/thread.h"
+
#include "test.h"
using namespace std;
diff --git a/test/timer-thread.cpp b/test/timer-thread.cpp
index 32853b4e..2f901787 100644
--- a/test/timer-thread.cpp
+++ b/test/timer-thread.cpp
@@ -11,8 +11,9 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/timer.cpp b/test/timer.cpp
index 2bdb006e..7d5b93c3 100644
--- a/test/timer.cpp
+++ b/test/timer.cpp
@@ -11,8 +11,9 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
+#include "libcamera/internal/thread.h"
+
#include "test.h"
-#include "thread.h"
using namespace std;
using namespace libcamera;
diff --git a/test/utils.cpp b/test/utils.cpp
index 55ce9365..66b91f12 100644
--- a/test/utils.cpp
+++ b/test/utils.cpp
@@ -12,8 +12,9 @@
#include <libcamera/geometry.h>
+#include "libcamera/internal/utils.h"
+
#include "test.h"
-#include "utils.h"
using namespace std;
using namespace libcamera;
diff --git a/test/v4l2_subdevice/list_formats.cpp b/test/v4l2_subdevice/list_formats.cpp
index 067dc5ed..25503c33 100644
--- a/test/v4l2_subdevice/list_formats.cpp
+++ b/test/v4l2_subdevice/list_formats.cpp
@@ -11,7 +11,8 @@
#include <libcamera/geometry.h>
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+
#include "v4l2_subdevice_test.h"
using namespace std;
diff --git a/test/v4l2_subdevice/test_formats.cpp b/test/v4l2_subdevice/test_formats.cpp
index 5cf5d566..9635c994 100644
--- a/test/v4l2_subdevice/test_formats.cpp
+++ b/test/v4l2_subdevice/test_formats.cpp
@@ -8,7 +8,8 @@
#include <iostream>
#include <limits.h>
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+
#include "v4l2_subdevice_test.h"
using namespace std;
diff --git a/test/v4l2_subdevice/v4l2_subdevice_test.cpp b/test/v4l2_subdevice/v4l2_subdevice_test.cpp
index 562a638c..d8fbfd9f 100644
--- a/test/v4l2_subdevice/v4l2_subdevice_test.cpp
+++ b/test/v4l2_subdevice/v4l2_subdevice_test.cpp
@@ -9,9 +9,10 @@
#include <string.h>
#include <sys/stat.h>
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "v4l2_subdevice.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+
#include "v4l2_subdevice_test.h"
using namespace std;
diff --git a/test/v4l2_subdevice/v4l2_subdevice_test.h b/test/v4l2_subdevice/v4l2_subdevice_test.h
index 3bce6691..00c6399d 100644
--- a/test/v4l2_subdevice/v4l2_subdevice_test.h
+++ b/test/v4l2_subdevice/v4l2_subdevice_test.h
@@ -10,10 +10,11 @@
#include <libcamera/buffer.h>
-#include "device_enumerator.h"
-#include "media_device.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+
#include "test.h"
-#include "v4l2_subdevice.h"
using namespace libcamera;
diff --git a/test/v4l2_videodevice/buffer_sharing.cpp b/test/v4l2_videodevice/buffer_sharing.cpp
index 14d3055a..ba2cc40d 100644
--- a/test/v4l2_videodevice/buffer_sharing.cpp
+++ b/test/v4l2_videodevice/buffer_sharing.cpp
@@ -16,7 +16,8 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
-#include "thread.h"
+#include "libcamera/internal/thread.h"
+
#include "v4l2_videodevice_test.h"
class BufferSharingTest : public V4L2VideoDeviceTest
diff --git a/test/v4l2_videodevice/capture_async.cpp b/test/v4l2_videodevice/capture_async.cpp
index b38aabc6..13cbcc80 100644
--- a/test/v4l2_videodevice/capture_async.cpp
+++ b/test/v4l2_videodevice/capture_async.cpp
@@ -11,7 +11,8 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
-#include "thread.h"
+#include "libcamera/internal/thread.h"
+
#include "v4l2_videodevice_test.h"
class CaptureAsyncTest : public V4L2VideoDeviceTest
diff --git a/test/v4l2_videodevice/controls.cpp b/test/v4l2_videodevice/controls.cpp
index 347af211..9f09d036 100644
--- a/test/v4l2_videodevice/controls.cpp
+++ b/test/v4l2_videodevice/controls.cpp
@@ -10,7 +10,7 @@
#include <iostream>
#include <limits.h>
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/v4l2_videodevice.h"
#include "v4l2_videodevice_test.h"
diff --git a/test/v4l2_videodevice/formats.cpp b/test/v4l2_videodevice/formats.cpp
index a7421421..043732dc 100644
--- a/test/v4l2_videodevice/formats.cpp
+++ b/test/v4l2_videodevice/formats.cpp
@@ -8,8 +8,8 @@
#include <iostream>
#include <limits.h>
-#include "utils.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/utils.h"
+#include "libcamera/internal/v4l2_videodevice.h"
#include "v4l2_videodevice_test.h"
diff --git a/test/v4l2_videodevice/v4l2_m2mdevice.cpp b/test/v4l2_videodevice/v4l2_m2mdevice.cpp
index d20e5dfc..44a39d4d 100644
--- a/test/v4l2_videodevice/v4l2_m2mdevice.cpp
+++ b/test/v4l2_videodevice/v4l2_m2mdevice.cpp
@@ -11,10 +11,10 @@
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "thread.h"
-#include "v4l2_videodevice.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/thread.h"
+#include "libcamera/internal/v4l2_videodevice.h"
#include "test.h"
diff --git a/test/v4l2_videodevice/v4l2_videodevice_test.cpp b/test/v4l2_videodevice/v4l2_videodevice_test.cpp
index 93b9e72d..f23aaf8f 100644
--- a/test/v4l2_videodevice/v4l2_videodevice_test.cpp
+++ b/test/v4l2_videodevice/v4l2_videodevice_test.cpp
@@ -9,10 +9,10 @@
#include <linux/media-bus-format.h>
-#include "v4l2_videodevice_test.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
-#include "device_enumerator.h"
-#include "media_device.h"
+#include "v4l2_videodevice_test.h"
using namespace std;
using namespace libcamera;
diff --git a/test/v4l2_videodevice/v4l2_videodevice_test.h b/test/v4l2_videodevice/v4l2_videodevice_test.h
index 9acaceb8..21054561 100644
--- a/test/v4l2_videodevice/v4l2_videodevice_test.h
+++ b/test/v4l2_videodevice/v4l2_videodevice_test.h
@@ -11,13 +11,13 @@
#include <libcamera/buffer.h>
-#include "test.h"
+#include "libcamera/internal/camera_sensor.h"
+#include "libcamera/internal/device_enumerator.h"
+#include "libcamera/internal/media_device.h"
+#include "libcamera/internal/v4l2_subdevice.h"
+#include "libcamera/internal/v4l2_videodevice.h"
-#include "camera_sensor.h"
-#include "device_enumerator.h"
-#include "media_device.h"
-#include "v4l2_subdevice.h"
-#include "v4l2_videodevice.h"
+#include "test.h"
using namespace libcamera;