forked from Mirrors/freeswitch
113da462f1
* s2base.h: added S2_CASE(), added test function name to s2_case() parameters Ignore-this: c9ceff2812044e2643c21548be29233e git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12734 d0543943-73ff-0310-b7d9-9358b9ac24b2
62 lines
1.6 KiB
C
62 lines
1.6 KiB
C
/*
|
|
* This file is part of the Sofia-SIP package
|
|
*
|
|
* Copyright (C) 2008 Nokia Corporation.
|
|
*
|
|
* Contact: Pekka Pessi <pekka.pessi@nokia.com>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public License
|
|
* as published by the Free Software Foundation; either version 2.1 of
|
|
* the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
|
* 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef S2BASE_H
|
|
#define S2BASE_H
|
|
|
|
#include <sofia-sip/su_wait.h>
|
|
#include <sofia-sip/su_alloc.h>
|
|
#include "s2util.h"
|
|
|
|
extern struct s2base
|
|
{
|
|
su_home_t home[1];
|
|
su_root_t *root;
|
|
} *s2base;
|
|
|
|
extern char const *s2_tester, *_s2_suite, *_s2_case;
|
|
extern int s2_start_stop;
|
|
|
|
void s2_suite(char const *label);
|
|
void s2_setup(char const *label);
|
|
|
|
void s2_step(void);
|
|
|
|
void s2_case(char const *tag,
|
|
char const *title,
|
|
char const *description,
|
|
char const *function);
|
|
|
|
#if HAVE_FUNC
|
|
#define S2_CASE(n, t, d) s2_case((n),(t),(d), __func__)
|
|
#elif HAVE_FUNCTION
|
|
#define S2_CASE(n, t, d) s2_case((n),(t),(d), __FUNCTION__)
|
|
#else
|
|
#define S2_CASE(n, t, d) s2_case((n),(t),(d), "")
|
|
#endif
|
|
|
|
void s2_teardown_started(char const *label);
|
|
void s2_teardown(void);
|
|
|
|
#endif
|