summaryrefslogtreecommitdiff
path: root/test/libtest
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-08-23 21:56:37 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-09-21 13:50:42 +0300
commitbeed258a5a3f6a690c6774d37815527fe60375eb (patch)
treebccdc90f22b38f661c26a717ba38226159bf3b17 /test/libtest
parent2fa4ba01ffa2984e85ca77fce1430b6ae86ae84f (diff)
test: Include specific headers instead of libcamera.h
Let's only pull required headers, to avoid slowing compilation down. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/libtest')
-rw-r--r--test/libtest/buffer_source.h2
-rw-r--r--test/libtest/camera_test.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/test/libtest/buffer_source.h b/test/libtest/buffer_source.h
index 95a82a82..14b4770e 100644
--- a/test/libtest/buffer_source.h
+++ b/test/libtest/buffer_source.h
@@ -7,7 +7,7 @@
#ifndef __LIBCAMERA_BUFFER_SOURCE_TEST_H__
#define __LIBCAMERA_BUFFER_SOURCE_TEST_H__
-#include <libcamera/libcamera.h>
+#include <libcamera/stream.h>
#include "libcamera/internal/media_device.h"
#include "libcamera/internal/v4l2_videodevice.h"
diff --git a/test/libtest/camera_test.h b/test/libtest/camera_test.h
index 0b6bad05..7939798f 100644
--- a/test/libtest/camera_test.h
+++ b/test/libtest/camera_test.h
@@ -7,7 +7,10 @@
#ifndef __LIBCAMERA_CAMERA_TEST_H__
#define __LIBCAMERA_CAMERA_TEST_H__
-#include <libcamera/libcamera.h>
+#include <memory>
+
+#include <libcamera/camera.h>
+#include <libcamera/camera_manager.h>
using namespace libcamera;