|
libamxrt
0.4.2
Ambiorix Run Time Library
|
#include <stdlib.h>#include <stdio.h>#include <setjmp.h>#include <stdarg.h>#include <cmocka.h>#include <string.h>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <event2/event.h>#include "test_amxrt_eloop.h"#include "amxrt_priv.h"Go to the source code of this file.
Data Structures | |
| struct | _event_cb_fns |
Typedefs | |
| typedef struct _event_cb_fns | event_cb_fns_t |
Functions | |
| struct event_base * | __wrap_event_base_new (void) |
| struct event_base * | __real_event_base_new (void) |
| int | __wrap_event_base_dispatch (struct event_base *base) |
| int | __real_event_base_dispatch (struct event_base *base) |
| int | __wrap_event_new (struct event_base *base, evutil_socket_t fd, short events, event_callback_fn callback, void *callback_arg) |
| int | __real_event_new (struct event_base *base, evutil_socket_t fd, short events, event_callback_fn callback, void *callback_arg) |
| int | __wrap_event_add (struct event *ev, const struct timeval *timeout) |
| int | __real_event_add (struct event *ev, const struct timeval *timeout) |
| static void | remove_cb_fns (amxc_llist_it_t *it) |
| int | test_amxrt_el_setup (UNUSED void **state) |
| int | test_amxrt_el_teardown (UNUSED void **state) |
| static void | test_stop_eventloop (UNUSED amxp_timer_t *timer, void *priv) |
| static void | test_amxp_signal (UNUSED const char *const sig_name, UNUSED const amxc_var_t *const data, void *const priv) |
| void | test_eventloop_is_working (UNUSED void **state) |
| static void | test_reader (int fd, UNUSED void *priv) |
| static void | test_add_fd (UNUSED amxp_timer_t *timer, void *priv) |
| static void | test_write_fd (UNUSED amxp_timer_t *timer, void *priv) |
| void | test_can_add_fds (UNUSED void **state) |
| void | test_can_add_fds_before_el_start (UNUSED void **state) |
| static void | test_ready_write (int fd, UNUSED void *priv) |
| static void | test_add_wait_for_write (UNUSED amxp_timer_t *timer, void *priv) |
| void | test_can_wait_ready_write (UNUSED void **state) |
| static void | test_remove_fd (UNUSED amxp_timer_t *timer, void *priv) |
| void | test_can_remove_fds (UNUSED void **state) |
| void | test_can_destroy_el_without_create (UNUSED void **state) |
| void | test_runtime_run_creates_el (UNUSED void **state) |
| void | test_eventloop_cbs (UNUSED void **state) |
| void | test_eventloop_event_base_new_fails (UNUSED void **state) |
Variables | |
| static amxc_llist_t | functions |
| typedef struct _event_cb_fns event_cb_fns_t |
| int __real_event_add | ( | struct event * | ev, |
| const struct timeval * | timeout | ||
| ) |
| int __real_event_base_dispatch | ( | struct event_base * | base | ) |
| struct event_base* __real_event_base_new | ( | void | ) |
| int __real_event_new | ( | struct event_base * | base, |
| evutil_socket_t | fd, | ||
| short | events, | ||
| event_callback_fn | callback, | ||
| void * | callback_arg | ||
| ) |
| int __wrap_event_add | ( | struct event * | ev, |
| const struct timeval * | timeout | ||
| ) |
Definition at line 94 of file test_amxrt_eloop.c.
| int __wrap_event_base_dispatch | ( | struct event_base * | base | ) |
Definition at line 102 of file test_amxrt_eloop.c.
| struct event_base * __wrap_event_base_new | ( | void | ) |
Definition at line 85 of file test_amxrt_eloop.c.
| int __wrap_event_new | ( | struct event_base * | base, |
| evutil_socket_t | fd, | ||
| short | events, | ||
| event_callback_fn | callback, | ||
| void * | callback_arg | ||
| ) |
Definition at line 120 of file test_amxrt_eloop.c.
|
static |
Definition at line 137 of file test_amxrt_eloop.c.
|
static |
Definition at line 222 of file test_amxrt_eloop.c.
|
static |
Definition at line 326 of file test_amxrt_eloop.c.
|
static |
Definition at line 161 of file test_amxrt_eloop.c.
| int test_amxrt_el_setup | ( | UNUSED void ** | state | ) |
Definition at line 142 of file test_amxrt_eloop.c.
| int test_amxrt_el_teardown | ( | UNUSED void ** | state | ) |
Definition at line 147 of file test_amxrt_eloop.c.
| void test_can_add_fds | ( | UNUSED void ** | state | ) |
Definition at line 240 of file test_amxrt_eloop.c.
| void test_can_add_fds_before_el_start | ( | UNUSED void ** | state | ) |
Definition at line 280 of file test_amxrt_eloop.c.
| void test_can_destroy_el_without_create | ( | UNUSED void ** | state | ) |
Definition at line 414 of file test_amxrt_eloop.c.
| void test_can_remove_fds | ( | UNUSED void ** | state | ) |
Definition at line 381 of file test_amxrt_eloop.c.
| void test_can_wait_ready_write | ( | UNUSED void ** | state | ) |
Definition at line 337 of file test_amxrt_eloop.c.
| void test_eventloop_cbs | ( | UNUSED void ** | state | ) |
Definition at line 435 of file test_amxrt_eloop.c.
| void test_eventloop_event_base_new_fails | ( | UNUSED void ** | state | ) |
Definition at line 449 of file test_amxrt_eloop.c.
| void test_eventloop_is_working | ( | UNUSED void ** | state | ) |
Definition at line 171 of file test_amxrt_eloop.c.
|
static |
Definition at line 207 of file test_amxrt_eloop.c.
|
static |
Definition at line 319 of file test_amxrt_eloop.c.
|
static |
Definition at line 371 of file test_amxrt_eloop.c.
| void test_runtime_run_creates_el | ( | UNUSED void ** | state | ) |
Definition at line 418 of file test_amxrt_eloop.c.
|
static |
Definition at line 155 of file test_amxrt_eloop.c.
|
static |
Definition at line 231 of file test_amxrt_eloop.c.
|
static |
Definition at line 74 of file test_amxrt_eloop.c.