2 /* Copyright (C) 2003 TSUTSUMI Kikuo.
3 This file is part of the CCUnit Library.
5 The CCUnit Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public License
7 as published by the Free Software Foundation; either version 2.1 of
8 the License, or (at your option) any later version.
10 The CCUnit Library is distributed in the hope that it will be
11 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the CCUnit Library; see the file COPYING.LESSER.
17 If not, write to the Free Software Foundation, Inc., 59 Temple
18 Place - Suite 330, Boston, MA 02111-1307, USA.
24 #ifndef CCUNITTESTLISTENER_H
25 #define CCUNITTESTLISTENER_H
27 #include <ccunit/CCUnitConfig.h>
28 #include <ccunit/CCUnitFailure.h>
29 #include <ccunit/CCUnitTestCase.h>
31 struct CCUnitTestListener;
32 typedef struct CCUnitTestListener CCUnitTestListener;
33 typedef void (*ccunit_addfailure_func_t)(CCUnitTestListener* listener,
34 CCUnitFailure* failure);
35 typedef void (*ccunit_notifytest_func_t)(CCUnitTestListener* listener,
36 CCUnitTestCase* testCase);
38 struct CCUnitTestListener
40 ccunit_addfailure_func_t addFailure;
41 ccunit_notifytest_func_t startTest;
42 ccunit_notifytest_func_t endTest;