test: v4l2_videodevice: Switch to FrameBuffer interface
The V4L2VideoDevice class can now operate using a FrameBuffer interface, switch all test cases to use it. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
cadae67e45
commit
f0d928b56e
6 changed files with 48 additions and 65 deletions
|
@ -16,17 +16,10 @@ public:
|
|||
protected:
|
||||
int run()
|
||||
{
|
||||
/*
|
||||
* TODO:
|
||||
* Test invalid requests
|
||||
* Test different buffer allocations
|
||||
*/
|
||||
const unsigned int bufferCount = 8;
|
||||
|
||||
pool_.createBuffers(bufferCount);
|
||||
|
||||
int ret = capture_->exportBuffers(&pool_);
|
||||
if (ret)
|
||||
int ret = capture_->exportBuffers(bufferCount, &buffers_);
|
||||
if (ret != bufferCount)
|
||||
return TestFail;
|
||||
|
||||
return TestPass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue