From 5865af7f6e76c501b3c016b83686c49036deb726 Mon Sep 17 00:00:00 2001 From: Smirnov Alexey Date: Wed, 29 Sep 2021 12:13:13 +0300 Subject: [PATCH] Add more parameters to render fixture --- .../gapi/test/common/gapi_tests_helpers.hpp | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/modules/gapi/test/common/gapi_tests_helpers.hpp b/modules/gapi/test/common/gapi_tests_helpers.hpp index ce0c90442d..3f4e1ee0b3 100644 --- a/modules/gapi/test/common/gapi_tests_helpers.hpp +++ b/modules/gapi/test/common/gapi_tests_helpers.hpp @@ -50,6 +50,18 @@ namespace opencv_test __TUPLE_PARAM_TYPE(index) param_name = getSpecificParam(); \ __WRAP_VAARGS(__DEFINE_PARAMS_IMPL7(index+1, __VA_ARGS__)) +#define __DEFINE_PARAMS_IMPL9(index, param_name, ...) \ + __TUPLE_PARAM_TYPE(index) param_name = getSpecificParam(); \ + __WRAP_VAARGS(__DEFINE_PARAMS_IMPL8(index+1, __VA_ARGS__)) + +#define __DEFINE_PARAMS_IMPL10(index, param_name, ...) \ + __TUPLE_PARAM_TYPE(index) param_name = getSpecificParam(); \ + __WRAP_VAARGS(__DEFINE_PARAMS_IMPL9(index+1, __VA_ARGS__)) + +#define __DEFINE_PARAMS_IMPL11(index, param_name, ...) \ + __TUPLE_PARAM_TYPE(index) param_name = getSpecificParam(); \ + __WRAP_VAARGS(__DEFINE_PARAMS_IMPL10(index+1, __VA_ARGS__)) + // user interface to define member variables of specified names #define DEFINE_SPECIFIC_PARAMS_0() @@ -76,6 +88,15 @@ namespace opencv_test #define DEFINE_SPECIFIC_PARAMS_8(...) \ __WRAP_VAARGS(__DEFINE_PARAMS_IMPL8(0, __VA_ARGS__)) + +#define DEFINE_SPECIFIC_PARAMS_9(...) \ + __WRAP_VAARGS(__DEFINE_PARAMS_IMPL9(0, __VA_ARGS__)) + +#define DEFINE_SPECIFIC_PARAMS_10(...) \ + __WRAP_VAARGS(__DEFINE_PARAMS_IMPL10(0, __VA_ARGS__)) + +#define DEFINE_SPECIFIC_PARAMS_11(...) \ + __WRAP_VAARGS(__DEFINE_PARAMS_IMPL11(0, __VA_ARGS__)) } // namespace opencv_test #endif //OPENCV_GAPI_TESTS_HELPERS_HPP