Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArtjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com>2022-01-07 11:46:30 +0300
committerArtjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com>2022-01-07 11:47:13 +0300
commitc4fba54c60efee12f44fe0ed512c7407a34b24a5 (patch)
tree685d58fbe38fdd7e3ab359c982c10bf2eee64aa1 /tests
parentd3cd3f05c7a6fa7fb2662a02b5d5a1a5dcf2c54f (diff)
.......... [DEV-2053] restored some includes
Diffstat (limited to 'tests')
-rw-r--r--tests/libs/zbxtrends/zbx_baseline_get_data.c2
-rw-r--r--tests/zabbix_server/service/mock_service.c12
-rw-r--r--tests/zabbix_server/trapper/zbx_trapper_preproc_test_run.c2
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/libs/zbxtrends/zbx_baseline_get_data.c b/tests/libs/zbxtrends/zbx_baseline_get_data.c
index e9d500e01f8..71910809f69 100644
--- a/tests/libs/zbxtrends/zbx_baseline_get_data.c
+++ b/tests/libs/zbxtrends/zbx_baseline_get_data.c
@@ -29,6 +29,8 @@
int __wrap_DBis_null(const char *field);
DB_ROW __wrap_DBfetch(DB_RESULT result);
DB_RESULT __wrap_DBselect(const char *fmt, ...);
+zbx_trend_state_t __wrap_zbx_trends_get_avg(const char *table, zbx_uint64_t itemid, int start, int end,
+ double *value);
int __wrap_DBis_null(const char *field)
{
diff --git a/tests/zabbix_server/service/mock_service.c b/tests/zabbix_server/service/mock_service.c
index 2156986b8b5..3caeaf73186 100644
--- a/tests/zabbix_server/service/mock_service.c
+++ b/tests/zabbix_server/service/mock_service.c
@@ -26,6 +26,18 @@
#include "mock_service.h"
+zbx_uint64_t __wrap_DCget_nextid(const char *table_name, int num);
+void *__wrap_zbx_add_event(unsigned char source, unsigned char object, zbx_uint64_t objectid,
+ const zbx_timespec_t *timespec, int value, const char *trigger_description,
+ const char *trigger_expression, const char *trigger_recovery_expression, unsigned char trigger_priority,
+ unsigned char trigger_type, const zbx_vector_ptr_t *trigger_tags,
+ unsigned char trigger_correlation_mode, const char *trigger_correlation_tag,
+ unsigned char trigger_value, const char *trigger_opdata, const char *event_name, const char *error);
+int __wrap_zbx_process_events(zbx_vector_ptr_t *trigger_diff, zbx_vector_uint64_t *triggerids_lock);
+void __wrap_zbx_clean_events(void);
+int __wrap_zbx_interface_availability_is_set(const void *ia);
+
+
/* stubs to satisfy hard link dependenceies */
int get_process_info_by_thread(int local_server_num, unsigned char *local_process_type, int *local_process_num);
diff --git a/tests/zabbix_server/trapper/zbx_trapper_preproc_test_run.c b/tests/zabbix_server/trapper/zbx_trapper_preproc_test_run.c
index c7ea2dac668..79a5bcafa8c 100644
--- a/tests/zabbix_server/trapper/zbx_trapper_preproc_test_run.c
+++ b/tests/zabbix_server/trapper/zbx_trapper_preproc_test_run.c
@@ -38,6 +38,8 @@ int __wrap_DBget_user_by_active_session(const char *sessionid, zbx_user_t *user)
int __wrap_DBget_user_by_auth_token(const char *formatted_auth_token_hash, zbx_user_t *user);
void __wrap_zbx_user_init(zbx_user_t *user);
void __wrap_zbx_user_free(zbx_user_t *user);
+void __wrap_init_result(AGENT_RESULT *result);
+void __wrap_free_result(AGENT_RESULT *result);
int __wrap_zbx_preprocessor_test(unsigned char value_type, const char *value, const zbx_timespec_t *ts,
const zbx_vector_ptr_t *steps, zbx_vector_ptr_t *results, zbx_vector_ptr_t *history,