Home
last modified time | relevance | path

Searched refs:expected_len (Results 1 – 21 of 21) sorted by relevance

/third_party/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
DResourceBundlePerf.java251 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/openssl/test/
Dhexstr_test.c23 size_t expected_len; member
72 || !TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_sep_to_from()
94 || !TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_to_from()
122 && TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_ex_to_from()
Dssl_test.c198 size_t expected_len = 0; in check_session_ticket_app_data() local
204 expected_len = strlen(test_ctx->expected_session_ticket_app_data); in check_session_ticket_app_data()
205 if (result_len == 0 && expected_len == 0) in check_session_ticket_app_data()
Dasn1_encode_test.c521 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()
Devp_extra_test2.c816 const unsigned char *expected, size_t expected_len) in do_check_bn() argument
825 && TEST_int_gt(len = BN_bn2binpad(bn, buffer, expected_len), 0) in do_check_bn()
826 && TEST_mem_eq(expected, expected_len, buffer, len); in do_check_bn()
Devp_test.c99 const void *expected, size_t expected_len, in memory_err_compare() argument
105 r = !TEST_mem_ne(expected, expected_len, got, got_len); in memory_err_compare()
107 r = TEST_mem_eq(expected, expected_len, got, got_len); in memory_err_compare()
/third_party/python/Lib/test/
Dtest_range.py176 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 …]
Dtest_set.py1196 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)
Dtest_buffer.py778 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)
Dtest_itertools.py1099 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/openssl/providers/fips/
Dself_test_kats.c41 if (out_len != t->expected_len in self_test_digest()
113 if (ct_len != (int)t->base.expected_len in self_test_cipher()
131 t->base.expected, t->base.expected_len) in self_test_cipher()
229 if (t->expected_len > sizeof(out)) in self_test_kdf()
231 if (EVP_KDF_derive(ctx, out, t->expected_len, params) <= 0) in self_test_kdf()
236 if (memcmp(out, t->expected, t->expected_len) != 0) in self_test_kdf()
421 if (secret_len != t->expected_len in self_test_ka()
422 || memcmp(secret, t->expected, t->expected_len) != 0) in self_test_ka()
596 if (outlen != t->expected_len in self_test_asym_cipher()
597 || memcmp(out, t->expected, t->expected_len) != 0) in self_test_asym_cipher()
Dself_test.c181 unsigned char *expected, size_t expected_len, in verify_integrity() argument
219 if (expected_len != out_len in verify_integrity()
Dself_test_data.inc40 size_t expected_len;
66 size_t expected_len;
101 size_t expected_len;
122 size_t expected_len;
/third_party/ltp/testcases/cve/
Dmeltdown.c318 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/node/test/cctest/
Dtest_inspector_socket.cc195 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/ffmpeg/libavformat/
Drmdec.c715 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/
Dexr.c680 unsigned long dest_len, expected_len = 0; in pxr24_uncompress() local
687expected_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/
Dextensions_clnt.c1206 size_t expected_len = s->s3.previous_client_finished_len in tls_parse_stoc_renegotiate() local
1212 if (!ossl_assert(expected_len == 0 in tls_parse_stoc_renegotiate()
1214 || !ossl_assert(expected_len == 0 in tls_parse_stoc_renegotiate()
1233 if (ilen != expected_len) { in tls_parse_stoc_renegotiate()
/third_party/python/Lib/
Dipaddress.py427 def _check_packed_address(self, address, expected_len): argument
429 if address_len != expected_len:
432 expected_len, self._version))
/third_party/openssl/doc/man3/
DOSSL_SELF_TEST_new.pod143 if (out_len != t->expected_len
/third_party/icu/icu4c/source/test/cintltst/
Dcloctst.c6264 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()