summaryrefslogtreecommitdiff
path: root/test/mapped-buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/mapped-buffer.cpp')
-rw-r--r--test/mapped-buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mapped-buffer.cpp b/test/mapped-buffer.cpp
index c9479194..a3d1511b 100644
--- a/test/mapped-buffer.cpp
+++ b/test/mapped-buffer.cpp
@@ -9,7 +9,7 @@
#include <libcamera/framebuffer_allocator.h>
-#include "libcamera/internal/framebuffer.h"
+#include "libcamera/internal/mapped_framebuffer.h"
#include "camera_test.h"
#include "test.h"
(C) 2019, Google Inc. * * threads.cpp - Threads test */ #include <chrono> #include <iostream> #include <thread> #include "libcamera/internal/thread.h" #include "test.h" using namespace std; using namespace libcamera; class DelayThread : public Thread { public: DelayThread(chrono::steady_clock::duration duration) : duration_(duration) { } protected: void run() { this_thread::sleep_for(duration_); } private: chrono::steady_clock::duration duration_; }; class ThreadTest : public Test { protected: int init() { return 0; } int run() { /* Test Thread() retrieval for the main thread. */ Thread *thread = Thread::current(); if (!thread) { cout << "Thread::current() failed to main thread" << endl; return TestFail; } if (!thread->isRunning()) { cout << "Main thread is not running" << endl; return TestFail; } /* Test starting the main thread, the test shall not crash. */ thread->start(); /* Test the running state of a custom thread. */ thread = new Thread(); thread->start(); if (!thread->isRunning()) { cout << "Thread is not running after being started" << endl; return TestFail; } thread->exit(0); thread->wait();