summaryrefslogtreecommitdiff
path: root/test/libtest
diff options
context:
space:
mode:
Diffstat (limited to 'test/libtest')
-rw-r--r--test/libtest/buffer_source.h6
-rw-r--r--test/libtest/camera_test.h6
-rw-r--r--test/libtest/test.h6
3 files changed, 6 insertions, 12 deletions
diff --git a/test/libtest/buffer_source.h b/test/libtest/buffer_source.h
index 84e2fa8f..0cc71aa5 100644
--- a/test/libtest/buffer_source.h
+++ b/test/libtest/buffer_source.h
@@ -4,8 +4,8 @@
*
* buffer_source.h - libcamera camera test helper to create FrameBuffers
*/
-#ifndef __LIBCAMERA_BUFFER_SOURCE_TEST_H__
-#define __LIBCAMERA_BUFFER_SOURCE_TEST_H__
+
+#pragma once
#include <libcamera/stream.h>
@@ -25,5 +25,3 @@ private:
std::shared_ptr<libcamera::MediaDevice> media_;
std::vector<std::unique_ptr<libcamera::FrameBuffer>> buffers_;
};
-
-#endif /* __LIBCAMERA_BUFFER_SOURCE_TEST_H__ */
diff --git a/test/libtest/camera_test.h b/test/libtest/camera_test.h
index 23122245..0b178bc2 100644
--- a/test/libtest/camera_test.h
+++ b/test/libtest/camera_test.h
@@ -4,8 +4,8 @@
*
* camera_test.h - libcamera camera test base class
*/
-#ifndef __LIBCAMERA_CAMERA_TEST_H__
-#define __LIBCAMERA_CAMERA_TEST_H__
+
+#pragma once
#include <memory>
@@ -23,5 +23,3 @@ protected:
std::shared_ptr<libcamera::Camera> camera_;
int status_;
};
-
-#endif /* __LIBCAMERA_CAMERA_TEST_H__ */
diff --git a/test/libtest/test.h b/test/libtest/test.h
index 8ecf2bda..ee01a225 100644
--- a/test/libtest/test.h
+++ b/test/libtest/test.h
@@ -4,8 +4,8 @@
*
* test.h - libcamera test base class
*/
-#ifndef __TEST_TEST_H__
-#define __TEST_TEST_H__
+
+#pragma once
#include <sstream>
@@ -34,5 +34,3 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char *argv[]) \
{ \
return klass().execute(); \
}
-
-#endif /* __TEST_TEST_H__ */