OpenVPN
Data Structures | Functions
test_packet_id.c File Reference
#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"
Include dependency graph for test_packet_id.c:

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)
 

Function Documentation

◆ main()

int main ( void  )

◆ test_copy_acks_to_lru()

static void test_copy_acks_to_lru ( void **  state)
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().

◆ test_get_num_output_sequenced_available()

static void test_get_num_output_sequenced_available ( void **  state)
static

◆ test_packet_id_write_long()

static void test_packet_id_write_long ( void **  state)
static

◆ test_packet_id_write_long_prepend()

static void test_packet_id_write_long_prepend ( void **  state)
static

◆ test_packet_id_write_long_wrap()

static void test_packet_id_write_long_wrap ( void **  state)
static

◆ test_packet_id_write_setup()

static int test_packet_id_write_setup ( void **  state)
static

◆ test_packet_id_write_short()

static void test_packet_id_write_short ( void **  state)
static

◆ test_packet_id_write_short_prepend()

static void test_packet_id_write_short_prepend ( void **  state)
static

◆ test_packet_id_write_short_wrap()

static void test_packet_id_write_short_wrap ( void **  state)
static

◆ test_packet_id_write_teardown()

static int test_packet_id_write_teardown ( void **  state)
static

Definition at line 68 of file test_packet_id.c.

Referenced by main().