diff options
Diffstat (limited to 'tests/libs/zbxdbcache/zbx_vc_common.h')
-rw-r--r-- | tests/libs/zbxdbcache/zbx_vc_common.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/libs/zbxdbcache/zbx_vc_common.h b/tests/libs/zbxdbcache/zbx_vc_common.h new file mode 100644 index 00000000000..21b054b4863 --- /dev/null +++ b/tests/libs/zbxdbcache/zbx_vc_common.h @@ -0,0 +1,35 @@ +/* +** Zabbix +** Copyright (C) 2001-2022 Zabbix SIA +** +** This program is free software; you can redistribute it and/or modify +** it under the terms of the GNU General Public License as published by +** the Free Software Foundation; either version 2 of the License, or +** (at your option) any later version. +** +** This program is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +** GNU General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; if not, write to the Free Software +** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +**/ + +#ifndef VC_COMMON_H +#define VC_COMMON_H + +void zbx_vc_common_test_func(void **state, + void (*zbx_vc_test_add_values_setup)(zbx_mock_handle_t *handle, + zbx_vector_ptr_t *history, int *err, const char **data, int *ret_flush), + void (*zbx_vc_test_get_value_setup)(zbx_mock_handle_t *handle, zbx_uint64_t *itemid, + unsigned char *value_type, zbx_timespec_t *ts, int *err, + zbx_vector_history_record_t *expected, + zbx_vector_history_record_t *returned), + void (*zbx_vc_test_check_result)(zbx_uint64_t *cache_hits, zbx_uint64_t *cache_misses), + void (*zbx_vc_test_get_values_setup)(zbx_mock_handle_t *handle, zbx_uint64_t *itemid, + unsigned char *value_type, zbx_timespec_t *ts, int *err, + zbx_vector_history_record_t *expected, + zbx_vector_history_record_t *returned, int *seconds, int *count)); +#endif |