clang-tidy: Improve const-correctness

Updated member functions to better reflect const-correctness,
enhancing code clarity and maintainability.

Change-Id: Ib3fdbd2164cb76ad7f0c454d37dd5c08652f78fc
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/tests/src/mocks/report_factory_mock.hpp b/tests/src/mocks/report_factory_mock.hpp
index 71709df..24ac28c 100644
--- a/tests/src/mocks/report_factory_mock.hpp
+++ b/tests/src/mocks/report_factory_mock.hpp
@@ -69,7 +69,7 @@
     auto& expectMake(
         std::optional<std::reference_wrapper<const ReportParams>> paramsRef,
         const testing::Matcher<interfaces::ReportManager&>& rm,
-        const testing::Matcher<interfaces::JsonStorage&>& js)
+        const testing::Matcher<interfaces::JsonStorage&>& js) const
     {
         using testing::_;
         if (paramsRef)
diff --git a/tests/src/mocks/trigger_factory_mock.hpp b/tests/src/mocks/trigger_factory_mock.hpp
index d3d83e5..a42747c 100644
--- a/tests/src/mocks/trigger_factory_mock.hpp
+++ b/tests/src/mocks/trigger_factory_mock.hpp
@@ -57,7 +57,7 @@
     auto& expectMake(
         std::optional<TriggerParams> paramsOpt,
         const testing::Matcher<interfaces::TriggerManager&>& tm,
-        const testing::Matcher<interfaces::JsonStorage&>& triggerStorage)
+        const testing::Matcher<interfaces::JsonStorage&>& triggerStorage) const
     {
         using namespace testing;