[RFC PATCH v2 06/16] apps: lc-compliance: Put tests into anonymous namespace
Barnabás Pőcze
pobrn at protonmail.com
Tue Jan 14 19:22:17 CET 2025
There is no reason for these symbols to be global.
Signed-off-by: Barnabás Pőcze <pobrn at protonmail.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi at ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder at ideasonboard.com>
---
src/apps/lc-compliance/tests/capture_test.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/apps/lc-compliance/tests/capture_test.cpp b/src/apps/lc-compliance/tests/capture_test.cpp
index ad3a1da2f..db196a949 100644
--- a/src/apps/lc-compliance/tests/capture_test.cpp
+++ b/src/apps/lc-compliance/tests/capture_test.cpp
@@ -14,6 +14,8 @@
#include "environment.h"
+namespace {
+
using namespace libcamera;
const std::vector<int> NUMREQUESTS = { 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 };
@@ -134,3 +136,5 @@ INSTANTIATE_TEST_SUITE_P(CaptureTests,
testing::Combine(testing::ValuesIn(ROLES),
testing::ValuesIn(NUMREQUESTS)),
SingleStream::nameParameters);
+
+} /* namespace */
--
2.48.0
More information about the libcamera-devel
mailing list