blob: db12e390fc716bfc7e446b64a04190c5aa1b8274 [file] [log] [blame]
Benny Prijono5dcb38d2005-11-21 01:55:47 +00001/* $Id$ */
2/*
3 * Copyright (C) 2003-2006 Benny Prijono <benny@prijono.org>
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 __TEST_H__
20#define __TEST_H__
21
22#include <pjsip/sip_types.h>
23
24extern pjsip_endpoint *endpt;
25
Benny Prijonofa73e3e2006-01-05 23:35:46 +000026#define TEST_UDP_PORT 15060
27#define TEST_UDP_PORT_STR "15060"
Benny Prijono5dcb38d2005-11-21 01:55:47 +000028
Benny Prijono0ca04b62005-12-30 23:50:15 +000029/* The tests */
30int uri_test(void);
31int msg_test(void);
32int txdata_test(void);
33int transport_udp_test(void);
Benny Prijonofa73e3e2006-01-05 23:35:46 +000034int transport_loop_test(void);
35int tsx_uac_test(void);
Benny Prijono0ca04b62005-12-30 23:50:15 +000036
37/* Transport test helpers (transport_test.c). */
38int generic_transport_test(pjsip_transport *tp);
39int transport_send_recv_test( pjsip_transport_type_e tp_type,
40 pjsip_transport *ref_tp,
Benny Prijonofa73e3e2006-01-05 23:35:46 +000041 char *target_url );
Benny Prijono0ca04b62005-12-30 23:50:15 +000042int transport_rt_test( pjsip_transport_type_e tp_type,
43 pjsip_transport *ref_tp,
Benny Prijonofa73e3e2006-01-05 23:35:46 +000044 char *target_url );
Benny Prijono0ca04b62005-12-30 23:50:15 +000045
46/* Test main entry */
Benny Prijono5dcb38d2005-11-21 01:55:47 +000047int test_main(void);
Benny Prijono0ca04b62005-12-30 23:50:15 +000048
49/* Test utilities. */
Benny Prijono5dcb38d2005-11-21 01:55:47 +000050void app_perror(const char *msg, pj_status_t status);
51
52
53#endif /* __TEST_H__ */