Debian Codegraph @

Xpjproject/pjlib-util/src/pjlib-util-test/test.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
3 * Copyright (C) 2003-2008 Benny Prijono <[email protected]>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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;