#include "testutil.hpp"
#include "testutil_unity.hpp"
#include <limits.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | TEST_CASE_FUNC_PARAM(name, func) |
Typedefs | |
typedef void(* | extra_poller_func_t) (void *poller_) |
typedef void(* | extra_poller_socket_func_t) (void *poller_, void *socket_) |
Definition at line 309 of file test_poller.cpp.
Definition at line 232 of file test_poller.cpp.
Definition at line 216 of file test_poller.cpp.
Definition at line 454 of file test_poller.cpp.
Definition at line 399 of file test_poller.cpp.
Definition at line 438 of file test_poller.cpp.
Definition at line 382 of file test_poller.cpp.
Definition at line 357 of file test_poller.cpp.
Definition at line 464 of file test_poller.cpp.
Definition at line 426 of file test_poller.cpp.
Definition at line 444 of file test_poller.cpp.
Definition at line 390 of file test_poller.cpp.
Definition at line 375 of file test_poller.cpp.
Definition at line 414 of file test_poller.cpp.
Definition at line 369 of file test_poller.cpp.
test_with_valid_poller void call_poller_size | ( | void * | poller_, |
void * | socket_ | ||
) |
Definition at line 321 of file test_poller.cpp.
Definition at line 515 of file test_poller.cpp.
Definition at line 531 of file test_poller.cpp.
Definition at line 523 of file test_poller.cpp.
Definition at line 540 of file test_poller.cpp.
Definition at line 292 of file test_poller.cpp.
Definition at line 298 of file test_poller.cpp.
test_with_empty_poller test_with_empty_poller test_with_empty_poller test_with_empty_poller void call_poller_wait_empty_with_timeout_fails | ( | void * | poller_, |
void * | |||
) |
Definition at line 499 of file test_poller.cpp.
Definition at line 507 of file test_poller.cpp.
Definition at line 287 of file test_poller.cpp.
SETUP_TEARDOWN_TESTCONTEXT fd_t get_fd | ( | void * | socket_ | ) |
Definition at line 17 of file test_poller.cpp.
int main | ( | void | ) |
Definition at line 693 of file test_poller.cpp.
void test_call_poller_fd | ( | ) |
Definition at line 269 of file test_poller.cpp.
void test_call_poller_fd_no_signaler | ( | ) |
Definition at line 251 of file test_poller.cpp.
test_with_empty_poller test_with_empty_poller test_with_empty_poller TEST_CASE_FUNC_PARAM | ( | call_poller_add_fd_invalid_events_fails | , |
test_with_empty_poller | |||
) |
test_with_empty_poller test_with_empty_poller TEST_CASE_FUNC_PARAM | ( | call_poller_add_invalid_events_fails | , |
test_with_empty_poller | |||
) |
test_with_empty_poller TEST_CASE_FUNC_PARAM | ( | call_poller_remove_fd_unregistered_fails | , |
test_with_empty_poller | |||
) |
TEST_CASE_FUNC_PARAM | ( | call_poller_remove_unregistered_fails | , |
test_with_empty_poller | |||
) |
test_with_empty_poller TEST_CASE_FUNC_PARAM | ( | call_poller_wait_all_empty_negative_count_fails | , |
test_with_empty_poller | |||
) |
test_with_empty_poller test_with_empty_poller TEST_CASE_FUNC_PARAM | ( | call_poller_wait_all_empty_with_timeout_fails | , |
test_with_empty_poller | |||
) |
TEST_CASE_FUNC_PARAM | ( | call_poller_wait_all_null_event_fails_event_count_nonzero | , |
test_with_valid_poller | |||
) |
TEST_CASE_FUNC_PARAM | ( | call_poller_wait_empty_with_timeout_fails | , |
test_with_empty_poller | |||
) |
void test_null_poller_pointer_poller_fd | ( | ) |
Definition at line 182 of file test_poller.cpp.
void test_null_poller_pointers_add_direct | ( | ) |
Definition at line 47 of file test_poller.cpp.
void test_null_poller_pointers_add_fd_direct | ( | ) |
Definition at line 97 of file test_poller.cpp.
void test_null_poller_pointers_add_fd_indirect | ( | ) |
Definition at line 107 of file test_poller.cpp.
void test_null_poller_pointers_add_indirect | ( | ) |
Definition at line 55 of file test_poller.cpp.
void test_null_poller_pointers_destroy_direct | ( | ) |
Definition at line 25 of file test_poller.cpp.
void test_null_poller_pointers_destroy_indirect | ( | ) |
Definition at line 30 of file test_poller.cpp.
void test_null_poller_pointers_modify_direct | ( | ) |
Definition at line 64 of file test_poller.cpp.
void test_null_poller_pointers_modify_fd_direct | ( | ) |
Definition at line 117 of file test_poller.cpp.
void test_null_poller_pointers_modify_fd_indirect | ( | ) |
Definition at line 126 of file test_poller.cpp.
void test_null_poller_pointers_modify_indirect | ( | ) |
Definition at line 72 of file test_poller.cpp.
void test_null_poller_pointers_remove_direct | ( | ) |
Definition at line 81 of file test_poller.cpp.
void test_null_poller_pointers_remove_fd_direct | ( | ) |
Definition at line 136 of file test_poller.cpp.
void test_null_poller_pointers_remove_fd_indirect | ( | ) |
Definition at line 144 of file test_poller.cpp.
void test_null_poller_pointers_remove_indirect | ( | ) |
Definition at line 88 of file test_poller.cpp.
void test_null_poller_pointers_size_direct | ( | ) |
Definition at line 36 of file test_poller.cpp.
void test_null_poller_pointers_size_indirect | ( | ) |
Definition at line 41 of file test_poller.cpp.
void test_null_poller_pointers_wait_all_direct | ( | ) |
Definition at line 167 of file test_poller.cpp.
void test_null_poller_pointers_wait_all_indirect | ( | ) |
Definition at line 174 of file test_poller.cpp.
void test_null_poller_pointers_wait_direct | ( | ) |
Definition at line 153 of file test_poller.cpp.
void test_null_poller_pointers_wait_indirect | ( | ) |
Definition at line 159 of file test_poller.cpp.
void test_null_socket_pointers | ( | ) |
Definition at line 189 of file test_poller.cpp.
test_with_empty_poller test_with_empty_poller test_with_empty_poller void test_poll_basic | ( | ) |
Definition at line 564 of file test_poller.cpp.
void test_poll_client_server | ( | ) |
Definition at line 639 of file test_poller.cpp.
void test_poll_fd | ( | ) |
Definition at line 605 of file test_poller.cpp.
void test_with_empty_poller | ( | extra_poller_socket_func_t | extra_func_ | ) |
Definition at line 218 of file test_poller.cpp.
void test_with_valid_poller | ( | extra_poller_func_t | extra_func_ | ) |
Definition at line 234 of file test_poller.cpp.