Lines Matching refs:ret

160 	int ret;  in ZTEST_F()  local
164 ret = bt_bap_base_get_size(base); in ZTEST_F()
165 zassert_equal(ret, 70, "Unexpected BASE size: %d", ret); in ZTEST_F()
170 int ret; in ZTEST_F() local
172 ret = bt_bap_base_get_size(NULL); in ZTEST_F()
173 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in ZTEST_F()
179 int ret; in ZTEST_F() local
183 ret = bt_bap_base_get_pres_delay(base); in ZTEST_F()
184 zassert_equal(ret, 40000, "Unexpected presentation delay: %d", ret); in ZTEST_F()
189 int ret; in ZTEST_F() local
191 ret = bt_bap_base_get_pres_delay(NULL); in ZTEST_F()
192 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in ZTEST_F()
198 int ret; in ZTEST_F() local
202 ret = bt_bap_base_get_subgroup_count(base); in ZTEST_F()
203 zassert_equal(ret, 2, "Unexpected presentation delay: %d", ret); in ZTEST_F()
208 int ret; in ZTEST_F() local
210 ret = bt_bap_base_get_subgroup_count(NULL); in ZTEST_F()
211 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in ZTEST_F()
218 int ret; in ZTEST_F() local
222 ret = bt_bap_base_get_bis_indexes(base, &bis_indexes); in ZTEST_F()
223 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
231 int ret; in ZTEST_F() local
233 ret = bt_bap_base_get_bis_indexes(NULL, &bis_indexes); in ZTEST_F()
234 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in ZTEST_F()
240 int ret; in ZTEST_F() local
244 ret = bt_bap_base_get_bis_indexes(base, NULL); in ZTEST_F()
245 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in ZTEST_F()
262 int ret; in ZTEST_F() local
266 ret = bt_bap_base_foreach_subgroup(base, test_base_foreach_subgroup_cb, &count); in ZTEST_F()
267 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
274 int ret; in ZTEST_F() local
276 ret = bt_bap_base_foreach_subgroup(NULL, test_base_foreach_subgroup_cb, &count); in ZTEST_F()
277 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in ZTEST_F()
283 int ret; in ZTEST_F() local
287 ret = bt_bap_base_foreach_subgroup(base, NULL, NULL); in ZTEST_F()
288 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in ZTEST_F()
295 int ret; in test_base_get_subgroup_codec_id_cb() local
297 ret = bt_bap_base_get_subgroup_codec_id(subgroup, &codec_id); in test_base_get_subgroup_codec_id_cb()
298 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in test_base_get_subgroup_codec_id_cb()
309 int ret; in ZTEST_F() local
313 ret = bt_bap_base_foreach_subgroup(base, test_base_get_subgroup_codec_id_cb, NULL); in ZTEST_F()
314 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
321 int ret; in test_base_get_subgroup_codec_id_inval_param_null_subgroup_cb() local
323 ret = bt_bap_base_get_subgroup_codec_id(NULL, &codec_id); in test_base_get_subgroup_codec_id_inval_param_null_subgroup_cb()
324 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_get_subgroup_codec_id_inval_param_null_subgroup_cb()
332 int ret; in ZTEST_F() local
336 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
338 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
345 int ret; in test_base_get_subgroup_codec_id_inval_param_null_cb() local
347 ret = bt_bap_base_get_subgroup_codec_id(subgroup, NULL); in test_base_get_subgroup_codec_id_inval_param_null_cb()
348 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_get_subgroup_codec_id_inval_param_null_cb()
356 int ret; in ZTEST_F() local
360 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
362 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
373 int ret; in test_base_get_subgroup_codec_data_cb() local
375 ret = bt_bap_base_get_subgroup_codec_data(subgroup, &data); in test_base_get_subgroup_codec_data_cb()
376 zassert_equal(ret, sizeof(expected_data), "Unexpected return value: %d", ret); in test_base_get_subgroup_codec_data_cb()
385 int ret; in ZTEST_F() local
389 ret = bt_bap_base_foreach_subgroup(base, test_base_get_subgroup_codec_data_cb, NULL); in ZTEST_F()
390 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
397 int ret; in test_base_get_subgroup_codec_data_inval_param_null_subgroup_cb() local
399 ret = bt_bap_base_get_subgroup_codec_data(NULL, &data); in test_base_get_subgroup_codec_data_inval_param_null_subgroup_cb()
400 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_get_subgroup_codec_data_inval_param_null_subgroup_cb()
408 int ret; in ZTEST_F() local
412 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
414 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
421 int ret; in test_base_get_subgroup_codec_data_inval_param_null_cb() local
423 ret = bt_bap_base_get_subgroup_codec_data(subgroup, NULL); in test_base_get_subgroup_codec_data_inval_param_null_cb()
424 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_get_subgroup_codec_data_inval_param_null_cb()
432 int ret; in ZTEST_F() local
436 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
438 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
446 int ret; in test_base_get_subgroup_codec_meta_cb() local
448 ret = bt_bap_base_get_subgroup_codec_meta(subgroup, &data); in test_base_get_subgroup_codec_meta_cb()
449 zassert_equal(ret, sizeof(expected_data), "Unexpected return value: %d", ret); in test_base_get_subgroup_codec_meta_cb()
458 int ret; in ZTEST_F() local
462 ret = bt_bap_base_foreach_subgroup(base, test_base_get_subgroup_codec_meta_cb, NULL); in ZTEST_F()
463 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
470 int ret; in test_base_get_subgroup_codec_meta_inval_param_null_subgroup_cb() local
472 ret = bt_bap_base_get_subgroup_codec_meta(NULL, &data); in test_base_get_subgroup_codec_meta_inval_param_null_subgroup_cb()
473 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_get_subgroup_codec_meta_inval_param_null_subgroup_cb()
481 int ret; in ZTEST_F() local
485 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
487 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
494 int ret; in test_base_get_subgroup_codec_meta_inval_param_null_cb() local
496 ret = bt_bap_base_get_subgroup_codec_meta(subgroup, NULL); in test_base_get_subgroup_codec_meta_inval_param_null_cb()
497 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_get_subgroup_codec_meta_inval_param_null_cb()
505 int ret; in ZTEST_F() local
509 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
511 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
523 int ret; in test_base_subgroup_codec_to_codec_cfg_cb() local
525 ret = bt_bap_base_subgroup_codec_to_codec_cfg(subgroup, &codec_cfg); in test_base_subgroup_codec_to_codec_cfg_cb()
526 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in test_base_subgroup_codec_to_codec_cfg_cb()
527 zassert_equal(codec_cfg.data_len, sizeof(expected_data), "Unexpected data length: %d", ret); in test_base_subgroup_codec_to_codec_cfg_cb()
528 zassert_equal(codec_cfg.meta_len, sizeof(expected_meta), "Unexpected meta length: %d", ret); in test_base_subgroup_codec_to_codec_cfg_cb()
538 int ret; in ZTEST_F() local
542 ret = bt_bap_base_foreach_subgroup(base, test_base_subgroup_codec_to_codec_cfg_cb, NULL); in ZTEST_F()
543 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
550 int ret; in test_base_subgroup_codec_to_codec_cfg_inval_param_null_subgroup_cb() local
552 ret = bt_bap_base_subgroup_codec_to_codec_cfg(NULL, &codec_cfg); in test_base_subgroup_codec_to_codec_cfg_inval_param_null_subgroup_cb()
553 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_subgroup_codec_to_codec_cfg_inval_param_null_subgroup_cb()
561 int ret; in ZTEST_F() local
565 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
567 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
573 int ret; in test_base_subgroup_codec_to_codec_cfg_inval_param_null_cb() local
575 ret = bt_bap_base_subgroup_codec_to_codec_cfg(subgroup, NULL); in test_base_subgroup_codec_to_codec_cfg_inval_param_null_cb()
576 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_subgroup_codec_to_codec_cfg_inval_param_null_cb()
584 int ret; in ZTEST_F() local
588 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
590 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
596 int ret; in test_base_get_subgroup_bis_count_cb() local
598 ret = bt_bap_base_get_subgroup_bis_count(subgroup); in test_base_get_subgroup_bis_count_cb()
599 zassert_equal(ret, 0x01, "Unexpected return value: %d", ret); in test_base_get_subgroup_bis_count_cb()
607 int ret; in ZTEST_F() local
611 ret = bt_bap_base_foreach_subgroup(base, test_base_get_subgroup_bis_count_cb, NULL); in ZTEST_F()
612 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
618 int ret; in test_base_get_subgroup_bis_count_inval_param_null_subgroup_cb() local
620 ret = bt_bap_base_get_subgroup_bis_count(NULL); in test_base_get_subgroup_bis_count_inval_param_null_subgroup_cb()
621 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_get_subgroup_bis_count_inval_param_null_subgroup_cb()
629 int ret; in ZTEST_F() local
633 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
635 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
643 int ret; in test_bt_bap_base_subgroup_get_bis_indexes_cb() local
645 ret = bt_bap_base_subgroup_get_bis_indexes(subgroup, &bis_indexes); in test_bt_bap_base_subgroup_get_bis_indexes_cb()
646 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in test_bt_bap_base_subgroup_get_bis_indexes_cb()
656 int ret; in ZTEST_F() local
660 ret = bt_bap_base_foreach_subgroup(base, test_bt_bap_base_subgroup_get_bis_indexes_cb, in ZTEST_F()
662 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
669 int ret; in test_bt_bap_base_subgroup_get_bis_indexes_inval_param_null_subgroup_cb() local
671 ret = bt_bap_base_subgroup_get_bis_indexes(NULL, &bis_indexes); in test_bt_bap_base_subgroup_get_bis_indexes_inval_param_null_subgroup_cb()
672 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_bt_bap_base_subgroup_get_bis_indexes_inval_param_null_subgroup_cb()
680 int ret; in ZTEST_F() local
684 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
686 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
692 int ret; in test_bt_bap_base_subgroup_get_bis_indexes_inval_param_null_index_cb() local
694 ret = bt_bap_base_subgroup_get_bis_indexes(subgroup, NULL); in test_bt_bap_base_subgroup_get_bis_indexes_inval_param_null_index_cb()
695 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_bt_bap_base_subgroup_get_bis_indexes_inval_param_null_index_cb()
703 int ret; in ZTEST_F() local
707 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
709 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
728 int ret; in test_base_subgroup_foreach_bis_subgroup_cb() local
730 ret = bt_bap_base_subgroup_foreach_bis( in test_base_subgroup_foreach_bis_subgroup_cb()
732 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in test_base_subgroup_foreach_bis_subgroup_cb()
744 int ret; in ZTEST_F() local
748 ret = bt_bap_base_foreach_subgroup(base, test_base_subgroup_foreach_bis_subgroup_cb, in ZTEST_F()
750 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
758 int ret; in test_base_subgroup_foreach_bis_inval_param_null_subgroup_cb() local
760 ret = bt_bap_base_subgroup_foreach_bis(NULL, test_base_subgroup_foreach_bis_subgroup_bis_cb, in test_base_subgroup_foreach_bis_inval_param_null_subgroup_cb()
762 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_subgroup_foreach_bis_inval_param_null_subgroup_cb()
770 int ret; in ZTEST_F() local
774 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
776 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
783 int ret; in test_base_subgroup_foreach_bis_inval_param_null_cb_cb() local
785 ret = bt_bap_base_subgroup_foreach_bis(subgroup, NULL, NULL); in test_base_subgroup_foreach_bis_inval_param_null_cb_cb()
786 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_subgroup_foreach_bis_inval_param_null_cb_cb()
794 int ret; in ZTEST_F() local
798 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
800 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
809 int ret; in test_base_subgroup_bis_codec_to_codec_cfg_bis_cb() local
811 ret = bt_bap_base_subgroup_bis_codec_to_codec_cfg(bis, &codec_cfg); in test_base_subgroup_bis_codec_to_codec_cfg_bis_cb()
812 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in test_base_subgroup_bis_codec_to_codec_cfg_bis_cb()
813 zassert_equal(codec_cfg.data_len, sizeof(expected_data), "Unexpected data length: %d", ret); in test_base_subgroup_bis_codec_to_codec_cfg_bis_cb()
823 int ret; in test_base_subgroup_bis_codec_to_codec_cfg_subgroup_cb() local
825 ret = bt_bap_base_subgroup_foreach_bis( in test_base_subgroup_bis_codec_to_codec_cfg_subgroup_cb()
827 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in test_base_subgroup_bis_codec_to_codec_cfg_subgroup_cb()
835 int ret; in ZTEST_F() local
839 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
841 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
848 int ret; in test_base_subgroup_bis_codec_to_codec_cfg_inval_param_null_bis_bis_cb() local
850 ret = bt_bap_base_subgroup_bis_codec_to_codec_cfg(NULL, &codec_cfg); in test_base_subgroup_bis_codec_to_codec_cfg_inval_param_null_bis_bis_cb()
851 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_subgroup_bis_codec_to_codec_cfg_inval_param_null_bis_bis_cb()
859 int ret; in test_base_subgroup_bis_codec_to_codec_cfg_inval_param_null_bis_subgroup_cb() local
861 ret = bt_bap_base_subgroup_foreach_bis( in test_base_subgroup_bis_codec_to_codec_cfg_inval_param_null_bis_subgroup_cb()
863 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_subgroup_bis_codec_to_codec_cfg_inval_param_null_bis_subgroup_cb()
871 int ret; in ZTEST_F() local
875 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
878 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()
884 int ret; in test_base_subgroup_bis_codec_to_codec_cfg_inval_param_null_codec_cfg_bis_cb() local
886 ret = bt_bap_base_subgroup_bis_codec_to_codec_cfg(bis, NULL); in test_base_subgroup_bis_codec_to_codec_cfg_inval_param_null_codec_cfg_bis_cb()
887 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_subgroup_bis_codec_to_codec_cfg_inval_param_null_codec_cfg_bis_cb()
895 int ret; in test_base_subgroup_bis_codec_to_codec_cfg_inval_param_null_codec_cfg_subgroup_cb() local
897 ret = bt_bap_base_subgroup_foreach_bis( in test_base_subgroup_bis_codec_to_codec_cfg_inval_param_null_codec_cfg_subgroup_cb()
900 zassert_equal(ret, -EINVAL, "Unexpected return value: %d", ret); in test_base_subgroup_bis_codec_to_codec_cfg_inval_param_null_codec_cfg_subgroup_cb()
908 int ret; in ZTEST_F() local
912 ret = bt_bap_base_foreach_subgroup( in ZTEST_F()
916 zassert_equal(ret, 0, "Unexpected return value: %d", ret); in ZTEST_F()