H A D | test_pdu.c | 27 uint8_t teststr[] = { 0x40, 0x01, 0x93, 0x34 }; in t_parse_pdu1() local 43 uint8_t teststr[] = { 0x55, 0x69, 0x12, 0x34, 't', 'o', 'k', 'e', 'n' }; in t_parse_pdu2() local 60 uint8_t teststr[] in t_parse_pdu3() local 70 uint8_t teststr[] = { 0x59, 0x69, 0x12, 0x34, t_parse_pdu4() local 88 uint8_t teststr[] = { 0x55, 0x73, 0x12, 0x34, 't', 'o', 'k', 'e', t_parse_pdu5() local 110 uint8_t teststr[] = { 0x55, 0x73, 0x12, 0x34, 't', 'o', 'k', 'e', t_parse_pdu6() local 122 uint8_t teststr[] = { 0x55, 0x73, 0x12, 0x34, 't', 'o', 'k', 'e', t_parse_pdu7() local 147 uint8_t teststr[] = { 0x50, 0x73, 0x12, 0x34, t_parse_pdu8() local 171 uint8_t teststr[] = { 0x70, 0x00, 0x12, 0x34, 0xff }; t_parse_pdu9() local 181 uint8_t teststr[] = { 0x53, 0x73, 0x12, 0x34, 't', 'o', 'k', t_parse_pdu10() local 192 uint8_t teststr[] = { 0x60, 0x00, 0x12, 0x34 }; t_parse_pdu11() local 208 uint8_t teststr[] = { 0x70, 0x00, 0x12, 0x34 }; t_parse_pdu12() local 224 uint8_t teststr[] = { 0x70, 0x00, 0x12, 0x34, t_parse_pdu13() local 236 uint8_t teststr[] = { 0x60, 0x00, 0x12, 0x34, t_parse_pdu14() local 254 uint8_t teststr[] = { t_parse_pdu15() local 298 uint8_t teststr[] = { 0x5a, 0x0a, 0x5b, 0x5b }; t_parse_pdu16() local 316 uint8_t teststr[512] = { 0x40, 0x01, 0x93, 0x34 }; t_parse_pdu17() local 337 uint8_t teststr[] = { 0x45, 0x01, 0x12, 0x34, 't', 'o', 'k', 'e', 'n' }; t_encode_pdu1() local 393 uint8_t teststr[] = { 0x60, 0x99, 0x12, 0x34, 0x3d, 0x05, 0x66, 0x61, t_encode_pdu4() local 447 uint8_t teststr[] = { 0x68, 0x84, 0x12, 0x34, '1', '2', '3', '4', t_encode_pdu5() local 488 uint8_t teststr[] = { 0x50, 0x02, 0x12, 0x34, 0xff, '1', '2', '3', t_encode_pdu6() local 510 uint8_t teststr[] = { 0x40, 0x43, 0x12, 0x34 }; t_encode_pdu7() local 533 uint8_t teststr[] = { 0x42, 0x43, 0x12, 0x34, 0x00, 0x01, 0xff, 0x00 }; t_encode_pdu8() local 560 uint8_t teststr[] = { 0x60, 0x44, 0x12, 0x34, 0x48, 's', 'o', 'm', t_encode_pdu9() local 611 uint8_t teststr[] = { 0x62, 0x44, 0x12, 0x34, 0x00, 0x00, 0x8d, 0xf2, t_encode_pdu10() local 985 uint8_t teststr[] = { 0x62, 0x44, 0x12, 0x34, 0x00, 0x00, 0x8d, 0xf2, t_encode_pdu18() local [all...] |
H A D | test_options.c | 25 coap_str_const_t teststr = { 1, (const uint8_t *)"" }; in t_parse_option1() local 41 coap_str_const_t teststr = { 2, (const uint8_t *)"\xc1" }; in t_parse_option2() local 56 coap_str_const_t teststr = { 13, (const uint8_t *)"\\x3c\\x00\\x01\\x02\\x03\\x04" t_parse_option3() local 74 coap_str_const_t teststr = { 2, (const uint8_t *)"\\xf3" }; t_parse_option4() local 86 coap_str_const_t teststr = { 2, (const uint8_t *)"\\x3f" }; t_parse_option5() local 98 coap_str_const_t teststr = { 1, (const uint8_t *)"\\xff" }; t_parse_option6() local 110 coap_str_const_t teststr = { 2, (const uint8_t *)"\\xd0\\x07" }; t_parse_option7() local 124 coap_str_const_t teststr = { 3, (const uint8_t *)"\\xe0\\x01\\xff" }; t_parse_option8() local 138 coap_str_const_t teststr = { 3, (const uint8_t *)"\\xe0\\xfe\\xf2" }; t_parse_option9() local 151 coap_str_const_t teststr = { 3, (const uint8_t *)"\\xe0\\xff\\xff" }; t_parse_option10() local 163 coap_str_const_t teststr = { 1, (const uint8_t *)"\\xd0" }; t_parse_option11() local 175 coap_str_const_t teststr = { 3, (const uint8_t *)"\\xee\\xff\\x0b" }; t_parse_option12() local 188 coap_string_t teststr = { sizeof(_data), _data }; t_parse_option13() local 239 char teststr[] = { 0x00 }; t_encode_option1() local 251 uint8_t teststr[] = { 0x5d, 0xff }; t_encode_option2() local 263 uint8_t teststr[] = { 0xd1, 0x01 }; t_encode_option3() local 275 uint8_t teststr[] = { 0xdd, 0xff, 0xab }; t_encode_option4() local 287 uint8_t teststr[] = { 0xed, 0x13, 0x00, 0xff }; t_encode_option5() local 299 uint8_t teststr[] = { 0xee, 0xfe, 0xf2, 0xfe, 0xf2 }; t_encode_option6() local 311 uint8_t teststr[] = { 0x35, 'v', 'a', 'l', 'u', 'e' }; t_encode_option7() local 344 uint8_t teststr[] = { 0xe1, 0x00, 0x00 }; t_encode_option9() local 360 const uint8_t teststr[] = { 0x12, 'a', 'b' }; t_access_option1() local 367 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 1); t_access_option1() local 373 const uint8_t teststr[] = { 0xe2, 0x18, 0xfd, 'a', 'b' }; t_access_option2() local 380 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 3); t_access_option2() local 386 const uint8_t teststr[] = { 0xed, 0x18, 0x0a, 0x00, 'a', 'b', 'c', 'd', t_access_option3() local 396 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 4); t_access_option3() local 402 const uint8_t teststr[] = { 0xde, 0xff, 0xfe, 0xf2, 'a', 'b', 'c' }; t_access_option4() local 409 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 4); t_access_option4() local 415 const uint8_t teststr[] = { 0xee, 0xfe, 0xf2, 0x00, 0xdd, 'a', 'b', 'c' }; t_access_option5() local 422 CU_ASSERT_PTR_EQUAL_C(coap_opt_value((const coap_opt_t *)teststr), teststr + 5); t_access_option5() local 429 const uint8_t teststr[] = { 0xf2, 'a', 'b' }; t_access_option6() local 444 const uint8_t teststr[] = { 0x2f, 'a', 'b' }; t_access_option7() local [all...] |