Debian Codegraph @

Xpjproject/pjmedia/src/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 #ifndef __PJMEDIA_TEST_H__
20 #define __PJMEDIA_TEST_H__
21
22 #include <pjmedia.h>
23 #include <pjlib.h>
24
25 #if defined(PJ_EXCLUDE_BENCHMARK_TESTS) && (PJ_EXCLUDE_BENCHMARK_TESTS==1)
26 # define WITH_BENCHMARK 0
27 #else
28 # define WITH_BENCHMARK 1
29 #endif
30
31 #define HAS_VID_DEV_TEST PJMEDIA_HAS_VIDEO
32 #define HAS_VID_PORT_TEST PJMEDIA_HAS_VIDEO
33 #ifndef HAS_VID_CODEC_TEST
34 #define HAS_VID_CODEC_TEST PJMEDIA_HAS_VIDEO
35 #endif
36 #define HAS_SDP_NEG_TEST 1
37 #define HAS_JBUF_TEST 1
38 #define HAS_MIPS_TEST WITH_BENCHMARK
39 #define HAS_CODEC_VECTOR_TEST 1
40
41 int session_test(void);
42 int rtp_test(void);
43 int sdp_test(void);
44 int jbuf_test(void);
45 int sdp_neg_test(void);
46 int mips_test(void);
47 int codec_test_vectors(void);
48 int vid_codec_test(void);
49 int vid_dev_test(void);
50 int vid_port_test(void);
51
52 extern pj_pool_factory *mem;
53 void app_perror(pj_status_t status, const char *title);
54
55 int test_main(int argc, char *argv[]);
56
57 #define UT_MAX_TESTS 80
58 #include "../../../pjlib/src/pjlib-test/test_util.h"
59
60 struct test_app_t
61 {
62 ut_app_t ut_app;
63 };
64 extern struct test_app_t test_app;
65
66
67 #endif /* __PJMEDIA_TEST_H__ */