diff options
Diffstat (limited to 'src/components/security_manager/test/security_query_matcher.cc')
-rw-r--r-- | src/components/security_manager/test/security_query_matcher.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/components/security_manager/test/security_query_matcher.cc b/src/components/security_manager/test/security_query_matcher.cc index 1bf22bf8cd..b9a4f83b10 100644 --- a/src/components/security_manager/test/security_query_matcher.cc +++ b/src/components/security_manager/test/security_query_matcher.cc @@ -90,15 +90,12 @@ MATCHER_P(InternalErrorWithErrId, } // namespace security_manager_test } // namespace components } // namespace test - /* - * Matcher for checking QueryHeader equal in GTests - */ -::testing::AssertionResult QueryHeader_EQ( - const char* m_expr, - const char* n_expr, - const ::security_manager::SecurityQuery::QueryHeader& q1, - const ::security_manager::SecurityQuery::QueryHeader& q2); +#ifdef BUILD_TESTS +/* + * Matcher for checking QueryHeader equal in GTests + */ +// cppcheck-suppress unusedFunction //Used in unit tests ::testing::AssertionResult QueryHeader_EQ( const char* m_expr, const char* n_expr, @@ -121,3 +118,4 @@ MATCHER_P(InternalErrorWithErrId, << ", seq_number_2=" << q2.seq_number; return ::testing::AssertionSuccess(); } +#endif // BUILD_TESTS |