summaryrefslogtreecommitdiff
path: root/test/v4l2_videodevice/buffer_sharing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/v4l2_videodevice/buffer_sharing.cpp')
-rw-r--r--test/v4l2_videodevice/buffer_sharing.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/v4l2_videodevice/buffer_sharing.cpp b/test/v4l2_videodevice/buffer_sharing.cpp
index 14d3055a..fa856ab6 100644
--- a/test/v4l2_videodevice/buffer_sharing.cpp
+++ b/test/v4l2_videodevice/buffer_sharing.cpp
@@ -12,13 +12,17 @@
#include <iostream>
-#include <libcamera/buffer.h>
-#include <libcamera/event_dispatcher.h>
-#include <libcamera/timer.h>
+#include <libcamera/framebuffer.h>
+
+#include <libcamera/base/event_dispatcher.h>
+#include <libcamera/base/thread.h>
+#include <libcamera/base/timer.h>
-#include "thread.h"
#include "v4l2_videodevice_test.h"
+using namespace libcamera;
+using namespace std::chrono_literals;
+
class BufferSharingTest : public V4L2VideoDeviceTest
{
public:
@@ -142,7 +146,7 @@ protected:
return TestFail;
}
- timeout.start(10000);
+ timeout.start(10000ms);
while (timeout.isRunning()) {
dispatcher->processEvents();
if (framesCaptured_ > 30 && framesOutput_ > 30)
@@ -199,4 +203,4 @@ private:
unsigned int framesOutput_;
};
-TEST_REGISTER(BufferSharingTest);
+TEST_REGISTER(BufferSharingTest)