#ifndef AL_UNITTEST_WRAPPER_GOOGLETEST_2019_07_04_H_ #define AL_UNITTEST_WRAPPER_GOOGLETEST_2019_07_04_H_ #include #include #if defined(__cplusplus) extern "C" { #endif typedef void(*ALUnitTest_TestFunctionType)(void); boolean ALUnitTest_Init(int argc, char** argv); boolean ALUnitTest_RunTests(void); static inline 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(actual,expected,operation) EXPECT_TRUE((actual) operation (expected)) #define CHECK_XIMPL(actual,expected,operation) ASSERT_TRUE((actual) operation (expected)) #define AL_UNITTEST_CHECK_SHOW_XIMPL(actual,expected,operation) EXPECT_TRUE((actual) operation (expected)) #define AL_UNITTEST_CHECK_XIMPL(actual,expected,operation) ASSERT_TRUE((actual) operation (expected)) #define AL_UNITTEST_STRING_EQUAL_XIMPL(a, b) EXPECT_STREQ(a,b) #define AL_UNITTEST_STRING_NOT_EQUAL_XIMPL(a, b) EXPECT_STRNE(a, b) #if defined(__cplusplus) } #endif #endif // AL_UNITTEST_WRAPPER_GOOGLETEST_2019_07_04_H_