#include "zbxmockassert.h"
#include "../../../src/libs/zbxsysinfo/simple/simple.h"
#include "../../../include/zbxsysinfo.h"
#include "../../../src/libs/zbxsysinfo/sysinfo.h"
int __wrap_tcp_expect(const char *host, unsigned short port, int timeout, const char *request,
int (*validate_func)(const char *), const char *sendtoclose, int *value_int);
int __wrap_tcp_expect(const char *host, unsigned short port, int timeout, const char *request,
int (*validate_func)(const char *), const char *sendtoclose, int *value_int)
ZBX_UNUSED(validate_func);
void zbx_mock_test_entry(void **state)
const char *default_addr = NULL, *ip = NULL;
int returned_code, expected_code;
expected_code = zbx_mock_str_to_return_code(zbx_mock_get_parameter_string("out.return"));
default_addr = zbx_mock_get_parameter_string("in.interface");
ip = zbx_mock_get_parameter_string("in.ip");
zbx_init_agent_result(&result);
zbx_init_agent_request(&request);
zbx_init_library_sysinfo(get_zbx_config_timeout, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
strcat(key, "net.tcp.service[smtp");
if (NULL != ip && '\0' != *ip)