/third_party/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
D | ResourceBundlePerf.java | 251 int expected_len; 252 GetBinaryIcu(String key, int expected_len) { 254 this.expected_len = expected_len; 259 if(got.remaining() != expected_len) throw new Error("not the expected len"); 269 int expected_len; 270 GetBinaryJava(String key, int expected_len) { 272 this.expected_len = expected_len; 276 if(got.remaining() != expected_len) throw new Error("not the expected len");
|
/third_party/python/Lib/test/ |
D | test_range.py | 176 expected_len = b - a 182 self.assertEqual(_range_len(x), expected_len) 188 x[-expected_len-1] 190 x[expected_len] 194 expected_len = b - a 200 self.assertEqual(_range_len(x), expected_len) 206 x[-expected_len-1] 208 x[expected_len] 213 expected_len = 1 + (b - a) // c 219 self.assertEqual(_range_len(x), expected_len) [all …]
|
D | test_set.py | 1196 expected_len = 0 1199 expected_len += 1 1200 self.assertEqual(len(tmp), expected_len) 1215 expected_len = len(self.set) 1218 expected_len -= 1 1219 self.assertEqual(len(self.set), expected_len)
|
D | test_buffer.py | 778 expected_len = prod(shape)*itemsize 781 expected_len = len(lst) 783 expected_len = itemsize 807 self.assertEqual(result.nbytes, expected_len) 952 self.assertEqual(m.nbytes, expected_len)
|
D | test_itertools.py | 1099 expected_len = prod(map(len, args)) 1100 self.assertEqual(len(list(product(*args))), expected_len) 1104 self.assertEqual(len(list(product(*args))), expected_len)
|
/third_party/ltp/testcases/cve/ |
D | meltdown.c | 318 int expected_len; in run() local 320 expected_len = pread(spec_fd, expected, sizeof(expected), 0); in run() 321 if (expected_len < 0) in run() 341 size = expected_len; in run()
|
/third_party/glib/glib/ |
D | guuid.c | 95 guint expected_len = 36; in uuid_parse_string() local 97 if (strlen (str) != expected_len) in uuid_parse_string()
|
/third_party/glib/glib/tests/ |
D | unicode.c | 1295 #define TEST_DECOMP(ch, expected_len, a, b, c, d) \ in test_fully_decompose_canonical() argument 1297 g_assert_cmpint (expected_len, ==, len); \ in test_fully_decompose_canonical() 1298 if (expected_len >= 1) g_assert_cmphex (decomp[0], ==, a); \ in test_fully_decompose_canonical() 1299 if (expected_len >= 2) g_assert_cmphex (decomp[1], ==, b); \ in test_fully_decompose_canonical() 1300 if (expected_len >= 3) g_assert_cmphex (decomp[2], ==, c); \ in test_fully_decompose_canonical() 1301 if (expected_len >= 4) g_assert_cmphex (decomp[3], ==, d); \ in test_fully_decompose_canonical() 1347 #define TEST_DECOMP(ch, expected_len, a, b, c, d) \ in test_canonical_decomposition() argument 1349 g_assert_cmpint (expected_len, ==, len); \ in test_canonical_decomposition() 1350 if (expected_len >= 1) g_assert_cmphex (decomp[0], ==, a); \ in test_canonical_decomposition() 1351 if (expected_len >= 2) g_assert_cmphex (decomp[1], ==, b); \ in test_canonical_decomposition() [all …]
|
/third_party/curl/lib/ |
D | doh.c | 112 size_t expected_len; in doh_encode() local 114 expected_len = 12 + 1 + hostlen + 4; in doh_encode() 116 expected_len++; in doh_encode() 118 if(expected_len > (256 + 16)) /* RFCs 1034, 1035 */ in doh_encode() 121 if(len < expected_len) in doh_encode() 173 DEBUGASSERT(*olen == expected_len); in doh_encode()
|
/third_party/node/test/cctest/ |
D | test_inspector_socket.cc | 195 size_t expected_len; member 259 CHECK_GT(expectation->expected_len, 0); in check_data_cb() 260 for (i = 0; i < nread && expectation->pos <= expectation->expected_len; i++) { in check_data_cb() 271 if (expectation->pos == expectation->expected_len) { in check_data_cb() 292 expectation.expected_len = len; in prepare_expects()
|
/third_party/openssl/test/ |
D | ssl_test.c | 195 size_t expected_len = 0; in check_session_ticket_app_data() local 201 expected_len = strlen(test_ctx->expected_session_ticket_app_data); in check_session_ticket_app_data() 202 if (result_len == 0 && expected_len == 0) in check_session_ticket_app_data()
|
D | asn1_encode_test.c | 521 const unsigned char *expected, size_t expected_len, in do_encode() argument 532 if ((size_t)len != expected_len in do_encode() 533 || memcmp(data, expected, expected_len) != 0) { in do_encode()
|
D | evp_test.c | 84 const void *expected, size_t expected_len, in memory_err_compare() argument 90 r = !TEST_mem_ne(expected, expected_len, got, got_len); in memory_err_compare() 92 r = TEST_mem_eq(expected, expected_len, got, got_len); in memory_err_compare()
|
/third_party/libsoup/tests/ |
D | requester-test.c | 651 const char *expected_data, int expected_len) in do_null_char_request() argument 682 soup_assert_cmpmem (buf, nread, expected_data, expected_len); in do_null_char_request() 695 int expected_len; in do_null_char_test_for_session() member 706 test_cases[i].expected_data, test_cases[i].expected_len); in do_null_char_test_for_session()
|
/third_party/ffmpeg/libavformat/ |
D | rmdec.c | 715 int64_t expected_len; in rm_sync() local 719 expected_len = 20 + n_pkts * 14LL; in rm_sync() 721 if (len == 20 && expected_len <= INT_MAX) in rm_sync() 723 len = expected_len; in rm_sync() 724 else if (len != expected_len) in rm_sync() 727 len, n_pkts, expected_len); in rm_sync()
|
/third_party/ffmpeg/libavcodec/ |
D | exr.c | 680 unsigned long dest_len, expected_len = 0; in pxr24_uncompress() local 687 … expected_len += (td->xsize * td->ysize * 3);/* PRX 24 store float in 24 bit instead of 32 */ in pxr24_uncompress() 689 expected_len += (td->xsize * td->ysize * 2); in pxr24_uncompress() 691 expected_len += (td->xsize * td->ysize * 4); in pxr24_uncompress() 695 dest_len = expected_len; in pxr24_uncompress() 699 } else if (dest_len != expected_len) { in pxr24_uncompress()
|
/third_party/openssl/ssl/statem/ |
D | extensions_clnt.c | 1225 size_t expected_len = s->s3->previous_client_finished_len in tls_parse_stoc_renegotiate() local 1231 if (!ossl_assert(expected_len == 0 in tls_parse_stoc_renegotiate() 1233 || !ossl_assert(expected_len == 0 in tls_parse_stoc_renegotiate() 1255 if (ilen != expected_len) { in tls_parse_stoc_renegotiate()
|
/third_party/python/Lib/ |
D | ipaddress.py | 427 def _check_packed_address(self, address, expected_len): argument 429 if address_len != expected_len: 432 expected_len, self._version))
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | cloctst.c | 6264 const int32_t expected_len = (int32_t)uprv_strlen(expected); in TestBug20132() local 6278 if (len != expected_len) { in TestBug20132() 6279 …d length returned by uloc_toLanguageTag for locale id [%s]: %i != %i\n", inloc, len, expected_len); in TestBug20132() 6283 len = uloc_toLanguageTag(inloc, langtag, expected_len, FALSE, &status); in TestBug20132() 6290 if (len != expected_len) { in TestBug20132() 6291 …d length returned by uloc_toLanguageTag for locale id [%s]: %i != %i\n", inloc, len, expected_len); in TestBug20132() 6292 } else if (uprv_strncmp(langtag, expected, expected_len) != 0) { in TestBug20132()
|