• Home
  • Raw
  • Download

Lines Matching refs:teststr

27   uint8_t teststr[] = {  0x40, 0x01, 0x93, 0x34 };  in t_parse_pdu1()  local
30 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu1()
33 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu1()
43 uint8_t teststr[] = { 0x55, 0x69, 0x12, 0x34, 't', 'o', 'k', 'e', 'n' }; in t_parse_pdu2() local
46 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu2()
49 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu2()
54 CU_ASSERT(memcmp(pdu->token, teststr + 4, 5) == 0); in t_parse_pdu2()
60 uint8_t teststr[] = { 0x53, 0x69, 0x12, 0x34, 't', 'o', 'k', 'e', 'n' }; in t_parse_pdu3() local
63 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu3()
70 uint8_t teststr[] = { 0x59, 0x69, 0x12, 0x34, in t_parse_pdu4() local
74 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu4()
77 teststr[0] = 0x5f; in t_parse_pdu4()
79 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu4()
86 uint8_t teststr[] = { 0x55, 0x73, 0x12, 0x34, 't', 'o', 'k', 'e', in t_parse_pdu5() local
91 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu5()
94 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu5()
99 CU_ASSERT(memcmp(pdu->token, teststr + 4, 5) == 0); in t_parse_pdu5()
108 uint8_t teststr[] = { 0x55, 0x73, 0x12, 0x34, 't', 'o', 'k', 'e', in t_parse_pdu6() local
113 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu6()
120 uint8_t teststr[] = { 0x55, 0x73, 0x12, 0x34, 't', 'o', 'k', 'e', in t_parse_pdu7() local
126 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu7()
129 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu7()
134 CU_ASSERT(memcmp(pdu->token, teststr + 4, 5) == 0); in t_parse_pdu7()
139 CU_ASSERT(memcmp(pdu->data, teststr + 13, 7) == 0); in t_parse_pdu7()
145 uint8_t teststr[] = { 0x50, 0x73, 0x12, 0x34, in t_parse_pdu8() local
151 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu8()
154 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu8()
163 CU_ASSERT(memcmp(pdu->data, teststr + 5, 7) == 0); in t_parse_pdu8()
169 uint8_t teststr[] = { 0x70, 0x00, 0x12, 0x34, 0xff }; in t_parse_pdu9() local
172 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu9()
179 uint8_t teststr[] = { 0x53, 0x73, 0x12, 0x34, 't', 'o', 'k', in t_parse_pdu10() local
184 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu10()
190 uint8_t teststr[] = { 0x60, 0x00, 0x12, 0x34 }; in t_parse_pdu11() local
193 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu11()
196 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu11()
206 uint8_t teststr[] = { 0x70, 0x00, 0x12, 0x34 }; in t_parse_pdu12() local
209 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu12()
212 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu12()
222 uint8_t teststr[] = { 0x70, 0x00, 0x12, 0x34, in t_parse_pdu13() local
227 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu13()
234 uint8_t teststr[] = { 0x60, 0x00, 0x12, 0x34, in t_parse_pdu14() local
239 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu14()
252 uint8_t teststr[] = { in t_parse_pdu15() local
275 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu15()
295 uint8_t teststr[] = { 0x5a, 0x0a, 0x5b, 0x5b }; in t_parse_pdu16() local
297 testpdu = coap_pdu_init(0, 0, 0, sizeof(teststr)); in t_parse_pdu16()
300 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), testpdu); in t_parse_pdu16()
313 uint8_t teststr[512] = { 0x40, 0x01, 0x93, 0x34 }; in t_parse_pdu17() local
319 for (idx = 4; idx < sizeof(teststr) - 4; idx += 2) { in t_parse_pdu17()
320 teststr[idx] = 0xd0; /* 1 byte option delta follows */ in t_parse_pdu17()
321 teststr[idx + 1] = 0xff; /* option delta 268 */ in t_parse_pdu17()
324 result = coap_pdu_parse(COAP_PROTO_UDP, teststr, sizeof(teststr), pdu); in t_parse_pdu17()
334 uint8_t teststr[] = { 0x45, 0x01, 0x12, 0x34, 't', 'o', 'k', 'e', 'n' }; in t_encode_pdu1() local
348 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu1()
381 uint8_t teststr[] = { 0x60, 0x99, 0x12, 0x34, 0x3d, 0x05, 0x66, 0x61, in t_encode_pdu4() local
429 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu4()
435 uint8_t teststr[] = { 0x68, 0x84, 0x12, 0x34, '1', '2', '3', '4', in t_encode_pdu5() local
470 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu5()
476 uint8_t teststr[] = { 0x50, 0x02, 0x12, 0x34, 0xff, '1', '2', '3', in t_encode_pdu6() local
492 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu6()
498 uint8_t teststr[] = { 0x40, 0x43, 0x12, 0x34 }; in t_encode_pdu7() local
515 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu7()
521 uint8_t teststr[] = { 0x42, 0x43, 0x12, 0x34, 0x00, 0x01, 0xff, 0x00 }; in t_encode_pdu8() local
542 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu8()
548 uint8_t teststr[] = { 0x60, 0x44, 0x12, 0x34, 0x48, 's', 'o', 'm', in t_encode_pdu9() local
593 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu9()
599 uint8_t teststr[] = { 0x62, 0x44, 0x12, 0x34, 0x00, 0x00, 0x8d, 0xf2, in t_encode_pdu10() local
680 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu10()
965 uint8_t teststr[] = { 0x62, 0x44, 0x12, 0x34, 0x00, 0x00, 0x8d, 0xf2, in t_encode_pdu18() local
1044 CU_ASSERT(memcmp(pdu->token - 4, teststr, sizeof(teststr)) == 0); in t_encode_pdu18()