[ CCUnit project page ] | [ CCUnit home page ] |
00001 /* -*- mode: C; -*- */ 00002 /* Copyright (C) 2003, 2010 TSUTSUMI Kikuo. 00003 This file is part of the CCUnit Library. 00004 00005 The CCUnit Library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public License 00007 as published by the Free Software Foundation; either version 2.1 of 00008 the License, or (at your option) any later version. 00009 00010 The CCUnit Library is distributed in the hope that it will be 00011 useful, but WITHOUT ANY WARRANTY; without even the implied warranty 00012 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with the CCUnit Library; see the file COPYING.LESSER. 00017 If not, write to the Free Software Foundation, Inc., 59 Temple 00018 Place - Suite 330, Boston, MA 02111-1307, USA. 00019 */ 00020 00021 /* 00022 * $Id: CCUnitTestFunc.h,v 1.2 2010/08/20 09:36:01 tsutsumi Exp $ 00023 */ 00024 00029 #ifndef CCUNITTESTFUNC_H 00030 #define CCUNITTESTFUNC_H 00031 00032 #include <ccunit/CCUnitConfig.h> 00033 00075 typedef struct CCUnitTestFunc 00076 { 00077 const char* name; 00078 const char* desc; 00079 void (*runTest) (); 00080 } CCUnitTestFunc; 00081 00090 extern CCUnitTestFunc* ccunit_newTestFunc (const char* name, 00091 const char* desc, 00092 void (*runTest)()); 00093 #define CCUNIT_NEWTESTFUNC(FUNC) ccunit_newTestFunc (#FUNC, NULL, FUNC) 00094 00100 extern void ccunit_deleteTestFunc (CCUnitTestFunc* f); 00101 00107 extern inline void ccunit_deleteTestFunc (CCUnitTestFunc* f); 00108 00111 #endif /* !CCUNITTESTFUNC_H */
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sun Aug 29 2010 10:59:33 for CCUnit by ![]() |