summaryrefslogtreecommitdiff
path: root/src/lc-compliance/environment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lc-compliance/environment.cpp')
-rw-r--r--src/lc-compliance/environment.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lc-compliance/environment.cpp b/src/lc-compliance/environment.cpp
new file mode 100644
index 00000000..9e24b5e3
--- /dev/null
+++ b/src/lc-compliance/environment.cpp
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Copyright (C) 2021, Collabora Ltd.
+ *
+ * environment.cpp - Common environment for tests
+ */
+
+#include "environment.h"
+
+Environment *Environment::get()
+{
+ static Environment instance;
+ return &instance;
+}
+
+void Environment::setup(CameraManager *cm, std::string cameraId)
+{
+ cm_ = cm;
+ cameraId_ = cameraId;
+}