Changeset 7470d97 in mainline for uspace/lib/gfxfont
- Timestamp:
- 2021-04-30T15:05:06Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 051349b
- Parents:
- 252d03c
- Location:
- uspace/lib/gfxfont/test
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gfxfont/test/font.c
r252d03c r7470d97 1 1 /* 2 * Copyright (c) 202 0Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 39 39 PCUT_TEST_SUITE(font); 40 40 41 static errno_t testgc_set_clip_rect(void *, gfx_rect_t *); 41 42 static errno_t testgc_set_color(void *, gfx_color_t *); 42 43 static errno_t testgc_fill_rect(void *, gfx_rect_t *); … … 48 49 49 50 static gfx_context_ops_t test_ops = { 51 .set_clip_rect = testgc_set_clip_rect, 50 52 .set_color = testgc_set_color, 51 53 .fill_rect = testgc_fill_rect, … … 568 570 } 569 571 } 572 } 573 574 static errno_t testgc_set_clip_rect(void *arg, gfx_rect_t *rect) 575 { 576 return EOK; 570 577 } 571 578 -
uspace/lib/gfxfont/test/glyph.c
r252d03c r7470d97 1 1 /* 2 * Copyright (c) 202 0Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 43 43 PCUT_TEST_SUITE(glyph); 44 44 45 static errno_t testgc_set_clip_rect(void *, gfx_rect_t *); 45 46 static errno_t testgc_set_color(void *, gfx_color_t *); 46 47 static errno_t testgc_fill_rect(void *, gfx_rect_t *); … … 52 53 53 54 static gfx_context_ops_t test_ops = { 55 .set_clip_rect = testgc_set_clip_rect, 54 56 .set_color = testgc_set_color, 55 57 .fill_rect = testgc_fill_rect, … … 567 569 rc = gfx_context_delete(gc); 568 570 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 571 } 572 573 static errno_t testgc_set_clip_rect(void *arg, gfx_rect_t *rect) 574 { 575 return EOK; 569 576 } 570 577 -
uspace/lib/gfxfont/test/glyph_bmp.c
r252d03c r7470d97 1 1 /* 2 * Copyright (c) 202 0Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 39 39 PCUT_TEST_SUITE(glyph_bmp); 40 40 41 static errno_t testgc_set_clip_rect(void *, gfx_rect_t *); 41 42 static errno_t testgc_set_color(void *, gfx_color_t *); 42 43 static errno_t testgc_fill_rect(void *, gfx_rect_t *); … … 48 49 49 50 static gfx_context_ops_t test_ops = { 51 .set_clip_rect = testgc_set_clip_rect, 50 52 .set_color = testgc_set_color, 51 53 .fill_rect = testgc_fill_rect, … … 581 583 rc = gfx_context_delete(gc); 582 584 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 585 } 586 587 static errno_t testgc_set_clip_rect(void *arg, gfx_rect_t *rect) 588 { 589 return EOK; 583 590 } 584 591 -
uspace/lib/gfxfont/test/text.c
r252d03c r7470d97 1 1 /* 2 * Copyright (c) 202 0Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 40 40 PCUT_TEST_SUITE(text); 41 41 42 static errno_t testgc_set_clip_rect(void *, gfx_rect_t *); 42 43 static errno_t testgc_set_color(void *, gfx_color_t *); 43 44 static errno_t testgc_fill_rect(void *, gfx_rect_t *); … … 49 50 50 51 static gfx_context_ops_t test_ops = { 52 .set_clip_rect = testgc_set_clip_rect, 51 53 .set_color = testgc_set_color, 52 54 .fill_rect = testgc_fill_rect, … … 145 147 rc = gfx_context_delete(gc); 146 148 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 149 } 150 151 static errno_t testgc_set_clip_rect(void *arg, gfx_rect_t *rect) 152 { 153 return EOK; 147 154 } 148 155 -
uspace/lib/gfxfont/test/tpf.c
r252d03c r7470d97 1 1 /* 2 * Copyright (c) 202 0Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 41 41 PCUT_TEST_SUITE(tpf); 42 42 43 static errno_t testgc_set_clip_rect(void *, gfx_rect_t *); 43 44 static errno_t testgc_set_color(void *, gfx_color_t *); 44 45 static errno_t testgc_fill_rect(void *, gfx_rect_t *); … … 50 51 51 52 static gfx_context_ops_t test_ops = { 53 .set_clip_rect = testgc_set_clip_rect, 52 54 .set_color = testgc_set_color, 53 55 .fill_rect = testgc_fill_rect, … … 208 210 } 209 211 212 static errno_t testgc_set_clip_rect(void *arg, gfx_rect_t *rect) 213 { 214 return EOK; 215 } 216 210 217 static errno_t testgc_set_color(void *arg, gfx_color_t *color) 211 218 { -
uspace/lib/gfxfont/test/typeface.c
r252d03c r7470d97 1 1 /* 2 * Copyright (c) 202 0Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 37 37 PCUT_TEST_SUITE(typeface); 38 38 39 static errno_t testgc_set_clip_rect(void *, gfx_rect_t *); 39 40 static errno_t testgc_set_color(void *, gfx_color_t *); 40 41 static errno_t testgc_fill_rect(void *, gfx_rect_t *); … … 46 47 47 48 static gfx_context_ops_t test_ops = { 49 .set_clip_rect = testgc_set_clip_rect, 48 50 .set_color = testgc_set_color, 49 51 .fill_rect = testgc_fill_rect, … … 94 96 { 95 97 // TODO 98 } 99 100 static errno_t testgc_set_clip_rect(void *arg, gfx_rect_t *rect) 101 { 102 return EOK; 96 103 } 97 104
Note:
See TracChangeset
for help on using the changeset viewer.