summaryrefslogtreecommitdiff
path: root/test/libtest/camera_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/libtest/camera_test.h')
-rw-r--r--test/libtest/camera_test.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/libtest/camera_test.h b/test/libtest/camera_test.h
index 0b6bad05..713b503f 100644
--- a/test/libtest/camera_test.h
+++ b/test/libtest/camera_test.h
@@ -2,25 +2,24 @@
/*
* Copyright (C) 2019, Google Inc.
*
- * camera_test.h - libcamera camera test base class
+ * libcamera camera test base class
*/
-#ifndef __LIBCAMERA_CAMERA_TEST_H__
-#define __LIBCAMERA_CAMERA_TEST_H__
-#include <libcamera/libcamera.h>
+#pragma once
-using namespace libcamera;
+#include <memory>
+
+#include <libcamera/camera.h>
+#include <libcamera/camera_manager.h>
class CameraTest
{
public:
- CameraTest(const char *name);
+ CameraTest(const char *name, bool isolate = false);
~CameraTest();
protected:
- CameraManager *cm_;
- std::shared_ptr<Camera> camera_;
+ libcamera::CameraManager *cm_;
+ std::shared_ptr<libcamera::Camera> camera_;
int status_;
};
-
-#endif /* __LIBCAMERA_CAMERA_TEST_H__ */