[ CCUnit project page ] |  | [ CCUnit home page ]

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

# CCUnitTestRunner.h

Go to the documentation of this file.

    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: CCUnitTestRunner.h,v 1.9 2010/08/16 05:07:00 tsutsumi Exp $
    00023  */
    00027 #ifndef CCUNITTESTRUNNER_H
    00028 #define CCUNITTESTRUNNER_H
    00029
    00030 #include <stdio.h>
    00031 #include <ccunit/CCUnitConfig.h>
    00032 #include <ccunit/CCUnitTestResult.h>
    00033 #include <ccunit/CCUnitTestSuite.h>
    00034 #include <ccunit/CCUnitTestListener.h>
    00035
    00060 typedef struct CCUnitTestRunner CCUnitTestRunner;
    00061
    00068 struct CCUnitTestRunner
    00069 {
    00070   CCUnitTestListener listener;
    00071   CCUnitTestResult* result;
    00072   int (*run)(CCUnitTestRunner*, CCUnitTestSuite*);
    00073   FILE* ofp;
    00074 };
    00075
    00082 extern CCUnitTestRunner* ccunit_newTestRunner (FILE* output);
    00083
    00089 extern void ccunit_deleteTestRunner (CCUnitTestRunner* runner);
    00090
    00099 extern inline int ccunit_runTestRunner (CCUnitTestRunner* runner,
    00100                                         CCUnitTestSuite* suite);
    00101
    00108 extern inline CCUnitTestResult* ccunit_getResult (CCUnitTestRunner* runner);
    00109
    00112 #endif

| hosts this site. |  | Send comments to: CCUnit Developer |