diff options
Diffstat (limited to 'tests/zbxmockassert.h')
-rw-r--r-- | tests/zbxmockassert.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/zbxmockassert.h b/tests/zbxmockassert.h new file mode 100644 index 00000000000..786038e25b7 --- /dev/null +++ b/tests/zbxmockassert.h @@ -0,0 +1,35 @@ +/* +** Zabbix +** Copyright (C) 2001-2017 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 ZABBIX_MOCK_ASSERT_H +#define ZABBIX_MOCK_ASSERT_H + +void __zbx_mock_assert_streq(const char *file, int line, const char *prefix_msg, const char *expected_value, + const char *return_value); + +void __zbx_mock_assert_strne(const char *file, int line, const char *prefix_msg, const char *expected_value, + const char *return_value); + +#define zbx_mock_assert_streq(prefix_msg, expected_value, return_value) \ + __zbx_mock_assert_streq(__FILE__, __LINE__, prefix_msg, expected_value, return_value) + +#define zbx_mock_assert_strne(prefix_msg, expected_value, return_value) \ + __zbx_mock_assert_strne(__FILE__, __LINE__, prefix_msg, expected_value, return_value) + +#endif |