blob: 686dea07786a70fdf9f23f2f8f185692c6a273db [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 Prijono0ca04b62005-12-30 23:50:15 +000026#define TEST_UDP_PORT 15060
Benny Prijono5dcb38d2005-11-21 01:55:47 +000027
Benny Prijono0ca04b62005-12-30 23:50:15 +000028/* The tests */
29int uri_test(void);
30int msg_test(void);
31int txdata_test(void);
32int transport_udp_test(void);
33
34/* Transport test helpers (transport_test.c). */
35int generic_transport_test(pjsip_transport *tp);
36int transport_send_recv_test( pjsip_transport_type_e tp_type,
37 pjsip_transport *ref_tp,
38 const pj_sockaddr_in *rem_addr );
39int transport_rt_test( pjsip_transport_type_e tp_type,
40 pjsip_transport *ref_tp,
41 const pj_sockaddr_in *rem_addr );
42
43/* Test main entry */
Benny Prijono5dcb38d2005-11-21 01:55:47 +000044int test_main(void);
Benny Prijono0ca04b62005-12-30 23:50:15 +000045
46/* Test utilities. */
Benny Prijono5dcb38d2005-11-21 01:55:47 +000047void app_perror(const char *msg, pj_status_t status);
48
49
50#endif /* __TEST_H__ */