[ 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: CCUnitTest.h,v 1.8 2010/08/20 07:40:10 tsutsumi Exp $ 00023 */ 00024 00030 #ifndef CCUNITTEST_H 00031 #define CCUNITTEST_H 00032 00033 #include <ccunit/CCUnitConfig.h> 00034 00046 typedef enum CCUnitTestType_t { 00047 ccunitTypeTest, 00048 ccunitTypeSuite, 00049 ccunitTypeTestCase, 00050 ccunitTypeFunc, 00051 ccunitTypeLast_ 00052 } CCUnitTestType_t; 00053 00054 struct CCUnitTestResult; 00055 00062 typedef struct CCUnitTest 00063 { 00064 CCUnitTestType_t type; 00065 void (*run)(struct CCUnitTest*, struct CCUnitTestResult*); 00066 void (*dtor)(struct CCUnitTest*); 00067 } CCUnitTest; 00068 00069 typedef struct CCUnitTestDfn 00070 { 00071 CCUnitTestType_t type; 00072 } CCUnitTestDfn; 00073 00083 extern CCUnitTest* 00084 ccunit_initTest (CCUnitTest* test, 00085 CCUnitTestType_t type, 00086 void (*run)(CCUnitTest*, struct CCUnitTestResult*), 00087 void (*dtor)(CCUnitTest*)); 00088 00094 extern void ccunit_deleteTest (CCUnitTest* test); 00095 00098 #endif
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sun Aug 29 2010 10:59:33 for CCUnit by ![]() |