feat(event): return event dsc for later to remove (#5630)
Signed-off-by: Neo Xu <neo.xu1990@gmail.com> Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
@@ -8,6 +8,7 @@ extern "C" {
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "../../lvgl.h"
|
||||
#include "../src/lv_test_helpers.h"
|
||||
|
||||
bool lv_test_assert_image_eq(const char * fn_ref);
|
||||
|
||||
@@ -38,11 +39,10 @@ bool lv_test_assert_image_eq(const char * fn_ref);
|
||||
# define TEST_ASSERT_EQUAL_COLOR32_MESSAGE(c1, c2, msg) TEST_ASSERT_TRUE(lv_color32_eq(c1, c2), msg)
|
||||
|
||||
|
||||
# define TEST_ASSERT_MEM_LEAK_LESS_THAN(prev_usage, threshold) TEST_ASSERT_LESS_THAN(threshold, LV_ABS((int64_t)(prev_usage) - (int64_t)lv_test_get_free_mem()));
|
||||
# define TEST_ASSERT_MEM_LEAK_LESS_THAN(prev_usage, threshold) TEST_ASSERT_LESS_OR_EQUAL(threshold, LV_ABS((int64_t)(prev_usage) - (int64_t)lv_test_get_free_mem()));
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /*extern "C"*/
|
||||
#endif
|
||||
|
||||
#endif /*LV_UNITY_SUPPORT_H*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user