From patchwork Sun Sep 20 13:44:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 9673 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 830F6BF01C for ; Sun, 20 Sep 2020 13:44:46 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 50B6C62FAC; Sun, 20 Sep 2020 15:44:46 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="rQM3hvhF"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 72B2D62E65 for ; Sun, 20 Sep 2020 15:44:44 +0200 (CEST) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0D2434FB for ; Sun, 20 Sep 2020 15:44:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1600609484; bh=pCPyHQNWB6YvkJDv6guRyOz+KJOQTJ+rjCckvj6QQuE=; h=From:To:Subject:Date:From; b=rQM3hvhFI5+rcvVgMiDW0VpZoCfakZBjYFelUy7wocWev24W//7QFqzBPCjtVEouA 2R9eS3+xYfobrj4VuZ1Qr5c4ukiN3hgCEEe7wCHCiPd4M0HRKNZrAGiOLhUKCtwA66 QHqlsgNb2taTmF/Dq++eolBiO9fZdqOwKtODFPNw= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Sun, 20 Sep 2020 16:44:09 +0300 Message-Id: <20200920134409.24688-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] test: Include specific headers instead of libcamera.h X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Let's only pull required headers, to avoid slowing compilation down. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Reviewed-by: Niklas Söderlund --- test/camera/buffer_import.cpp | 3 +++ test/camera/capture.cpp | 4 ++++ test/camera/statemachine.cpp | 2 ++ test/libtest/buffer_source.h | 2 +- test/libtest/camera_test.h | 5 ++++- test/mapped-buffer.cpp | 2 ++ 6 files changed, 16 insertions(+), 2 deletions(-) diff --git a/test/camera/buffer_import.cpp b/test/camera/buffer_import.cpp index d57ffa75edeb..64e96264c90b 100644 --- a/test/camera/buffer_import.cpp +++ b/test/camera/buffer_import.cpp @@ -12,6 +12,9 @@ #include #include +#include +#include + #include "libcamera/internal/device_enumerator.h" #include "libcamera/internal/media_device.h" #include "libcamera/internal/v4l2_videodevice.h" diff --git a/test/camera/capture.cpp b/test/camera/capture.cpp index eb67bf2da71f..51bbd25809ee 100644 --- a/test/camera/capture.cpp +++ b/test/camera/capture.cpp @@ -7,6 +7,10 @@ #include +#include +#include +#include + #include "camera_test.h" #include "test.h" diff --git a/test/camera/statemachine.cpp b/test/camera/statemachine.cpp index 0bda6fe4b0b2..28faeb913f2e 100644 --- a/test/camera/statemachine.cpp +++ b/test/camera/statemachine.cpp @@ -7,6 +7,8 @@ #include +#include + #include "camera_test.h" #include "test.h" diff --git a/test/libtest/buffer_source.h b/test/libtest/buffer_source.h index 95a82a8229fa..14b4770e8d8a 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 +#include #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 0b6bad05e37c..7939798f886e 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 +#include + +#include +#include using namespace libcamera; diff --git a/test/mapped-buffer.cpp b/test/mapped-buffer.cpp index 39d624cde6d5..027923375ed9 100644 --- a/test/mapped-buffer.cpp +++ b/test/mapped-buffer.cpp @@ -7,6 +7,8 @@ #include +#include + #include "libcamera/internal/buffer.h" #include "camera_test.h"