Loading...
Searching...
No Matches
test.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
36#ifndef CONGURE_TEST_H
37#define CONGURE_TEST_H
38
39#include "congure_impl.h"
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45#ifdef DOXYGEN
55
73#endif /* DOXYGEN */
74
83#ifndef CONFIG_CONGURE_TEST_LOST_MSG_POOL_SIZE
84#define CONFIG_CONGURE_TEST_LOST_MSG_POOL_SIZE (4U)
85#endif
86
95
110int congure_test_clear_state(int argc, char **argv);
111
137int congure_test_call_setup(int argc, char **argv);
138
165int congure_test_call_init(int argc, char **argv);
166
188int congure_test_call_inter_msg_interval(int argc, char **argv);
189
224int congure_test_add_msg(int argc, char **argv);
225
239int congure_test_msgs_reset(int argc, char **argv);
240
325int congure_test_call_report(int argc, char **argv);
326
327#ifdef __cplusplus
328}
329#endif
330
331#endif /* CONGURE_TEST_H */
int congure_test_add_msg(int argc, char **argv)
Adds a message from the message pool to the list for cong_report msgs_lost and cong_report msgs_timeo...
int congure_test_clear_state(int argc, char **argv)
Clears the CongURE state object.
congure_test_snd_t * congure_test_get_state(void)
Get the application-defined CongURE state object.
int congure_test_call_report(int argc, char **argv)
Calls one of the report_*() methods for CongURE state object.
congure_snd_t congure_test_snd_t
Application-defined type for the CongURE state object under test.
Definition test.h:54
int congure_test_call_init(int argc, char **argv)
Calls init() method for CongURE state object.
int congure_test_call_inter_msg_interval(int argc, char **argv)
Calls inter_msg_interval() method for CongURE state object.
int congure_test_snd_setup(void congure_test_snd_t *c, unsigned id)
Setup the application-defined CongURE state object under test.
int congure_test_msgs_reset(int argc, char **argv)
Resets the the message pool and messages list for cong_report msgs_lost and cong_report msgs_timeout.
int congure_test_call_setup(int argc, char **argv)
Setup the CongURE state object.
Base state object for CongURE implementations.
Definition congure.h:51