Home
last modified time | relevance | path

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

12

/external/webrtc/webrtc/base/
Dsslidentity_unittest.cc116 size_t expected_len) { in TestDigestHelper() argument
121 memset(digest, 0, expected_len); in TestDigestHelper()
125 EXPECT_EQ(expected_len, digest_len); in TestDigestHelper()
128 memset(digest1, 0xff, expected_len); in TestDigestHelper()
132 EXPECT_EQ(expected_len, digest_len); in TestDigestHelper()
134 EXPECT_EQ(0, memcmp(digest, digest1, expected_len)); in TestDigestHelper()
138 size_t expected_len) { in TestDigestForGeneratedCert() argument
141 ASSERT_TRUE(expected_len <= sizeof(DigestType)); in TestDigestForGeneratedCert()
143 TestDigestHelper(digest[0], identity_rsa1_.get(), algorithm, expected_len); in TestDigestForGeneratedCert()
144 TestDigestHelper(digest[1], identity_rsa2_.get(), algorithm, expected_len); in TestDigestForGeneratedCert()
[all …]
Dsslstreamadapterhelper.cc94 size_t expected_len; in SetPeerCertificateDigest() local
96 if (!GetDigestLength(digest_alg, &expected_len)) { in SetPeerCertificateDigest()
100 if (expected_len != digest_len) in SetPeerCertificateDigest()
Dopensslstreamadapter.cc341 size_t expected_len; in SetPeerCertificateDigest() local
343 if (!OpenSSLDigest::GetDigestSize(digest_alg, &expected_len)) { in SetPeerCertificateDigest()
347 if (expected_len != digest_len) in SetPeerCertificateDigest()
/external/boringssl/src/crypto/obj/
Dobj_test.cc83 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()
/external/pdfium/fpdfsdk/
Dfpdftext_embeddertest.cpp335 static const size_t expected_len = sizeof(expected_url); in TEST_F() local
348 EXPECT_EQ(static_cast<int>(expected_len - 1), in TEST_F()
349 FPDFLink_GetURL(pagelink, 0, fixed_buffer, expected_len - 1)); in TEST_F()
351 check_unsigned_shorts(expected_url, fixed_buffer, expected_len - 1)); in TEST_F()
352 EXPECT_EQ(0xbdbd, fixed_buffer[expected_len - 1]); in TEST_F()
356 EXPECT_EQ(static_cast<int>(expected_len), in TEST_F()
357 FPDFLink_GetURL(pagelink, 0, fixed_buffer, expected_len)); in TEST_F()
358 EXPECT_TRUE(check_unsigned_shorts(expected_url, fixed_buffer, expected_len)); in TEST_F()
359 EXPECT_EQ(0u, fixed_buffer[expected_len - 1]); in TEST_F()
360 EXPECT_EQ(0xbdbd, fixed_buffer[expected_len]); in TEST_F()
[all …]
/external/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");
/external/python/cpython3/Lib/test/
Dtest_range.py162 expected_len = b - a
168 self.assertEqual(_range_len(x), expected_len)
174 x[-expected_len-1]
176 x[expected_len]
180 expected_len = b - a
186 self.assertEqual(_range_len(x), expected_len)
192 x[-expected_len-1]
194 x[expected_len]
199 expected_len = 1 + (b - a) // c
205 self.assertEqual(_range_len(x), expected_len)
[all …]
Dtest_set.py1222 expected_len = 0
1225 expected_len += 1
1226 self.assertEqual(len(tmp), expected_len)
1241 expected_len = len(self.set)
1244 expected_len -= 1
1245 self.assertEqual(len(self.set), expected_len)
/external/ltp/testcases/cve/
Dmeltdown.c328 int expected_len; in run() local
330 expected_len = pread(spec_fd, expected, sizeof(expected), 0); in run()
331 if (expected_len < 0) in run()
351 size = expected_len; in run()
/external/nos/host/android/hals/keymaster/test/
Dimport_wrapped_key_test.cpp265 const uint8_t *expected, size_t expected_len, in MatchByteArray() argument
267 if (expected_len != got_len) { in MatchByteArray()
268 *listener << label << ": expected len: " << expected_len in MatchByteArray()
273 for (size_t i = 0; i < expected_len; i++) { in MatchByteArray()
/external/boringssl/src/crypto/fipsmodule/self_check/
Dself_check.c45 size_t expected_len, const char *name) { in check_test() argument
46 if (OPENSSL_memcmp(actual, expected, expected_len) != 0) { in check_test()
48 hexdump(expected, expected_len); in check_test()
50 hexdump(actual, expected_len); in check_test()
/external/boringssl/src/crypto/base64/
Dbase64_test.cc183 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()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_snd.c274 static void do_rx(int fd, int expected_len, char *expected) in do_rx() argument
281 if (ret != expected_len) in do_rx()
282 error(1, 0, "recv: %u != %u", ret, expected_len); in do_rx()
/external/boringssl/src/crypto/test/
Dfile_test.cc322 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()
Dfile_test.h169 bool ExpectBytesEqual(const uint8_t *expected, size_t expected_len,
/external/python/cpython2/Lib/test/
Dtest_sets.py363 expected_len = 0
366 expected_len += 1
367 self.assertEqual(len(tmp), expected_len)
382 expected_len = len(self.set)
385 expected_len -= 1
386 self.assertEqual(len(self.set), expected_len)
Dtest_set.py1143 expected_len = 0
1146 expected_len += 1
1147 self.assertEqual(len(tmp), expected_len)
1162 expected_len = len(self.set)
1165 expected_len -= 1
1166 self.assertEqual(len(self.set), expected_len)
/external/boringssl/src/crypto/bio/
Dbio_test.cc166 size_t expected_len; member
219 EXPECT_EQ(Bytes(input.data(), param.expected_len), Bytes(out, out_len)); in TEST_P()
/external/android-clat/
Dclatd_test.cpp494 size_t expected_len, const char *msg) { in check_translated_packet() argument
498 EXPECT_EQ(expected_len, translated_len) << msg << ": Translated packet length incorrect\n"; in check_translated_packet()
985 size_t expected_len, const char *msg) { in check_translate_checksum_neutral() argument
989 EXPECT_EQ(expected_len, translated_len) << msg << ": Translated packet length incorrect\n"; in check_translate_checksum_neutral()
/external/autotest/client/site_tests/firmware_TouchMTB/tests/
Dmtb_unittest.py155 for tid, expected_len in expected_numbers.items():
156 self.assertEqual(len(finger_paths[tid].tid_packets), expected_len)
/external/webrtc/talk/session/media/
Dsrtpfilter_unittest.cc599 int out_len = 0, expected_len = sizeof(kPcmuFrame); in TestUnprotectRtp() local
601 EXPECT_EQ(expected_len, out_len); in TestUnprotectRtp()
605 int out_len = 0, expected_len = sizeof(kRtcpReport); in TestUnprotectRtcp() local
607 EXPECT_EQ(expected_len, out_len); in TestUnprotectRtcp()
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Ddnn_test.py346 def _assertBinaryPredictions(self, expected_len, predictions): argument
347 self.assertEqual(expected_len, len(predictions))
352 self, expected_len, n_classes, predictions): argument
353 self.assertEqual(expected_len, len(predictions))
Ddebug_test.py257 def _assertBinaryPredictions(self, expected_len, predictions): argument
258 self.assertEqual(expected_len, len(predictions))
/external/python/cpython3/Lib/
Dipaddress.py426 def _check_packed_address(self, address, expected_len): argument
428 if address_len != expected_len:
431 expected_len, self._version))
/external/boringssl/src/ssl/
Dt1_lib.cc744 const size_t expected_len = ssl->s3->previous_client_finished_len + in ext_ri_parse_serverhello() local
748 assert(!expected_len || ssl->s3->previous_client_finished_len); in ext_ri_parse_serverhello()
749 assert(!expected_len || ssl->s3->previous_server_finished_len); in ext_ri_parse_serverhello()
765 if (CBS_len(&renegotiated_connection) != expected_len) { in ext_ri_parse_serverhello()

12