1 /** 2 * @file lv_test_assert.h 3 * 4 */ 5 6 #ifndef LV_TEST_ASSERT_H 7 #define LV_TEST_ASSERT_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 #include <stdbool.h> 17 #include <stdint.h> 18 #include "../lvgl.h" 19 20 /********************* 21 * DEFINES 22 *********************/ 23 24 /********************** 25 * TYPEDEFS 26 **********************/ 27 28 /********************** 29 * GLOBAL PROTOTYPES 30 **********************/ 31 32 void lv_test_print(const char * s, ...); 33 void lv_test_exit(const char * s, ...); 34 void lv_test_error(const char * s, ...); 35 void lv_test_assert_true(int32_t expression, const char * s); 36 void lv_test_assert_int_eq(int32_t n1, int32_t n2, const char * s); 37 void lv_test_assert_int_gt(int32_t n_ref, int32_t n_act, const char * s); 38 void lv_test_assert_int_lt(int32_t n_ref, int32_t n_act, const char * s); 39 void lv_test_assert_str_eq(const char * str1, const char * str2, const char * s); 40 void lv_test_assert_ptr_eq(const void * p_ref, const void * p_act, const char * s); 41 void lv_test_assert_color_eq(lv_color_t c_ref, lv_color_t c_act, const char * s); 42 void lv_test_assert_img_eq(const char * ref_img_fn, const char * s); 43 void lv_test_assert_array_eq(const uint8_t *p_ref, const uint8_t *p_act, int32_t size, const char * s); 44 45 /********************** 46 * MACROS 47 **********************/ 48 49 #ifdef __cplusplus 50 } /* extern "C" */ 51 #endif 52 53 #endif /*LV_TEST_ASSERT_H*/ 54