Lines Matching refs:ret
39 int ret; in ZTEST() local
41 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
42 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
43 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
56 int ret; in ZTEST() local
58 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
59 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
60 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
62 ret = bt_audio_codec_cfg_set_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, in ZTEST()
64 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
66 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
67 zassert_equal(ret, sizeof(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
77 int ret; in ZTEST() local
79 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
80 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
82 ret = bt_audio_codec_cfg_set_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, in ZTEST()
84 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
86 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
87 zassert_equal(ret, sizeof(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
88 zassert_equal(data[0], new_expected_data, "Unexpected return value %d", ret); in ZTEST()
100 int ret; in ZTEST() local
102 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
103 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
104 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
106 ret = bt_audio_codec_cfg_unset_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ); in ZTEST()
107 zassert_true(ret >= 0, "Unexpected return value %d", ret); in ZTEST()
109 ret = bt_audio_codec_cfg_get_val(&codec_cfg, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
110 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
149 int ret; in ZTEST() local
151 ret = bt_audio_codec_cfg_get_freq(&preset.codec_cfg); in ZTEST()
152 zassert_equal(ret, 0x03, "unexpected return value %d", ret); in ZTEST()
160 int ret; in ZTEST() local
165 ret = bt_audio_codec_cfg_get_frame_blocks_per_sdu(&preset.codec_cfg, false); in ZTEST()
166 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
168 ret = bt_audio_codec_cfg_set_frame_blocks_per_sdu(&preset.codec_cfg, frame_blocks); in ZTEST()
169 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
171 ret = bt_audio_codec_cfg_get_frame_blocks_per_sdu(&preset.codec_cfg, false); in ZTEST()
172 zassert_equal(ret, frame_blocks, "Unexpected return value %d", ret); in ZTEST()
179 int ret; in ZTEST() local
181 ret = bt_audio_codec_cfg_get_freq(&preset.codec_cfg); in ZTEST()
182 zassert_equal(ret, 0x03, "Unexpected return value %d", ret); in ZTEST()
184 ret = bt_audio_codec_cfg_set_freq(&preset.codec_cfg, BT_AUDIO_CODEC_CFG_FREQ_32KHZ); in ZTEST()
185 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
187 ret = bt_audio_codec_cfg_get_freq(&preset.codec_cfg); in ZTEST()
188 zassert_equal(ret, 0x06, "Unexpected return value %d", ret); in ZTEST()
218 int ret; in ZTEST() local
220 ret = bt_audio_codec_cfg_get_frame_dur(&preset.codec_cfg); in ZTEST()
221 zassert_equal(ret, 0x01, "unexpected return value %d", ret); in ZTEST()
228 int ret; in ZTEST() local
230 ret = bt_audio_codec_cfg_get_frame_dur(&preset.codec_cfg); in ZTEST()
231 zassert_equal(ret, 0x01, "Unexpected return value %d", ret); in ZTEST()
233 ret = bt_audio_codec_cfg_set_frame_dur(&preset.codec_cfg, in ZTEST()
235 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
237 ret = bt_audio_codec_cfg_get_frame_dur(&preset.codec_cfg); in ZTEST()
238 zassert_equal(ret, 0x00, "Unexpected return value %d", ret); in ZTEST()
324 int ret; in ZTEST() local
326 ret = bt_audio_codec_cfg_get_octets_per_frame(&preset.codec_cfg); in ZTEST()
327 zassert_equal(ret, 80u, "unexpected return value %d", ret); in ZTEST()
334 int ret; in ZTEST() local
336 ret = bt_audio_codec_cfg_get_octets_per_frame(&preset.codec_cfg); in ZTEST()
337 zassert_equal(ret, 80, "Unexpected return value %d", ret); in ZTEST()
339 ret = bt_audio_codec_cfg_set_octets_per_frame(&preset.codec_cfg, 120); in ZTEST()
340 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
342 ret = bt_audio_codec_cfg_get_octets_per_frame(&preset.codec_cfg); in ZTEST()
343 zassert_equal(ret, 120, "Unexpected return value %d", ret); in ZTEST()
351 int ret; in ZTEST() local
353 ret = bt_audio_codec_cfg_get_frame_blocks_per_sdu(&preset.codec_cfg, true); in ZTEST()
354 zassert_equal(ret, 1u, "unexpected return value %d", ret); in ZTEST()
397 int ret; in ZTEST() local
399 ret = bt_audio_codec_cfg_get_frame_blocks_per_sdu(&preset.codec_cfg, true); in ZTEST()
400 zassert_equal(ret, 1, "Unexpected return value %d", ret); in ZTEST()
402 ret = bt_audio_codec_cfg_set_frame_blocks_per_sdu(&preset.codec_cfg, 2U); in ZTEST()
403 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
405 ret = bt_audio_codec_cfg_get_frame_blocks_per_sdu(&preset.codec_cfg, true); in ZTEST()
406 zassert_equal(ret, 2, "Unexpected return value %d", ret); in ZTEST()
417 int ret; in ZTEST() local
419 ret = bt_audio_codec_cfg_meta_get_val(&codec_cfg, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
421 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
422 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
434 int ret; in ZTEST() local
436 ret = bt_audio_codec_cfg_meta_get_val(&codec_cfg, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
438 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
439 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
441 ret = bt_audio_codec_cfg_meta_set_val(&codec_cfg, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
443 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
445 ret = bt_audio_codec_cfg_meta_get_val(&codec_cfg, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
447 zassert_equal(ret, sizeof(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
457 int ret; in ZTEST() local
459 ret = bt_audio_codec_cfg_meta_get_val(&codec_cfg, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
461 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
463 ret = bt_audio_codec_cfg_meta_set_val(&codec_cfg, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
465 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
467 ret = bt_audio_codec_cfg_meta_get_val(&codec_cfg, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
469 zassert_equal(ret, sizeof(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
470 zassert_equal(data[0], new_expected_data, "Unexpected return value %d", ret); in ZTEST()
481 int ret; in ZTEST() local
483 ret = bt_audio_codec_cfg_meta_get_val(&codec_cfg, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
485 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
486 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
488 ret = bt_audio_codec_cfg_meta_unset_val(&codec_cfg, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING); in ZTEST()
489 zassert_true(ret >= 0, "Unexpected return value %d", ret); in ZTEST()
491 ret = bt_audio_codec_cfg_meta_get_val(&codec_cfg, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
493 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
504 int ret; in ZTEST() local
506 ret = bt_audio_codec_cfg_meta_get_pref_context(&codec_cfg, false); in ZTEST()
507 zassert_equal(ret, 0x0005, "unexpected return value %d", ret); in ZTEST()
555 int ret; in ZTEST() local
557 ret = bt_audio_codec_cfg_meta_get_pref_context(&codec_cfg, false); in ZTEST()
558 zassert_equal(ret, 0x0005, "Unexpected return value %d", ret); in ZTEST()
560 ret = bt_audio_codec_cfg_meta_set_pref_context(&codec_cfg, new_ctx); in ZTEST()
561 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
563 ret = bt_audio_codec_cfg_meta_get_pref_context(&codec_cfg, false); in ZTEST()
564 zassert_equal(ret, 0x0100, "Unexpected return value %d", ret); in ZTEST()
575 int ret; in ZTEST() local
577 ret = bt_audio_codec_cfg_meta_get_stream_context(&codec_cfg); in ZTEST()
578 zassert_equal(ret, 0x0005, "unexpected return value %d", ret); in ZTEST()
588 int ret; in ZTEST() local
590 ret = bt_audio_codec_cfg_meta_get_stream_context(&codec_cfg); in ZTEST()
591 zassert_equal(ret, 0x0005, "Unexpected return value %d", ret); in ZTEST()
594 ret = bt_audio_codec_cfg_meta_set_stream_context(&codec_cfg, ctx); in ZTEST()
595 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
597 ret = bt_audio_codec_cfg_meta_get_stream_context(&codec_cfg); in ZTEST()
598 zassert_equal(ret, 0x0100, "Unexpected return value %d", ret); in ZTEST()
611 int ret; in ZTEST() local
613 ret = bt_audio_codec_cfg_meta_get_program_info(&codec_cfg, &program_data); in ZTEST()
614 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
628 int ret; in ZTEST() local
630 ret = bt_audio_codec_cfg_meta_get_program_info(&codec_cfg, &program_data); in ZTEST()
631 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
634 ret = bt_audio_codec_cfg_meta_set_program_info(&codec_cfg, new_expected_data, in ZTEST()
636 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
638 ret = bt_audio_codec_cfg_meta_get_program_info(&codec_cfg, &program_data); in ZTEST()
639 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
650 int ret; in ZTEST() local
652 ret = bt_audio_codec_cfg_meta_get_lang(&codec_cfg, &lang); in ZTEST()
653 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
665 int ret; in ZTEST() local
667 ret = bt_audio_codec_cfg_meta_get_lang(&codec_cfg, &lang); in ZTEST()
668 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
671 ret = bt_audio_codec_cfg_meta_set_lang(&codec_cfg, new_expected_data); in ZTEST()
672 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
674 ret = bt_audio_codec_cfg_meta_get_lang(&codec_cfg, &lang); in ZTEST()
675 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
686 int ret; in ZTEST() local
688 ret = bt_audio_codec_cfg_meta_get_ccid_list(&codec_cfg, &ccid_list); in ZTEST()
689 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
701 int ret; in ZTEST() local
703 ret = bt_audio_codec_cfg_meta_get_ccid_list(&codec_cfg, &ccid_list); in ZTEST()
704 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
707 ret = bt_audio_codec_cfg_meta_set_ccid_list(&codec_cfg, new_expected_data, in ZTEST()
709 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
711 ret = bt_audio_codec_cfg_meta_get_ccid_list(&codec_cfg, &ccid_list); in ZTEST()
712 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
724 int ret; in ZTEST() local
726 ret = bt_audio_codec_cfg_meta_get_ccid_list(&codec_cfg, &ccid_list); in ZTEST()
727 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
730 ret = bt_audio_codec_cfg_meta_set_ccid_list(&codec_cfg, new_expected_data, in ZTEST()
732 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
734 ret = bt_audio_codec_cfg_meta_get_ccid_list(&codec_cfg, &ccid_list); in ZTEST()
735 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
756 int ret; in ZTEST() local
758 ret = bt_audio_codec_cfg_meta_get_ccid_list(&codec_cfg, &ccid_list); in ZTEST()
759 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
762 ret = bt_audio_codec_cfg_meta_get_parental_rating(&codec_cfg); in ZTEST()
763 zassert_equal(ret, 0x07, "Unexpected return value %d", ret); in ZTEST()
765 ret = bt_audio_codec_cfg_meta_set_ccid_list(&codec_cfg, new_expected_data, in ZTEST()
767 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
769 ret = bt_audio_codec_cfg_meta_get_ccid_list(&codec_cfg, &ccid_list); in ZTEST()
770 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
773 ret = bt_audio_codec_cfg_meta_get_parental_rating(&codec_cfg); in ZTEST()
774 zassert_equal(ret, 0x07, "Unexpected return value %d", ret); in ZTEST()
784 int ret; in ZTEST() local
786 ret = bt_audio_codec_cfg_meta_get_ccid_list(&codec_cfg, &ccid_list); in ZTEST()
787 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
790 ret = bt_audio_codec_cfg_meta_get_parental_rating(&codec_cfg); in ZTEST()
791 zassert_equal(ret, 0x07, "Unexpected return value %d", ret); in ZTEST()
793 ret = bt_audio_codec_cfg_meta_set_ccid_list(&codec_cfg, new_expected_data, in ZTEST()
795 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
797 ret = bt_audio_codec_cfg_meta_get_ccid_list(&codec_cfg, &ccid_list); in ZTEST()
798 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
801 ret = bt_audio_codec_cfg_meta_get_parental_rating(&codec_cfg); in ZTEST()
802 zassert_equal(ret, 0x07, "Unexpected return value %d", ret); in ZTEST()
811 int ret; in ZTEST() local
813 ret = bt_audio_codec_cfg_meta_get_parental_rating(&codec_cfg); in ZTEST()
814 zassert_equal(ret, 0x07, "Unexpected return value %d", ret); in ZTEST()
823 int ret; in ZTEST() local
825 ret = bt_audio_codec_cfg_meta_get_parental_rating(&codec_cfg); in ZTEST()
826 zassert_equal(ret, 0x07, "Unexpected return value %d", ret); in ZTEST()
828 ret = bt_audio_codec_cfg_meta_set_parental_rating(&codec_cfg, in ZTEST()
830 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
832 ret = bt_audio_codec_cfg_meta_get_parental_rating(&codec_cfg); in ZTEST()
833 zassert_equal(ret, 0x0a, "Unexpected return value %d", ret); in ZTEST()
844 int ret; in ZTEST() local
846 ret = bt_audio_codec_cfg_meta_get_program_info_uri(&codec_cfg, &program_info_uri); in ZTEST()
847 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
860 int ret; in ZTEST() local
862 ret = bt_audio_codec_cfg_meta_get_program_info_uri(&codec_cfg, &program_info_uri); in ZTEST()
863 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
866 ret = bt_audio_codec_cfg_meta_set_program_info_uri(&codec_cfg, new_expected_data, in ZTEST()
868 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
870 ret = bt_audio_codec_cfg_meta_get_program_info_uri(&codec_cfg, &program_info_uri); in ZTEST()
871 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
881 int ret; in ZTEST() local
883 ret = bt_audio_codec_cfg_meta_get_audio_active_state(&codec_cfg); in ZTEST()
884 zassert_equal(ret, 0x01, "Unexpected return value %d", ret); in ZTEST()
893 int ret; in ZTEST() local
895 ret = bt_audio_codec_cfg_meta_get_audio_active_state(&codec_cfg); in ZTEST()
896 zassert_equal(ret, 0x01, "Unexpected return value %d", ret); in ZTEST()
898 ret = bt_audio_codec_cfg_meta_set_audio_active_state(&codec_cfg, in ZTEST()
900 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
902 ret = bt_audio_codec_cfg_meta_get_audio_active_state(&codec_cfg); in ZTEST()
903 zassert_equal(ret, 0x00, "Unexpected return value %d", ret); in ZTEST()
911 int ret; in ZTEST() local
913 ret = bt_audio_codec_cfg_meta_get_bcast_audio_immediate_rend_flag(&codec_cfg); in ZTEST()
914 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
921 int ret; in ZTEST() local
923 ret = bt_audio_codec_cfg_meta_get_bcast_audio_immediate_rend_flag(&codec_cfg); in ZTEST()
924 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
926 ret = bt_audio_codec_cfg_meta_set_bcast_audio_immediate_rend_flag(&codec_cfg); in ZTEST()
927 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
929 ret = bt_audio_codec_cfg_meta_get_bcast_audio_immediate_rend_flag(&codec_cfg); in ZTEST()
930 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
939 int ret; in ZTEST() local
941 ret = bt_audio_codec_cfg_meta_get_assisted_listening_stream(&codec_cfg); in ZTEST()
942 zassert_equal(ret, 0x00, "Unexpected return value %d", ret); in ZTEST()
949 int ret; in ZTEST() local
951 ret = bt_audio_codec_cfg_meta_get_assisted_listening_stream(&codec_cfg); in ZTEST()
952 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
954 ret = bt_audio_codec_cfg_meta_set_assisted_listening_stream( in ZTEST()
956 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
958 ret = bt_audio_codec_cfg_meta_get_assisted_listening_stream(&codec_cfg); in ZTEST()
959 zassert_equal(ret, 0x00, "Unexpected return value %d", ret); in ZTEST()
970 int ret; in ZTEST() local
972 ret = bt_audio_codec_cfg_meta_get_broadcast_name(&codec_cfg, &broadcast_name); in ZTEST()
973 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
986 int ret; in ZTEST() local
988 ret = bt_audio_codec_cfg_meta_get_broadcast_name(&codec_cfg, &broadcast_name); in ZTEST()
989 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
992 ret = bt_audio_codec_cfg_meta_set_broadcast_name(&codec_cfg, new_expected_data, in ZTEST()
994 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
996 ret = bt_audio_codec_cfg_meta_get_broadcast_name(&codec_cfg, &broadcast_name); in ZTEST()
997 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
1008 int ret; in ZTEST() local
1010 ret = bt_audio_codec_cfg_meta_get_extended(&codec_cfg, &extended_meta); in ZTEST()
1011 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1023 int ret; in ZTEST() local
1025 ret = bt_audio_codec_cfg_meta_get_extended(&codec_cfg, &extended_meta); in ZTEST()
1026 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1029 ret = bt_audio_codec_cfg_meta_set_extended(&codec_cfg, new_expected_data, in ZTEST()
1031 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1033 ret = bt_audio_codec_cfg_meta_get_extended(&codec_cfg, &extended_meta); in ZTEST()
1034 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
1045 int ret; in ZTEST() local
1047 ret = bt_audio_codec_cfg_meta_get_vendor(&codec_cfg, &vendor_meta); in ZTEST()
1048 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1060 int ret; in ZTEST() local
1062 ret = bt_audio_codec_cfg_meta_get_vendor(&codec_cfg, &extended_meta); in ZTEST()
1063 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1066 ret = bt_audio_codec_cfg_meta_set_vendor(&codec_cfg, new_expected_data, in ZTEST()
1068 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1070 ret = bt_audio_codec_cfg_meta_get_vendor(&codec_cfg, &extended_meta); in ZTEST()
1071 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
1084 int ret; in ZTEST() local
1086 ret = bt_audio_codec_cap_get_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, &data); in ZTEST()
1087 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
1088 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
1101 int ret; in ZTEST() local
1103 ret = bt_audio_codec_cap_get_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, &data); in ZTEST()
1104 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
1105 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
1107 ret = bt_audio_codec_cap_set_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, in ZTEST()
1109 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1111 ret = bt_audio_codec_cap_get_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, &data); in ZTEST()
1112 zassert_equal(ret, sizeof(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
1122 int ret; in ZTEST() local
1124 ret = bt_audio_codec_cap_get_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, &data); in ZTEST()
1125 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
1127 ret = bt_audio_codec_cap_set_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, in ZTEST()
1129 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1131 ret = bt_audio_codec_cap_get_val(&codec_cap, BT_AUDIO_CODEC_CAP_TYPE_FREQ, &data); in ZTEST()
1132 zassert_equal(ret, sizeof(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
1133 zassert_equal(data[0], new_expected_data, "Unexpected return value %d", ret); in ZTEST()
1145 int ret; in ZTEST() local
1147 ret = bt_audio_codec_cap_get_val(&codec_cap, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
1148 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
1149 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
1151 ret = bt_audio_codec_cap_unset_val(&codec_cap, BT_AUDIO_CODEC_CFG_FREQ); in ZTEST()
1152 zassert_true(ret >= 0, "Unexpected return value %d", ret); in ZTEST()
1154 ret = bt_audio_codec_cap_get_val(&codec_cap, BT_AUDIO_CODEC_CFG_FREQ, &data); in ZTEST()
1155 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
1165 int ret; in ZTEST() local
1167 ret = bt_audio_codec_cap_get_freq(&codec_cap); in ZTEST()
1168 zassert_equal(ret, 4, "Unexpected return value %d", ret); in ZTEST()
1178 int ret; in ZTEST() local
1180 ret = bt_audio_codec_cap_get_freq(&codec_cap); in ZTEST()
1181 zassert_equal(ret, 4, "Unexpected return value %d", ret); in ZTEST()
1183 ret = bt_audio_codec_cap_set_freq(&codec_cap, BT_AUDIO_CODEC_CAP_FREQ_22KHZ); in ZTEST()
1184 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1186 ret = bt_audio_codec_cap_get_freq(&codec_cap); in ZTEST()
1187 zassert_equal(ret, 8, "Unexpected return value %d", ret); in ZTEST()
1197 int ret; in ZTEST() local
1199 ret = bt_audio_codec_cap_get_frame_dur(&codec_cap); in ZTEST()
1200 zassert_equal(ret, 2, "Unexpected return value %d", ret); in ZTEST()
1210 int ret; in ZTEST() local
1212 ret = bt_audio_codec_cap_get_frame_dur(&codec_cap); in ZTEST()
1213 zassert_equal(ret, 2, "Unexpected return value %d", ret); in ZTEST()
1215 ret = bt_audio_codec_cap_set_frame_dur(&codec_cap, BT_AUDIO_CODEC_CAP_DURATION_7_5); in ZTEST()
1216 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1218 ret = bt_audio_codec_cap_get_frame_dur(&codec_cap); in ZTEST()
1219 zassert_equal(ret, 1, "Unexpected return value %d", ret); in ZTEST()
1229 int ret; in ZTEST() local
1231 ret = bt_audio_codec_cap_get_supported_audio_chan_counts(&codec_cap, false); in ZTEST()
1232 zassert_equal(ret, 2, "Unexpected return value %d", ret); in ZTEST()
1281 int ret; in ZTEST() local
1283 ret = bt_audio_codec_cap_get_supported_audio_chan_counts(&codec_cap, false); in ZTEST()
1284 zassert_equal(ret, 1, "Unexpected return value %d", ret); in ZTEST()
1286 ret = bt_audio_codec_cap_set_supported_audio_chan_counts( in ZTEST()
1288 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1290 ret = bt_audio_codec_cap_get_supported_audio_chan_counts(&codec_cap, false); in ZTEST()
1291 zassert_equal(ret, 2, "Unexpected return value %d", ret); in ZTEST()
1306 int ret; in ZTEST() local
1308 ret = bt_audio_codec_cap_get_octets_per_frame(&codec_cap, &codec_frame); in ZTEST()
1309 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
1323 int ret; in ZTEST() local
1325 ret = bt_audio_codec_cap_get_octets_per_frame(&codec_cap, &codec_frame); in ZTEST()
1326 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
1332 ret = bt_audio_codec_cap_set_octets_per_frame(&codec_cap, &codec_frame); in ZTEST()
1333 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1335 ret = bt_audio_codec_cap_get_octets_per_frame(&codec_cap, &codec_frame); in ZTEST()
1336 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
1348 int ret; in ZTEST() local
1350 ret = bt_audio_codec_cap_get_max_codec_frames_per_sdu(&codec_cap, false); in ZTEST()
1351 zassert_equal(ret, 2, "Unexpected return value %d", ret); in ZTEST()
1399 int ret; in ZTEST() local
1401 ret = bt_audio_codec_cap_get_max_codec_frames_per_sdu(&codec_cap, false); in ZTEST()
1402 zassert_equal(ret, 2, "Unexpected return value %d", ret); in ZTEST()
1404 ret = bt_audio_codec_cap_set_max_codec_frames_per_sdu(&codec_cap, 4U); in ZTEST()
1405 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1407 ret = bt_audio_codec_cap_get_max_codec_frames_per_sdu(&codec_cap, false); in ZTEST()
1408 zassert_equal(ret, 4, "Unexpected return value %d", ret); in ZTEST()
1419 int ret; in ZTEST() local
1421 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
1423 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
1424 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
1436 int ret; in ZTEST() local
1438 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
1440 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
1441 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
1443 ret = bt_audio_codec_cap_meta_set_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
1445 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1447 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
1449 zassert_equal(ret, sizeof(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
1459 int ret; in ZTEST() local
1461 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
1463 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
1465 ret = bt_audio_codec_cap_meta_set_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
1467 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1469 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
1471 zassert_equal(ret, sizeof(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
1472 zassert_equal(data[0], new_expected_data, "Unexpected return value %d", ret); in ZTEST()
1483 int ret; in ZTEST() local
1485 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
1487 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
1488 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
1490 ret = bt_audio_codec_cap_meta_unset_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING); in ZTEST()
1491 zassert_true(ret >= 0, "Unexpected return value %d", ret); in ZTEST()
1493 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
1495 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
1517 int ret; in ZTEST() local
1519 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
1521 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
1522 zassert_equal(data[0], expected_data, "Unexpected return value %d", ret); in ZTEST()
1524 ret = bt_audio_codec_cap_meta_unset_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING); in ZTEST()
1525 zassert_true(ret >= 0, "Unexpected return value %d", ret); in ZTEST()
1527 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PARENTAL_RATING, in ZTEST()
1529 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
1538 int ret; in ZTEST() local
1540 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PREF_CONTEXT, in ZTEST()
1542 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
1543 zassert_equal(sys_get_le16(data), expected_data, "Unexpected return value %d", ret); in ZTEST()
1545 ret = bt_audio_codec_cap_meta_unset_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PREF_CONTEXT); in ZTEST()
1546 zassert_true(ret >= 0, "Unexpected return value %d", ret); in ZTEST()
1548 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_PREF_CONTEXT, in ZTEST()
1550 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
1559 int ret; in ZTEST() local
1561 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_STREAM_CONTEXT, in ZTEST()
1563 zassert_equal(ret, sizeof(expected_data), "Unexpected return value %d", ret); in ZTEST()
1564 zassert_equal(sys_get_le16(data), expected_data, "Unexpected return value %d", ret); in ZTEST()
1566 ret = bt_audio_codec_cap_meta_unset_val(&codec_cap, BT_AUDIO_METADATA_TYPE_STREAM_CONTEXT); in ZTEST()
1567 zassert_true(ret >= 0, "Unexpected return value %d", ret); in ZTEST()
1569 ret = bt_audio_codec_cap_meta_get_val(&codec_cap, BT_AUDIO_METADATA_TYPE_STREAM_CONTEXT, in ZTEST()
1571 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
1582 int ret; in ZTEST() local
1584 ret = bt_audio_codec_cap_meta_get_pref_context(&codec_cap); in ZTEST()
1585 zassert_equal(ret, 0x0005, "unexpected return value %d", ret); in ZTEST()
1597 int ret; in ZTEST() local
1599 ret = bt_audio_codec_cap_meta_get_pref_context(&codec_cap); in ZTEST()
1600 zassert_equal(ret, 0x0005, "Unexpected return value %d", ret); in ZTEST()
1602 ret = bt_audio_codec_cap_meta_set_pref_context(&codec_cap, new_ctx); in ZTEST()
1603 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1605 ret = bt_audio_codec_cap_meta_get_pref_context(&codec_cap); in ZTEST()
1606 zassert_equal(ret, 0x0100, "Unexpected return value %d", ret); in ZTEST()
1617 int ret; in ZTEST() local
1619 ret = bt_audio_codec_cap_meta_get_stream_context(&codec_cap); in ZTEST()
1620 zassert_equal(ret, 0x0005, "unexpected return value %d", ret); in ZTEST()
1630 int ret; in ZTEST() local
1632 ret = bt_audio_codec_cap_meta_get_stream_context(&codec_cap); in ZTEST()
1633 zassert_equal(ret, 0x0005, "Unexpected return value %d", ret); in ZTEST()
1636 ret = bt_audio_codec_cap_meta_set_stream_context(&codec_cap, ctx); in ZTEST()
1637 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1639 ret = bt_audio_codec_cap_meta_get_stream_context(&codec_cap); in ZTEST()
1640 zassert_equal(ret, 0x0100, "Unexpected return value %d", ret); in ZTEST()
1653 int ret; in ZTEST() local
1655 ret = bt_audio_codec_cap_meta_get_program_info(&codec_cap, &program_data); in ZTEST()
1656 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1670 int ret; in ZTEST() local
1672 ret = bt_audio_codec_cap_meta_get_program_info(&codec_cap, &program_data); in ZTEST()
1673 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1676 ret = bt_audio_codec_cap_meta_set_program_info(&codec_cap, new_expected_data, in ZTEST()
1678 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1680 ret = bt_audio_codec_cap_meta_get_program_info(&codec_cap, &program_data); in ZTEST()
1681 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
1692 int ret; in ZTEST() local
1694 ret = bt_audio_codec_cap_meta_get_lang(&codec_cap, &lang); in ZTEST()
1695 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
1707 int ret; in ZTEST() local
1709 ret = bt_audio_codec_cap_meta_get_lang(&codec_cap, &lang); in ZTEST()
1710 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
1713 ret = bt_audio_codec_cap_meta_set_lang(&codec_cap, new_expected_data); in ZTEST()
1714 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1716 ret = bt_audio_codec_cap_meta_get_lang(&codec_cap, &lang); in ZTEST()
1717 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
1728 int ret; in ZTEST() local
1730 ret = bt_audio_codec_cap_meta_get_ccid_list(&codec_cap, &ccid_list); in ZTEST()
1731 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1743 int ret; in ZTEST() local
1745 ret = bt_audio_codec_cap_meta_get_ccid_list(&codec_cap, &ccid_list); in ZTEST()
1746 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1749 ret = bt_audio_codec_cap_meta_set_ccid_list(&codec_cap, new_expected_data, in ZTEST()
1751 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1753 ret = bt_audio_codec_cap_meta_get_ccid_list(&codec_cap, &ccid_list); in ZTEST()
1754 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
1764 int ret; in ZTEST() local
1766 ret = bt_audio_codec_cap_meta_get_parental_rating(&codec_cap); in ZTEST()
1767 zassert_equal(ret, 0x07, "Unexpected return value %d", ret); in ZTEST()
1776 int ret; in ZTEST() local
1778 ret = bt_audio_codec_cap_meta_get_parental_rating(&codec_cap); in ZTEST()
1779 zassert_equal(ret, 0x07, "Unexpected return value %d", ret); in ZTEST()
1781 ret = bt_audio_codec_cap_meta_set_parental_rating(&codec_cap, in ZTEST()
1783 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1785 ret = bt_audio_codec_cap_meta_get_parental_rating(&codec_cap); in ZTEST()
1786 zassert_equal(ret, 0x0a, "Unexpected return value %d", ret); in ZTEST()
1797 int ret; in ZTEST() local
1799 ret = bt_audio_codec_cap_meta_get_program_info_uri(&codec_cap, &program_info_uri); in ZTEST()
1800 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1813 int ret; in ZTEST() local
1815 ret = bt_audio_codec_cap_meta_get_program_info_uri(&codec_cap, &program_info_uri); in ZTEST()
1816 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1819 ret = bt_audio_codec_cap_meta_set_program_info_uri(&codec_cap, new_expected_data, in ZTEST()
1821 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1823 ret = bt_audio_codec_cap_meta_get_program_info_uri(&codec_cap, &program_info_uri); in ZTEST()
1824 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
1834 int ret; in ZTEST() local
1836 ret = bt_audio_codec_cap_meta_get_audio_active_state(&codec_cap); in ZTEST()
1837 zassert_equal(ret, 0x01, "Unexpected return value %d", ret); in ZTEST()
1846 int ret; in ZTEST() local
1848 ret = bt_audio_codec_cap_meta_get_audio_active_state(&codec_cap); in ZTEST()
1849 zassert_equal(ret, 0x01, "Unexpected return value %d", ret); in ZTEST()
1851 ret = bt_audio_codec_cap_meta_set_audio_active_state(&codec_cap, in ZTEST()
1853 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1855 ret = bt_audio_codec_cap_meta_get_audio_active_state(&codec_cap); in ZTEST()
1856 zassert_equal(ret, 0x00, "Unexpected return value %d", ret); in ZTEST()
1864 int ret; in ZTEST() local
1866 ret = bt_audio_codec_cap_meta_get_bcast_audio_immediate_rend_flag(&codec_cap); in ZTEST()
1867 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
1874 int ret; in ZTEST() local
1876 ret = bt_audio_codec_cap_meta_get_bcast_audio_immediate_rend_flag(&codec_cap); in ZTEST()
1877 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
1879 ret = bt_audio_codec_cap_meta_set_bcast_audio_immediate_rend_flag(&codec_cap); in ZTEST()
1880 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1882 ret = bt_audio_codec_cap_meta_get_bcast_audio_immediate_rend_flag(&codec_cap); in ZTEST()
1883 zassert_equal(ret, 0, "Unexpected return value %d", ret); in ZTEST()
1892 int ret; in ZTEST() local
1894 ret = bt_audio_codec_cap_meta_get_assisted_listening_stream(&codec_cap); in ZTEST()
1895 zassert_equal(ret, 0x00, "Unexpected return value %d", ret); in ZTEST()
1902 int ret; in ZTEST() local
1904 ret = bt_audio_codec_cap_meta_get_assisted_listening_stream(&codec_cap); in ZTEST()
1905 zassert_equal(ret, -ENODATA, "Unexpected return value %d", ret); in ZTEST()
1907 ret = bt_audio_codec_cap_meta_set_assisted_listening_stream( in ZTEST()
1909 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1911 ret = bt_audio_codec_cap_meta_get_assisted_listening_stream(&codec_cap); in ZTEST()
1912 zassert_equal(ret, 0x00, "Unexpected return value %d", ret); in ZTEST()
1923 int ret; in ZTEST() local
1925 ret = bt_audio_codec_cap_meta_get_broadcast_name(&codec_cap, &broadcast_name); in ZTEST()
1926 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1939 int ret; in ZTEST() local
1941 ret = bt_audio_codec_cap_meta_get_broadcast_name(&codec_cap, &broadcast_name); in ZTEST()
1942 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1945 ret = bt_audio_codec_cap_meta_set_broadcast_name(&codec_cap, new_expected_data, in ZTEST()
1947 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1949 ret = bt_audio_codec_cap_meta_get_broadcast_name(&codec_cap, &broadcast_name); in ZTEST()
1950 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
1961 int ret; in ZTEST() local
1963 ret = bt_audio_codec_cap_meta_get_extended(&codec_cap, &extended_meta); in ZTEST()
1964 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1976 int ret; in ZTEST() local
1978 ret = bt_audio_codec_cap_meta_get_extended(&codec_cap, &extended_meta); in ZTEST()
1979 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
1982 ret = bt_audio_codec_cap_meta_set_extended(&codec_cap, new_expected_data, in ZTEST()
1984 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
1986 ret = bt_audio_codec_cap_meta_get_extended(&codec_cap, &extended_meta); in ZTEST()
1987 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()
1998 int ret; in ZTEST() local
2000 ret = bt_audio_codec_cap_meta_get_vendor(&codec_cap, &vendor_meta); in ZTEST()
2001 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
2013 int ret; in ZTEST() local
2015 ret = bt_audio_codec_cap_meta_get_vendor(&codec_cap, &extended_meta); in ZTEST()
2016 zassert_equal(ret, ARRAY_SIZE(expected_data), "Unexpected return value %d", ret); in ZTEST()
2019 ret = bt_audio_codec_cap_meta_set_vendor(&codec_cap, new_expected_data, in ZTEST()
2021 zassert_true(ret > 0, "Unexpected return value %d", ret); in ZTEST()
2023 ret = bt_audio_codec_cap_meta_get_vendor(&codec_cap, &extended_meta); in ZTEST()
2024 zassert_equal(ret, ARRAY_SIZE(new_expected_data), "Unexpected return value %d", ret); in ZTEST()