OpenVPN
|
#include "syshead.h"
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include "packet_id.h"
#include "reliable.h"
#include "test_common.h"
Go to the source code of this file.
Data Structures | |
struct | test_packet_id_write_data |
Functions | |
static int | test_packet_id_write_setup (void **state) |
static int | test_packet_id_write_teardown (void **state) |
static void | test_packet_id_write_short (void **state) |
static void | test_packet_id_write_long (void **state) |
static void | test_packet_id_write_short_prepend (void **state) |
static void | test_packet_id_write_long_prepend (void **state) |
static void | test_packet_id_write_short_wrap (void **state) |
static void | test_packet_id_write_long_wrap (void **state) |
static void | test_get_num_output_sequenced_available (void **state) |
static void | test_copy_acks_to_lru (void **state) |
int | main (void) |
int main | ( | void | ) |
Definition at line 275 of file test_packet_id.c.
References openvpn_unit_test_setup(), test_copy_acks_to_lru(), test_get_num_output_sequenced_available(), test_packet_id_write_long(), test_packet_id_write_long_prepend(), test_packet_id_write_long_wrap(), test_packet_id_write_setup(), test_packet_id_write_short(), test_packet_id_write_short_prepend(), test_packet_id_write_short_wrap(), and test_packet_id_write_teardown().
|
static |
Definition at line 212 of file test_packet_id.c.
References copy_acks_to_mru(), reliable_ack::len, and reliable_ack::packet_id.
Referenced by main().
|
static |
Definition at line 158 of file test_packet_id.c.
References reliable_entry::active, reliable::array, reliable_entry::packet_id, reliable::packet_id, reliable_free(), reliable_get_num_output_sequenced_available(), and reliable_init().
Referenced by main().
|
static |
Definition at line 87 of file test_packet_id.c.
References test_packet_id_write_data::buf_id, test_packet_id_write_data::buf_time, packet_id_send::id, now, packet_id_write(), test_packet_id_write_data::pis, test_packet_id_write_data::test_buf, test_packet_id_write_data::test_buf_data, and packet_id_send::time.
Referenced by main().
|
static |
Definition at line 113 of file test_packet_id.c.
References test_packet_id_write_data::buf_id, test_packet_id_write_data::buf_time, packet_id_send::id, now, buffer::offset, packet_id_write(), test_packet_id_write_data::pis, test_packet_id_write_data::test_buf, test_packet_id_write_data::test_buf_data, and packet_id_send::time.
Referenced by main().
|
static |
Definition at line 136 of file test_packet_id.c.
References test_packet_id_write_data::buf_id, test_packet_id_write_data::buf_time, packet_id_send::id, now, packet_id_write(), test_packet_id_write_data::pis, test_packet_id_write_data::test_buf, test_packet_id_write_data::test_buf_data, and packet_id_send::time.
Referenced by main().
|
static |
Definition at line 50 of file test_packet_id.c.
References buffer::capacity, buffer::data, test_packet_id_write_data::test_buf, and test_packet_id_write_data::test_buf_data.
Referenced by main().
|
static |
Definition at line 75 of file test_packet_id.c.
References test_packet_id_write_data::buf_id, test_packet_id_write_data::buf_time, packet_id_send::id, now, packet_id_write(), test_packet_id_write_data::pis, test_packet_id_write_data::test_buf, and test_packet_id_write_data::test_buf_data.
Referenced by main().
|
static |
Definition at line 100 of file test_packet_id.c.
References test_packet_id_write_data::buf_id, test_packet_id_write_data::buf_time, packet_id_send::id, now, buffer::offset, packet_id_write(), test_packet_id_write_data::pis, test_packet_id_write_data::test_buf, and test_packet_id_write_data::test_buf_data.
Referenced by main().
|
static |
Definition at line 127 of file test_packet_id.c.
References packet_id_send::id, packet_id_write(), test_packet_id_write_data::pis, and test_packet_id_write_data::test_buf.
Referenced by main().
|
static |
Definition at line 68 of file test_packet_id.c.
Referenced by main().