summaryrefslogtreecommitdiff
path: root/test/v4l2_device/v4l2_device_test.h
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-05-08 17:37:04 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-05-17 20:39:03 +0200
commit4f8ba02bbcf7c0e4f5c99f9ce6b788938f5987ea (patch)
treec4cee149260c42c388749013d11df535b0f6d0c1 /test/v4l2_device/v4l2_device_test.h
parente1e440aad6f7bff42a6cee106e5bc269af31c2c0 (diff)
test: v4l2_device: Allow each test to specify which device and entity to test
Prepare for different tests which implements V4L2DeviceTest to specify which media device and entity they wish to test. There is no functional changes, all tests still use vivid to perform there tests. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/v4l2_device/v4l2_device_test.h')
-rw-r--r--test/v4l2_device/v4l2_device_test.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/v4l2_device/v4l2_device_test.h b/test/v4l2_device/v4l2_device_test.h
index c476d3c0..651c005f 100644
--- a/test/v4l2_device/v4l2_device_test.h
+++ b/test/v4l2_device/v4l2_device_test.h
@@ -22,8 +22,8 @@ using namespace libcamera;
class V4L2DeviceTest : public Test
{
public:
- V4L2DeviceTest()
- : capture_(nullptr)
+ V4L2DeviceTest(const char *driver, const char *entity)
+ : driver_(driver), entity_(entity), capture_(nullptr)
{
}
@@ -31,6 +31,8 @@ protected:
int init();
void cleanup();
+ std::string driver_;
+ std::string entity_;
std::unique_ptr<DeviceEnumerator> enumerator_;
std::shared_ptr<MediaDevice> media_;
V4L2Device *capture_;