//***************************************************************************** // (C) Automotive Lighting Reutlingen GmbH // Tuebinger Strasse 123, 72762 Reutlingen, Germany // // Automotive Lighting Reutlingen GmbH owns all the rights to this work. // This work shall not be copied, reproduced, used, modified, transferred // or its information shall not be disclosed without the prior written // authorization of Automotive Lighting Reutlingen GmbH. //***************************************************************************** //============================================================================= // Includes //============================================================================= #ifndef AL_UNITTEST_WRAPPER_CUNIT_2019_07_04_H_ #define AL_UNITTEST_WRAPPER_CUNIT_2019_07_04_H_ #include #if defined(__cplusplus) extern "C" { #endif #include typedef void(*ALUnitTest_TestFunctionType)(void); boolean ALUnitTest_Init(int argc, char** argv); boolean ALUnitTest_RunTests(void); void ALUnitTest_AddTests(void); boolean ALUnitTest_AddFunction(const char* const pcTestName, const ALUnitTest_TestFunctionType pfnTestFunction); #define AL_UNITTEST_INIT_XIMPL(argc, argv) ALUnitTest_Init((argc), (argv)) #define AL_UNITTEST_RUN_XIMPL() ALUnitTest_RunTests() #define AL_UNITTEST_ADD_TESTS_XIMPL() ALUnitTest_AddTests() #define CHECK_SHOW_XIMPL(a,b,c) ASSERT_SHOW(a,b,c) #define CHECK_XIMPL(a,b,c) ASSERT(a,b,c) #define AL_UNITTEST_CHECK_SHOW_XIMPL(a,b,c) ASSERT_SHOW(a,b,c) #define AL_UNITTEST_CHECK_XIMPL(a,b,c) ASSERT(a,b,c) #define AL_UNITTEST_STRING_EQUAL_XIMPL(a, b) CU_ASSERT_STRING_EQUAL(a,b) #define AL_UNITTEST_STRING_NOT_EQUAL_XIMPL(a, b) CU_ASSERT_STRING_NOT_EQUAL(a, b) #if defined(__cplusplus) } #endif #endif // AL_UNITTEST_WRAPPER_CUNIT_2019_07_04_H_