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
9#pragma once
10
37
38#include "congure_impl.h"
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
44#ifdef DOXYGEN
54
72#endif /* DOXYGEN */
73
82#ifndef CONFIG_CONGURE_TEST_LOST_MSG_POOL_SIZE
83#define CONFIG_CONGURE_TEST_LOST_MSG_POOL_SIZE (4U)
84#endif
85
94
109int congure_test_clear_state(int argc, char **argv);
110
136int congure_test_call_setup(int argc, char **argv);
137
164int congure_test_call_init(int argc, char **argv);
165
187int congure_test_call_inter_msg_interval(int argc, char **argv);
188
223int congure_test_add_msg(int argc, char **argv);
224
238int congure_test_msgs_reset(int argc, char **argv);
239
324int congure_test_call_report(int argc, char **argv);
325
326#ifdef __cplusplus
327}
328#endif
329
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:53
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:51