Loading...
Searching...
No Matches
test.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
34
35#include "congure_impl.h"
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#ifdef DOXYGEN
51
69#endif /* DOXYGEN */
70
79#ifndef CONFIG_CONGURE_TEST_LOST_MSG_POOL_SIZE
80#define CONFIG_CONGURE_TEST_LOST_MSG_POOL_SIZE (4U)
81#endif
82
91
106int congure_test_clear_state(int argc, char **argv);
107
133int congure_test_call_setup(int argc, char **argv);
134
161int congure_test_call_init(int argc, char **argv);
162
184int congure_test_call_inter_msg_interval(int argc, char **argv);
185
220int congure_test_add_msg(int argc, char **argv);
221
235int congure_test_msgs_reset(int argc, char **argv);
236
321int congure_test_call_report(int argc, char **argv);
322
323#ifdef __cplusplus
324}
325#endif
326
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:50
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 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:48