[ CCUnit project page ] | [ CCUnit home page ] |
00001 /* -*- mode: C; -*- */ 00002 /* Copyright (C) 2003 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: CCUnitTestCase.h,v 1.12 2003/10/05 11:29:59 tsutsumi Exp $ 00023 */ 00024 00029 #ifndef CCUNITTESTCASE_H 00030 #define CCUNITTESTCASE_H 00031 00032 #include <ccunit/CCUnitConfig.h> 00033 00071 typedef struct CCUnitTestCase 00072 { 00073 const char* name; 00074 const char* desc; 00075 void (*runTest) (); 00076 } CCUnitTestCase; 00077 00078 typedef CCUnitTestCase CCUnitTestFunc; 00079 00088 extern CCUnitTestCase* ccunit_newTestCase (const char* name, 00089 const char* desc, 00090 void (*runTest)()); 00091 00100 extern inline CCUnitTestFunc* ccunit_newTestFunc (const char* name, 00101 const char* desc, 00102 void (*func)()); 00103 #define CCUNIT_NEWTESTFUNC(FUNC) ccunit_newTestFunc (#FUNC, NULL, FUNC) 00104 00110 extern void ccunit_deleteTestCase (CCUnitTestCase* testCase); 00111 00117 extern inline void ccunit_deleteTestFunc (CCUnitTestFunc* testFunc); 00118 00121 #endif /* !CCUNITTESTCASE_H */
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Mon Aug 16 2010 21:52:38 for CCUnit by ![]() |