| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
#include <pj/types.h> |
| 20 |
#include <pj/unittest.h> |
| 21 |
|
| 22 |
#if defined(PJ_EXCLUDE_BENCHMARK_TESTS) && (PJ_EXCLUDE_BENCHMARK_TESTS==1) |
| 23 |
# define WITH_BENCHMARK 0 |
| 24 |
#else |
| 25 |
# define WITH_BENCHMARK 1 |
| 26 |
#endif |
| 27 |
|
| 28 |
#define INCLUDE_XML_TEST 1 |
| 29 |
#define INCLUDE_JSON_TEST 1 |
| 30 |
#define INCLUDE_ENCRYPTION_TEST 1 |
| 31 |
#define INCLUDE_STUN_TEST 1 |
| 32 |
#define INCLUDE_RESOLVER_TEST 1 |
| 33 |
#define INCLUDE_HTTP_CLIENT_TEST 1 |
| 34 |
#define INCLUDE_WEBSOCK_TEST 1 |
| 35 |
#define INCLUDE_WEBSOCK_ONLINE_TEST 0 |
| 36 |
|
| 37 |
extern int xml_test(void); |
| 38 |
extern int json_test(void); |
| 39 |
extern int encryption_test(); |
| 40 |
extern int encryption_benchmark(); |
| 41 |
extern int stun_test(); |
| 42 |
extern int test_main(int argc, char *argv[]); |
| 43 |
extern int resolver_test(void); |
| 44 |
extern int http_client_test(); |
| 45 |
extern int websock_test(void); |
| 46 |
|
| 47 |
extern void app_perror(const char *title, pj_status_t rc); |
| 48 |
extern pj_pool_factory *mem; |
| 49 |
|
| 50 |
#define UT_MAX_TESTS 20 |
| 51 |
#include "../../../pjlib/src/pjlib-test/test_util.h" |
| 52 |
|
| 53 |
struct test_app_t |
| 54 |
{ |
| 55 |
ut_app_t ut_app; |
| 56 |
int param_log_decor; |
| 57 |
}; |
| 58 |
extern struct test_app_t test_app; |