/third_party/boringssl/src/crypto/obj/ |
D | obj_test.cc | 83 int expected_len = static_cast<int>(strlen(expected)); in ExpectObj2Txt() local 86 if (len != expected_len) { in ExpectObj2Txt() 89 expected, len, expected_len); in ExpectObj2Txt() 96 if (len != expected_len) { in ExpectObj2Txt() 99 expected, len, expected_len); in ExpectObj2Txt() 113 if (len != expected_len) { in ExpectObj2Txt() 116 expected, len, expected_len); in ExpectObj2Txt()
|
/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 | 1228 expected_len = 0 1231 expected_len += 1 1232 self.assertEqual(len(tmp), expected_len) 1247 expected_len = len(self.set) 1250 expected_len -= 1 1251 self.assertEqual(len(self.set), expected_len)
|
D | test_itertools.py | 1080 expected_len = prod(map(len, args)) 1081 self.assertEqual(len(list(product(*args))), expected_len) 1085 self.assertEqual(len(list(product(*args))), expected_len)
|
/third_party/ltp/testcases/cve/ |
D | meltdown.c | 319 int expected_len; in run() local 321 expected_len = pread(spec_fd, expected, sizeof(expected), 0); in run() 322 if (expected_len < 0) in run() 342 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/boringssl/src/crypto/fipsmodule/self_check/ |
D | self_check.c | 61 size_t expected_len, const char *name) { in check_test() argument 62 if (OPENSSL_memcmp(actual, expected, expected_len) != 0) { in check_test() 64 hexdump(expected, expected_len); in check_test() 66 hexdump(actual, expected_len); in check_test()
|
/third_party/boringssl/src/crypto/base64/ |
D | base64_test.cc | 183 size_t expected_len = strlen(t.decoded); in TEST_P() local 184 if (expected_len % 3 != 0) { in TEST_P() 185 ret -= 3 - (expected_len % 3); in TEST_P()
|
/third_party/boringssl/src/crypto/test/ |
D | file_test.cc | 322 bool FileTest::ExpectBytesEqual(const uint8_t *expected, size_t expected_len, in ExpectBytesEqual() argument 324 if (expected_len == actual_len && in ExpectBytesEqual() 325 OPENSSL_memcmp(expected, actual, expected_len) == 0) { in ExpectBytesEqual() 329 std::string expected_hex = EncodeHex(expected, expected_len); in ExpectBytesEqual()
|
D | file_test.h | 169 bool ExpectBytesEqual(const uint8_t *expected, size_t expected_len,
|
/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/boringssl/src/crypto/bio/ |
D | bio_test.cc | 166 size_t expected_len; member 219 EXPECT_EQ(Bytes(input.data(), param.expected_len), Bytes(out, out_len)); in TEST_P()
|
/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/uboot/u-boot-2020.01/tools/binman/ |
D | cbfs_util.py | 402 expected_len = self.get_header_len() 404 if expected_len != actual_len: # pragma: no cover 408 (self.name, expected_len, actual_len))
|
/third_party/ffmpeg/libavformat/ |
D | rmdec.c | 704 int64_t expected_len; in rm_sync() local 708 expected_len = 20 + n_pkts * 14LL; in rm_sync() 710 if (len == 20 && expected_len <= INT_MAX) in rm_sync() 712 len = expected_len; in rm_sync() 713 else if (len != expected_len) in rm_sync() 716 len, n_pkts, expected_len); in rm_sync()
|
/third_party/ffmpeg/libavcodec/ |
D | exr.c | 779 unsigned long dest_len, expected_len = 0; in pxr24_uncompress() local 786 … expected_len += (td->xsize * td->ysize * 3);/* PRX 24 store float in 24 bit instead of 32 */ in pxr24_uncompress() 788 expected_len += (td->xsize * td->ysize * 2); in pxr24_uncompress() 790 expected_len += (td->xsize * td->ysize * 4); in pxr24_uncompress() 794 dest_len = expected_len; in pxr24_uncompress() 798 } 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 | 426 def _check_packed_address(self, address, expected_len): argument 428 if address_len != expected_len: 431 expected_len, self._version))
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | cloctst.c | 6150 const int32_t expected_len = (int32_t)uprv_strlen(expected); in TestBug20132() local 6164 if (len != expected_len) { in TestBug20132() 6165 …d length returned by uloc_toLanguageTag for locale id [%s]: %i != %i\n", inloc, len, expected_len); in TestBug20132() 6169 len = uloc_toLanguageTag(inloc, langtag, expected_len, FALSE, &status); in TestBug20132() 6176 if (len != expected_len) { in TestBug20132() 6177 …d length returned by uloc_toLanguageTag for locale id [%s]: %i != %i\n", inloc, len, expected_len); in TestBug20132() 6178 } else if (uprv_strncmp(langtag, expected, expected_len) != 0) { in TestBug20132()
|
/third_party/boringssl/src/ssl/ |
D | t1_lib.cc | 710 const size_t expected_len = ssl->s3->previous_client_finished_len + in ext_ri_parse_serverhello() local 714 assert(!expected_len || ssl->s3->previous_client_finished_len); in ext_ri_parse_serverhello() 715 assert(!expected_len || ssl->s3->previous_server_finished_len); in ext_ri_parse_serverhello() 731 if (CBS_len(&renegotiated_connection) != expected_len) { in ext_ri_parse_serverhello()
|