AceUnitData.h

Go to the documentation of this file.
00001 /* Copyright (c) 2007, Christian Hujer
00002  * All rights reserved.
00003  *
00004  * Redistribution and use in source and binary forms, with or without
00005  * modification, are permitted provided that the following conditions are met:
00006  *     * Redistributions of source code must retain the above copyright
00007  *       notice, this list of conditions and the following disclaimer.
00008  *     * Redistributions in binary form must reproduce the above copyright
00009  *       notice, this list of conditions and the following disclaimer in the
00010  *       documentation and/or other materials provided with the distribution.
00011  *     * Neither the name of the AceUnit developers nor the
00012  *       names of its contributors may be used to endorse or promote products
00013  *       derived from this software without specific prior written permission.
00014  *
00015  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00016  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00017  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00018  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
00019  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00020  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00021  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00022  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00023  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00024  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00025  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026  */
00027 
00028 #ifndef ACEUNITDATA_H
00029 
00030 #define ACEUNITDATA_H 1
00031 
00032 #include "AceUnit.h"
00033 
00041 typedef struct {
00042 
00048     AssertionError_t *recentError;
00049 
00051     AssertionError_t recentErrorData;
00052 
00056     TestCaseId_t currentTestId;
00057 
00059     uint16_t testCaseCount;
00060 
00062     uint16_t testCaseFailureCount;
00063 
00064 #if ACEUNIT_ASSERTION_STYLE == ACEUNIT_ASSERTION_STYLE_LONGJMP
00065 
00066     jmp_buf jmpBuf;
00067 #endif
00068 
00069 #ifdef ACEUNIT_EXPLICIT_MESSAGES
00070 
00071 #ifdef ACEUNIT_EXPLICIT_MESSAGES_INLINE_BUFFER
00072     char explicitMsgBuf[ACEUNIT_EXPLICIT_MSG_BUF_SIZE];
00073 #else
00074     char *explicitMsgBuf;
00075 #endif
00076 #endif
00077 #ifdef ACEUNIT_RUNNERDATA_EXTENSION
00078     /* Extension hook to add your own fields to AceUnitRunnerData_t. */
00079     ACEUNIT_RUNNERDATA_EXTENSION
00080 #endif
00081 
00082 } AceUnitRunnerData_t;
00083 
00085 extern AceUnitRunnerData_t *runnerData;
00086 
00087 #endif /* ACEUNITDATA_H */

Generated on Sun Feb 13 11:10:16 2011 for AceUnit by  doxygen 1.5.3