|
Teonet library
0.4.7
|
#include <stdio.h>#include <stdlib.h>#include <CUnit/Basic.h>#include "ev_mgr.h"#include "modules/cque.h"Macros | |
| #define | kc_emul() |
| Emulate ksnetEvMgrClass. More... | |
Functions | |
| void | test_4_1 () |
| Initialize and Destroy module class. More... | |
| void | kq_cb (uint32_t id, int type, void *data) |
| Callback Queue callback. More... | |
| void | test_4_2 () |
| Add callback to QUEUE. More... | |
| void | test_4_3 () |
| Execute callback to emulate callback event. More... | |
| int | add_suite_4_tests (void) |
| Add Callback QUEUE module tests. More... | |
Variables | |
| CU_pSuite | pSuite |
Callback QUEUE module tests suite
Test functions:
cUnit test suite code:
Created on Aug 22, 2015, 3:35:32 AM
| #define kc_emul | ( | ) |
Emulate ksnetEvMgrClass.
Referenced by test_4_1(), test_4_2(), and test_4_3().
| int add_suite_4_tests | ( | void | ) |
| void kq_cb | ( | uint32_t | id, |
| int | type, | ||
| void * | data | ||
| ) |
Callback Queue callback.
| id | Calls ID |
| type | Type: 0 - timeout callback; 1 - successful callback |
| data | User data |
Referenced by test_4_2(), and test_4_3().
| void test_4_1 | ( | ) |
Initialize and Destroy module class.
References ksnCQueClass::cque_map, kc_emul, ke, ksnCQueDestroy(), and ksnCQueInit().
Referenced by add_suite_4_tests().
| void test_4_2 | ( | ) |
Add callback to QUEUE.
References cq, ksnCQueClass::cque_map, kc_emul, ke, kq_cb(), ksnCQueAdd(), ksnCQueDestroy(), and ksnCQueInit().
| void test_4_3 | ( | ) |
Execute callback to emulate callback event.
References cq, ksnCQueClass::cque_map, kc_emul, ke, kq_cb(), ksnCQueAdd(), ksnCQueDestroy(), ksnCQueExec(), and ksnCQueInit().
| CU_pSuite pSuite |
Referenced by add_suite_4_tests().