Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

test_nth.c File Reference


Detailed Description

Tests for nth module.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>
Date:
Created: Tue Oct 22 20:52:37 2002 ppessi

Definition in file test_nth.c.

#include "config.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <sofia-sip/su_tagarg.h>
#include <sofia-sip/su_wait.h>
#include "sofia-sip/nth.h"
#include <sofia-sip/http_header.h>
#include <sofia-sip/msg_mclass.h>
#include <sofia-sip/tport_tag.h>
#include <sofia-sip/auth_module.h>
#include <sofia-sip/tstdef.h>

Go to the source code of this file.

Classes

struct  client
struct  site
struct  tester

Defines

#define __func__   name
#define CRLF   "\r\n"
#define NTH_CLIENT_MAGIC_T   client_t
#define NTH_SITE_MAGIC_T   site_t
#define SU_ROOT_MAGIC_T   tester_t
#define TSTFLAGS   tstflags

Typedefs

typedef struct client client_t
typedef struct site site_t
typedef struct tester tester_t

Functions

static int deinit_test (tester_t *t)
static int init_engine (tester_t *t)
static int init_server (tester_t *t)
static int init_test (tester_t *t)
int main (int argc, char **argv)
static void remove_tmp (void)
static int response_to_client (client_t *c, nth_client_t *hc, http_t const *http)
static int send_request (tester_t *t, char const *req, size_t reqlen, int close_socket, char reply[], int rlen, int *return_len)
static int site_check_all (site_t *t, nth_site_t *server, nth_request_t *req, http_t const *http, char const *path)
static site_t * site_create (tester_t *t, site_t *parent, char const *url, int status, char const *phrase, tag_type_t tag, tag_value_t value,...)
int sspace (char const *buffer)
static int test_client (tester_t *t)
static int test_nth_client_api (tester_t *t)
static int test_nth_server_api (tester_t *t)
static int test_requests (tester_t *t)
static int test_site (site_t *t, nth_site_t *server, nth_request_t *req, http_t const *http, char const *path)
void usage (void)

Variables

char const name [] = "test_nth"
static char const passwd []
static char passwd_name [] = "tmp_sippasswd.XXXXXX"
int tstflags = 0


Generated by  Doxygen 1.6.0   Back to index