Home
last modified time | relevance | path

Searched refs:teststr (Results 1 - 15 of 15) sorted by relevance

/third_party/libcoap/tests/
H A Dtest_options.c25 coap_str_const_t teststr = { 1, (const uint8_t *)"" }; in t_parse_option1() local
30 /* result = coap_opt_parse(teststr.s, teststr.s + teststr.length, &option); */ in t_parse_option1()
31 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option1()
41 coap_str_const_t teststr = { 2, (const uint8_t *)"\xc1" }; in t_parse_option2() local
46 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option2()
50 CU_ASSERT(option.value == teststr in t_parse_option2()
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...]
H A Dtest_uri.c18 char teststr[] = "coap://[::1]/.well-known/core"; in t_parse_uri1() local
23 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri1()
42 char teststr[] = "coap://[::1]:8000/.well-known/core"; in t_parse_uri2() local
46 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri2()
65 char teststr[] = "coap://localhost/?foo&bla=fasel"; in t_parse_uri3() local
69 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri3()
87 char teststr[] in t_parse_uri4() local
97 char teststr[] = "coap://foo:100000"; t_parse_uri5() local
120 char teststr[] = "coap://134.102.218.2/.well-known/core"; t_parse_uri6() local
143 char teststr[] = "coap://foo.bar:5683/some_resource/with/multiple/segments"; t_parse_uri7() local
185 char teststr[] = "http://example.com/%7E%AB%13"; t_parse_uri8() local
202 char teststr[] = "http://example.com/%x"; t_parse_uri9() local
218 char teststr[] = "/absolute/path"; t_parse_uri10() local
241 char teststr[] = t_parse_uri11() local
283 char teststr[] = "coap://198.51.100.1:61616//%2F//?%2F%2F&?%26"; t_parse_uri12() local
357 char teststr[] = t_parse_uri14() local
380 char teststr[] = t_parse_uri15() local
396 char teststr[] = t_parse_uri16() local
411 char teststr[] = t_parse_uri17() local
573 uint8_t teststr[] = { 0x63, 0x6f, 0x61, 0x70, 0x3a, 0x2f, 0x2f, 0x86, 0x63, 0x6f, 0x61, 0x70, 0x3a, 0x2f, 0x2f }; t_parse_uri24() local
[all...]
H A Dtest_encode.c24 const coap_binary_t teststr = { 0, NULL }; in t_decode1() local
27 result = coap_decode_var_bytes(teststr.s, teststr.length); in t_decode1()
35 coap_binary_t teststr = { sizeof(data), data }; in t_decode2() local
38 result = coap_decode_var_bytes8(teststr.s, teststr.length); in t_decode2()
46 coap_binary_t teststr = { sizeof(data), data }; in t_decode3() local
49 result = coap_decode_var_bytes(teststr.s, teststr.length); in t_decode3()
57 coap_binary_t teststr in t_decode4() local
67 const coap_binary_t teststr = { 0, NULL }; t_decode5() local
78 coap_binary_t teststr = { sizeof(data), data }; t_decode6() local
89 coap_binary_t teststr = { sizeof(data), data }; t_decode7() local
100 coap_binary_t teststr = { sizeof(data), data }; t_decode8() local
[all...]
H A Dtest_wellknown.c39 char teststr[] = { /* </>;title="some attribute";ct=0 (31 chars) */ in t_wellknown1() local
53 for (offset = 0; offset < sizeof(teststr); offset++) { in t_wellknown1()
59 CU_ASSERT(result == sizeof(teststr) - offset); in t_wellknown1()
60 CU_ASSERT(buflen == sizeof(teststr)); in t_wellknown1()
61 CU_ASSERT(memcmp(buf, teststr + offset, sizeof(teststr) - offset) == 0); in t_wellknown1()
64 /* offset points behind teststr */ in t_wellknown1()
70 CU_ASSERT(buflen == sizeof(teststr)); in t_wellknown1()
78 CU_ASSERT(buflen == sizeof(teststr)); in t_wellknown1()
85 unsigned char buf[10]; /* smaller than teststr */ in t_wellknown2()
88 char teststr[] = { /* ,</abcd>;if="one";obs (21 chars) */ t_wellknown2() local
172 char teststr[] = { /* ,</abcd>;if="one";obs (21 chars) */ t_wellknown4() local
[all...]
H A Dtest_error_response.c30 uint8_t teststr[] = { in t_error_response1() local
46 CU_ASSERT(response->used_size == sizeof(teststr) - 4); in t_error_response1()
52 CU_ASSERT(memcmp(response->token - 4, teststr, sizeof(teststr)) == 0); in t_error_response1()
58 uint8_t teststr[] = { in t_error_response2() local
76 CU_ASSERT(response->used_size == sizeof(teststr) - 4); in t_error_response2()
81 CU_ASSERT(memcmp(response->token - 4, teststr, sizeof(teststr)) == 0); in t_error_response2()
88 uint8_t teststr[] = { in t_error_response3() local
109 CU_ASSERT(response->used_size == sizeof(teststr) in t_error_response3()
125 uint8_t teststr[] = { t_error_response4() local
165 uint8_t teststr[] = { t_error_response5() local
206 uint8_t teststr[] = { t_error_response6() local
247 uint8_t teststr[] = { t_error_response7() local
284 uint8_t teststr[] = { t_error_response8() local
[all...]
H A Dtest_pdu.c27 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[] 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...]
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/
H A DGlobalizationPreferences.java588 String teststr = result; in getDisplayName()
592 teststr = result.substring(sidx+1, eidx); in getDisplayName()
594 if (teststr.length() == 2) { in getDisplayName()
597 char c = teststr.charAt(i); in getDisplayName()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DGlobalizationPreferences.java590 String teststr = result; in getDisplayName()
594 teststr = result.substring(sidx+1, eidx); in getDisplayName()
596 if (teststr.length() == 2) { in getDisplayName()
599 char c = teststr.charAt(i); in getDisplayName()
/third_party/icu/icu4c/source/test/cintltst/
H A Dcitertst.c947 UChar teststr[500]; in TestSmallBuffer() local
955 teststr[count ++] = 0x300; in TestSmallBuffer()
958 teststr[count ++] = 0x31A; in TestSmallBuffer()
964 testiter = ucol_openElements(coll, teststr, 500, &status); in TestSmallBuffer()
H A Dcapitst.c458 UChar teststr[10]; in TestRuleBasedColl() local
516 teststr[0] = 0x0e40; in TestRuleBasedColl()
517 teststr[1] = 0x0e01; in TestRuleBasedColl()
518 teststr[2] = 0x0e2d; in TestRuleBasedColl()
529 iter1 = ucol_openElements(col1, teststr, 3, &status); in TestRuleBasedColl()
530 iter2 = ucol_openElements(col2, teststr, 3, &status); in TestRuleBasedColl()
/third_party/python/Lib/test/
H A Dtest_imp.py71 for modname, encoding, teststr in self.test_strings:
74 self.assertEqual(teststr, mod.test)
H A Dtest_array.py180 teststr = "Bonne Journ\xe9e \U0002030a\U00020347"
189 a = array.array('u', teststr)
191 array.array, 'u', mformat_code, teststr.encode(encoding))
H A Dtest_smtplib.py78 teststr = "abc\n.jkl\rfoo\r\n..blue"
80 self.assertEqual(expected, smtplib.quotedata(teststr))
/third_party/python/Lib/test/test_email/
H A Dtest_email.py1765 teststr = '\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430'
1767 msg = MIMEText(teststr, _charset='utf-8')
1770 eq(msg.get_payload(decode=True), teststr.encode('utf-8'))
1775 teststr = '\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430'
1776 self.assertRaises(UnicodeEncodeError, MIMEText, teststr)
/third_party/skia/third_party/externals/sfntly/java/lib/
H A Dicu4j-4_8_1_1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/ibm/ com/ibm/icu/ com/ibm/icu/impl/ ...

Completed in 27 milliseconds