refactor(API): don't expose private symbols in lvgl.h. phase-out "_lv*" names (#6068)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 13 KiB |
@@ -1,3 +1,4 @@
|
||||
#include "../../src/indev/lv_indev_private.h"
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include <stdio.h>
|
||||
|
||||
1
tests/src/test_cases/cache/test_cache.c
vendored
@@ -1,6 +1,7 @@
|
||||
#if LV_BUILD_TEST
|
||||
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#include "lv_test_helpers.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#include "lv_test_helpers.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#include "lv_test_helpers.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#include "../demos/lv_demos.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
@@ -26,7 +27,7 @@ void test_render_to_al88(void)
|
||||
uint32_t opa;
|
||||
for(opa = 0; opa < 2; opa++) {
|
||||
uint32_t i;
|
||||
for(i = 0; i < _LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
for(i = 0; i < LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
|
||||
/*Skip test with transformed indexed images if they are not loaded to RAM*/
|
||||
if(LV_BIN_DECODER_RAM_LOAD == 0 &&
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#include "../demos/lv_demos.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
@@ -23,7 +24,7 @@ void test_render_to_argb8888(void)
|
||||
uint32_t opa;
|
||||
for(opa = 0; opa < 2; opa++) {
|
||||
uint32_t i;
|
||||
for(i = 0; i < _LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
for(i = 0; i < LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
|
||||
/*Skip test with transformed indexed images if they are not loaded to RAM*/
|
||||
if(LV_BIN_DECODER_RAM_LOAD == 0 &&
|
||||
|
||||
@@ -24,7 +24,7 @@ void test_render_to_i1(void)
|
||||
uint32_t opa;
|
||||
for(opa = 0; opa < 2; opa++) {
|
||||
uint32_t i;
|
||||
for(i = 0; i < _LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
for(i = 0; i < LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
lv_demo_render(i, opa_values[opa]);
|
||||
|
||||
char buf[128];
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#include "../demos/lv_demos.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
@@ -26,7 +27,7 @@ void test_render_to_l8(void)
|
||||
uint32_t opa;
|
||||
for(opa = 0; opa < 2; opa++) {
|
||||
uint32_t i;
|
||||
for(i = 0; i < _LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
for(i = 0; i < LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
lv_demo_render(i, opa_values[opa]);
|
||||
|
||||
/*Skip test with transformed indexed images if they are not loaded to RAM*/
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#include "../demos/lv_demos.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
@@ -23,7 +24,7 @@ void test_render_to_rgb565(void)
|
||||
uint32_t opa;
|
||||
for(opa = 0; opa < 2; opa++) {
|
||||
uint32_t i;
|
||||
for(i = 0; i < _LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
for(i = 0; i < LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
|
||||
/*Skip test with transformed indexed images if they are not loaded to RAM*/
|
||||
if(LV_BIN_DECODER_RAM_LOAD == 0 &&
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#include "../demos/lv_demos.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
@@ -23,7 +24,7 @@ void test_render_to_rgb888(void)
|
||||
uint32_t opa;
|
||||
for(opa = 0; opa < 2; opa++) {
|
||||
uint32_t i;
|
||||
for(i = 0; i < _LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
for(i = 0; i < LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
|
||||
/*Skip test with transformed indexed images if they are not loaded to RAM*/
|
||||
if(LV_BIN_DECODER_RAM_LOAD == 0 &&
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#include "../demos/lv_demos.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
@@ -23,7 +24,7 @@ void test_render_to_xrgb8888(void)
|
||||
uint32_t opa;
|
||||
for(opa = 0; opa < 2; opa++) {
|
||||
uint32_t i;
|
||||
for(i = 0; i < _LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
for(i = 0; i < LV_DEMO_RENDER_SCENE_NUM; i++) {
|
||||
|
||||
/*Skip test with transformed indexed images if they are not loaded to RAM*/
|
||||
if(LV_BIN_DECODER_RAM_LOAD == 0 &&
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_helpers.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../libs/freetype/lv_freetype_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
@@ -483,7 +484,7 @@ void test_freetype_outline_rendering_test(void)
|
||||
|
||||
uint32_t i = 0;
|
||||
lv_freetype_outline_event_param_t * param;
|
||||
_LV_LL_READ(outline_data, param) {
|
||||
LV_LL_READ(outline_data, param) {
|
||||
#if OPTION_GENERATE_OUTLINE_DATA
|
||||
/*FOR Generate outline data*/
|
||||
#if OPTION_GENERATE_VECTOR_OPS_STRING
|
||||
@@ -517,14 +518,14 @@ static void freetype_outline_event_cb(lv_event_t * e)
|
||||
switch(code) {
|
||||
case LV_EVENT_CREATE:
|
||||
param->outline = lv_malloc_zeroed(sizeof(lv_ll_t));
|
||||
_lv_ll_init(param->outline, sizeof(lv_freetype_outline_event_param_t));
|
||||
lv_ll_init(param->outline, sizeof(lv_freetype_outline_event_param_t));
|
||||
break;
|
||||
case LV_EVENT_DELETE:
|
||||
_lv_ll_clear(param->outline);
|
||||
lv_ll_clear(param->outline);
|
||||
lv_free(param->outline);
|
||||
break;
|
||||
case LV_EVENT_INSERT: {
|
||||
void * entry = _lv_ll_ins_tail(param->outline);
|
||||
void * entry = lv_ll_ins_tail(param->outline);
|
||||
lv_memcpy(entry, param, sizeof(lv_freetype_outline_event_param_t));
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_helpers.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_helpers.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_helpers.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_helpers.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_helpers.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_helpers.h"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#if LV_BUILD_TEST
|
||||
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_helpers.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_indev.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#include "../demos/lv_demos.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
#include "../demos/lv_demos.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_helpers.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_indev.h"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#if LV_BUILD_TEST
|
||||
#include "../../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include <string.h>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
typedef struct _test_hover_t {
|
||||
/* data */
|
||||
uint32_t id;
|
||||
char id[32];
|
||||
uint32_t counts;
|
||||
} test_hover_t;
|
||||
|
||||
@@ -35,8 +35,8 @@ void tearDown(void)
|
||||
|
||||
static void hovered_event_cb(lv_event_t * e)
|
||||
{
|
||||
test_hover_t * hover = (test_hover_t *)e->user_data;
|
||||
lv_log("Object(ID:%d) hovered %d/%d times.\n", hover->id, hover->counts, TEST_HOVER_COUNTS);
|
||||
test_hover_t * hover = lv_event_get_user_data(e);
|
||||
lv_log("Object(ID:%s) hovered %u/%d times.\n", hover->id, hover->counts, TEST_HOVER_COUNTS);
|
||||
}
|
||||
|
||||
static void test_move_mouse(lv_point_t * point, uint8_t size)
|
||||
@@ -61,7 +61,7 @@ void test_hover_basic(void)
|
||||
lv_obj_set_style_text_color(label, lv_color_hex(0x5be1b6), LV_PART_MAIN | LV_STATE_HOVERED);
|
||||
|
||||
/*Set hover callback*/
|
||||
label_hovered.id = (lv_uintptr_t)label->id;
|
||||
lv_obj_stringify_id(label, label_hovered.id, sizeof(label_hovered.id));
|
||||
label_hovered.counts = 0;
|
||||
lv_obj_add_event_cb(label, hovered_event_cb, LV_EVENT_HOVER_OVER, &label_hovered);
|
||||
|
||||
@@ -71,7 +71,7 @@ void test_hover_basic(void)
|
||||
lv_obj_set_style_bg_opa(btn, 128, LV_PART_MAIN | LV_STATE_HOVERED);
|
||||
|
||||
/*Set hover callback*/
|
||||
btn_hovered.id = (lv_uintptr_t)btn->id;
|
||||
lv_obj_stringify_id(btn, btn_hovered.id, sizeof(btn_hovered.id));
|
||||
btn_hovered.counts = 0;
|
||||
lv_obj_add_event_cb(btn, hovered_event_cb, LV_EVENT_HOVER_OVER, &btn_hovered);
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST == 1
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_indev.h"
|
||||
@@ -260,7 +261,7 @@ void test_observer_obj_state(void)
|
||||
|
||||
lv_obj_bind_state_if_eq(obj, &subject, LV_STATE_CHECKED, 5);
|
||||
/*Should be applied immediately*/
|
||||
TEST_ASSERT_EQUAL(false, lv_obj_has_flag(obj, LV_STATE_CHECKED));
|
||||
TEST_ASSERT_EQUAL(false, lv_obj_has_state(obj, LV_STATE_CHECKED));
|
||||
|
||||
lv_obj_bind_state_if_not_eq(obj, &subject, LV_STATE_DISABLED, 10);
|
||||
/*Should be applied immediately*/
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include <string.h>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#if LV_USE_SNAPSHOT
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include <unistd.h>
|
||||
@@ -49,13 +50,13 @@ void test_custom_prop_ids(void)
|
||||
for(uint32_t i = 0; i < max_props_to_register; i++) {
|
||||
lv_style_prop_t prop = lv_style_register_prop(fake_flag);
|
||||
/* Should have a higher index than the last built-in prop */
|
||||
TEST_ASSERT_GREATER_THAN(_LV_STYLE_LAST_BUILT_IN_PROP, prop);
|
||||
TEST_ASSERT_GREATER_THAN(LV_STYLE_LAST_BUILT_IN_PROP, prop);
|
||||
if(i == 0) {
|
||||
/* Should be equal to the first expected index of a custom prop */
|
||||
TEST_ASSERT_EQUAL(_LV_STYLE_NUM_BUILT_IN_PROPS + initial_custom_props, prop);
|
||||
TEST_ASSERT_EQUAL(LV_STYLE_NUM_BUILT_IN_PROPS + initial_custom_props, prop);
|
||||
}
|
||||
/*We should find our flags*/
|
||||
TEST_ASSERT_EQUAL(fake_flag, _lv_style_prop_lookup_flags(prop));
|
||||
TEST_ASSERT_EQUAL(fake_flag, lv_style_prop_lookup_flags(prop));
|
||||
if(fake_flag == 0xff)
|
||||
fake_flag = 0;
|
||||
else
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "../../../src/misc/lv_text_private.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_indev.h"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#if LV_BUILD_TEST
|
||||
#include "../lvgl.h"
|
||||
#include "../../lvgl_private.h"
|
||||
|
||||
#include "unity/unity.h"
|
||||
#include "lv_test_indev.h"
|
||||
|
||||