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/or00006 modify it under the terms of the GNU Lesser General Public License00007 as published by the Free Software Foundation; either version 2.1 of00008 the License, or (at your option) any later version.00009
00010 The CCUnit Library is distributed in the hope that it will be00011 useful, but WITHOUT ANY WARRANTY; without even the implied warranty00012 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the00013 GNU Lesser General Public License for more details.00014
00015 You should have received a copy of the GNU Lesser General Public00016 License along with the CCUnit Library; see the file COPYING.LESSER.00017 If not, write to the Free Software Foundation, Inc., 59 Temple00018 Place - Suite 330, Boston, MA 02111-1307, USA. 00019 */00020
00021 /*00022 * $Id: CCUnitTestListener.h,v 1.7 2010/08/20 07:46:53 tsutsumi Exp $00023 */00028 #ifndef CCUNITTESTLISTENER_H00029 #define CCUNITTESTLISTENER_H00030
00031 #include <ccunit/CCUnitConfig.h>00032 #include <ccunit/CCUnitTestFailure.h>00033 #include <ccunit/CCUnitTestFunc.h>00034
00050 struct CCUnitTestListener;
00051
00063typedefstruct CCUnitTestListenerCCUnitTestListener;
00064
00069struct CCUnitTestListener00070 {
00074 void (*addFailure) (CCUnitTestListener* listener, CCUnitTestFailure* failure);
00075
00079 void (*startTest) (CCUnitTestListener* listener, CCUnitTestFunc* testFunc);
00080
00084 void (*endTest) (CCUnitTestListener* listener, CCUnitTestFunc* testFunc);
00085 };
00086
00089 #endif