Lines Matching refs:ctxExtract
534 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
536 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, buf, sizeof(buf)), 0); in TEST()
537 EXPECT_EQ(pldm_msgbuf_extract_int32(ctxExtract, checkVal), 0); in TEST()
540 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
570 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
572 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, buf, sizeof(buf)), 0); in TEST()
573 EXPECT_EQ(pldm_msgbuf_extract_uint32(ctxExtract, checkVal), 0); in TEST()
576 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
606 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
608 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, buf, sizeof(buf)), 0); in TEST()
609 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, checkVal), 0); in TEST()
612 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
642 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
644 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, buf, sizeof(buf)), 0); in TEST()
645 EXPECT_EQ(pldm_msgbuf_extract_int16(ctxExtract, checkVal), 0); in TEST()
648 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
678 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
680 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, buf, sizeof(buf)), 0); in TEST()
681 EXPECT_EQ(pldm_msgbuf_extract_uint8(ctxExtract, checkVal), 0); in TEST()
684 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
714 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
716 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, buf, sizeof(buf)), 0); in TEST()
717 EXPECT_EQ(pldm_msgbuf_extract_int8(ctxExtract, checkVal), 0); in TEST()
720 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
751 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
753 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, buf, sizeof(buf)), 0); in TEST()
754 EXPECT_EQ(pldm_msgbuf_extract_array_uint8(ctxExtract, sizeof(retBuff), in TEST()
759 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
791 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
793 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, buf, sizeof(buf)), 0); in TEST()
794 EXPECT_EQ(pldm_msgbuf_extract_array_char(ctxExtract, sizeof(retBuff), in TEST()
799 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
833 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
835 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, buf, sizeof(buf)), 0); in TEST()
836 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
837 EXPECT_EQ(pldm_msgbuf_span_required(ctxExtract, required, (void**)&retBuff), in TEST()
841 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
860 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
862 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, buf, sizeof(buf)), 0); in TEST()
863 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
864 EXPECT_EQ(pldm_msgbuf_span_required(ctxExtract, required, NULL), 0); in TEST()
866 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
887 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
895 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, src, sizeof(src)), 0); in TEST()
896 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
898 EXPECT_EQ(pldm_msgbuf_span_string_ascii(ctxExtract, (void**)&retBuff, NULL), in TEST()
900 EXPECT_EQ(pldm_msgbuf_extract_uint8(ctxExtract, testVal1), 0); in TEST()
905 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
911 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
920 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, src, sizeof(src)), 0); in TEST()
921 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
924 pldm_msgbuf_span_string_ascii(ctxExtract, (void**)&retBuff, &length), in TEST()
926 EXPECT_EQ(pldm_msgbuf_extract_uint8(ctxExtract, testVal1), 0); in TEST()
933 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
939 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
943 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, src, sizeof(src)), 0); in TEST()
944 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
946 EXPECT_EQ(pldm_msgbuf_span_string_ascii(ctxExtract, NULL, NULL), 0); in TEST()
947 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
953 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
958 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, src, sizeof(src)), 0); in TEST()
959 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
961 EXPECT_EQ(pldm_msgbuf_span_string_ascii(ctxExtract, (void**)&retBuff, NULL), in TEST()
963 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), -EOVERFLOW); in TEST()
969 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
974 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, src, 0), 0); in TEST()
975 ctxExtract->remaining = INTMAX_MIN; in TEST()
976 EXPECT_NE(pldm_msgbuf_span_string_ascii(ctxExtract, (void**)&retBuff, NULL), in TEST()
978 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), -EOVERFLOW); in TEST()
994 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
1004 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, src, sizeof(src)), 0); in TEST()
1005 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
1008 ASSERT_EQ(pldm_msgbuf_span_string_utf16(ctxExtract, (void**)&retBuff, NULL), in TEST()
1010 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal1), 0); in TEST()
1016 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
1022 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
1036 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, src, sizeof(src)), 0); in TEST()
1037 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
1040 EXPECT_EQ(pldm_msgbuf_span_string_utf16(ctxExtract, (void**)&retBuff, NULL), in TEST()
1049 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal1), 0); in TEST()
1053 pldm_msgbuf_span_string_utf16(ctxExtract, (void**)&retBuff1, &length), in TEST()
1059 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal1), 0); in TEST()
1062 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
1068 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
1073 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, src, sizeof(src)), 0); in TEST()
1074 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
1076 EXPECT_EQ(pldm_msgbuf_span_string_utf16(ctxExtract, NULL, NULL), 0); in TEST()
1077 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
1083 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
1089 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, src, sizeof(src)), 0); in TEST()
1090 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
1092 EXPECT_EQ(pldm_msgbuf_span_string_utf16(ctxExtract, (void**)&retBuff, NULL), in TEST()
1094 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), -EOVERFLOW); in TEST()
1100 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
1106 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, src, sizeof(src)), 0); in TEST()
1107 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
1109 EXPECT_EQ(pldm_msgbuf_span_string_utf16(ctxExtract, (void**)&retBuff, NULL), in TEST()
1111 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), -EOVERFLOW); in TEST()
1117 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
1144 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, src, sizeof(src)), 0); in TEST()
1145 EXPECT_EQ(pldm_msgbuf_extract_uint8(ctxExtract, name_count), 0); in TEST()
1148 EXPECT_EQ(pldm_msgbuf_span_string_ascii(ctxExtract, (void**)&tag, NULL), 0); in TEST()
1151 EXPECT_EQ(pldm_msgbuf_span_string_utf16(ctxExtract, (void**)&name, NULL), in TEST()
1159 EXPECT_EQ(pldm_msgbuf_span_string_ascii(ctxExtract, (void**)&tag1, &length), in TEST()
1163 pldm_msgbuf_span_string_utf16(ctxExtract, (void**)&name1, &length), 0); in TEST()
1167 EXPECT_EQ(pldm_msgbuf_span_string_ascii(ctxExtract, (void**)&tag2, NULL), in TEST()
1170 EXPECT_EQ(pldm_msgbuf_span_string_utf16(ctxExtract, (void**)&name2, NULL), in TEST()
1178 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, test_val), 0); in TEST()
1181 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
1187 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
1192 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, src, 0), 0); in TEST()
1193 ctxExtract->remaining = INTMAX_MIN; in TEST()
1194 EXPECT_NE(pldm_msgbuf_span_string_utf16(ctxExtract, (void**)&retBuff, NULL), in TEST()
1196 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), -EOVERFLOW); in TEST()
1215 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
1217 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, buf, sizeof(buf)), 0); in TEST()
1218 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
1220 pldm_msgbuf_span_remaining(ctxExtract, (void**)&retBuff, &remaining), in TEST()
1225 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()
1242 struct pldm_msgbuf* ctxExtract = &_ctxExtract; in TEST() local
1244 ASSERT_EQ(pldm_msgbuf_init_errno(ctxExtract, 0, buf, sizeof(buf)), 0); in TEST()
1245 EXPECT_EQ(pldm_msgbuf_extract_uint16(ctxExtract, testVal), 0); in TEST()
1247 EXPECT_EQ(pldm_msgbuf_destroy(ctxExtract), 0); in TEST()