Home
last modified time | relevance | path

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

/external/chromium_org/third_party/webrtc/base/
Dsslidentity_unittest.cc84 void TestDigest(const std::string &algorithm, size_t expected_len, in TestDigest() argument
98 EXPECT_EQ(expected_len, digest1_len); in TestDigest()
104 EXPECT_EQ(expected_len, digest1b_len); in TestDigest()
105 EXPECT_EQ(0, memcmp(digest1, digest1b, expected_len)); in TestDigest()
112 EXPECT_EQ(expected_len, digest2_len); in TestDigest()
113 EXPECT_NE(0, memcmp(digest1, digest2, expected_len)); in TestDigest()
123 EXPECT_EQ(expected_len, digest3_len); in TestDigest()
124 EXPECT_EQ(0, memcmp(digest3, expected_digest, expected_len)); in TestDigest()
Dsslstreamadapterhelper.cc80 size_t expected_len; in SetPeerCertificateDigest() local
82 if (!GetDigestLength(digest_alg, &expected_len)) { in SetPeerCertificateDigest()
86 if (expected_len != digest_len) in SetPeerCertificateDigest()
Dopensslstreamadapter.cc208 size_t expected_len; in SetPeerCertificateDigest() local
210 if (!OpenSSLDigest::GetDigestSize(digest_alg, &expected_len)) { in SetPeerCertificateDigest()
214 if (expected_len != digest_len) in SetPeerCertificateDigest()
/external/chromium_org/net/spdy/
Dspdy_test_utils.cc65 const int expected_len) { in CompareCharArraysWithHexError() argument
66 const int min_len = std::min(actual_len, expected_len); in CompareCharArraysWithHexError()
67 const int max_len = std::max(actual_len, expected_len); in CompareCharArraysWithHexError()
69 bool identical = (actual_len == expected_len); in CompareCharArraysWithHexError()
86 << HexDumpWithMarks(expected, expected_len, marks.get(), max_len) in CompareCharArraysWithHexError()
Dspdy_test_utils.h29 const int expected_len);
Dspdy_framer_test.cc628 const int expected_len) { in CompareFrame() argument
632 description, actual, actual_frame.size(), expected, expected_len); in CompareFrame()
/external/openssl/ssl/
Dt1_reneg.c235 int expected_len=s->s3->previous_client_finished_len in ssl_parse_serverhello_renegotiate_ext() local
240 OPENSSL_assert(!expected_len || s->s3->previous_client_finished_len); in ssl_parse_serverhello_renegotiate_ext()
241 OPENSSL_assert(!expected_len || s->s3->previous_server_finished_len); in ssl_parse_serverhello_renegotiate_ext()
262 if(ilen != expected_len) in ssl_parse_serverhello_renegotiate_ext()
/external/chromium_org/third_party/boringssl/src/ssl/
Dt1_reneg.c216 int expected_len=s->s3->previous_client_finished_len in ssl_parse_serverhello_renegotiate_ext() local
222 assert(!expected_len || s->s3->previous_client_finished_len); in ssl_parse_serverhello_renegotiate_ext()
223 assert(!expected_len || s->s3->previous_server_finished_len); in ssl_parse_serverhello_renegotiate_ext()
235 if(CBS_len(&renegotiated_connection) != expected_len) in ssl_parse_serverhello_renegotiate_ext()
/external/chromium_org/third_party/boringssl/src/crypto/base64/
Dbase64_test.c67 size_t expected_len = strlen(t->decoded); in test_decode() local
91 if (expected_len % 3 != 0) { in test_decode()
92 ret -= 3 - (expected_len % 3); in test_decode()
/external/chromium_org/net/test/
Dopenssl_helper.cc230 unsigned len, expected_len; in main() local
234 expected_len = 3; in main()
237 expected_len = 3; in main()
239 if (len != expected_len || memcmp(data, expected_data, len) != 0) { in main()
/external/chromium_org/v8/test/cctest/
Dtest-ostreams.cc45 const size_t expected_len = len * repeat; in TEST() local
46 CHECK(expected_len == oss.size()); in TEST()
48 CHECK_EQ(0, strncmp(expected, oss.data(), expected_len)); in TEST()
Dtest-api.cc8143 Local<v8::Number> expected_len = in Utf16Helper() local
8146 CHECK_EQ(static_cast<int>(expected_len->Value()), length); in Utf16Helper()
8172 Local<v8::Number> expected_len = in WriteUtf8Helper() local
8174 int utf8_length = static_cast<int>(expected_len->Value()); in WriteUtf8Helper()
14264 size_t expected_len = strlen(expected); in FunctionNameIs() local
14271 if (tail_len > expected_len + 2 && in FunctionNameIs()
14272 tail[expected_len] == ' ' && in FunctionNameIs()
14273 tail[expected_len + 1] == ':' && in FunctionNameIs()
14274 tail[expected_len + 2] && in FunctionNameIs()
14275 !strncmp(tail, expected, expected_len)) { in FunctionNameIs()
[all …]
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
Djs_fs_test.cc348 uint32_t expected_len; in VarsAreEqual() local
350 const char* expected_str = var_if->VarToUtf8(expected, &expected_len); in VarsAreEqual()
352 if (expected_len != var_len) in VarsAreEqual()
359 uint32_t expected_len = array_if->GetLength(expected); in VarsAreEqual() local
361 if (expected_len != var_len) in VarsAreEqual()
382 uint32_t expected_len = array_if->GetLength(expected_keys); in VarsAreEqual() local
386 if (expected_len == var_len) { in VarsAreEqual()
414 uint32_t expected_len; in VarsAreEqual() local
415 if (!array_buffer_if->ByteLength(expected, &expected_len)) in VarsAreEqual()
418 if (expected_len != var_len) in VarsAreEqual()
/external/chromium_org/net/quic/test_tools/
Dquic_test_utils.cc496 const int expected_len) { in CompareCharArraysWithHexError() argument
497 EXPECT_EQ(actual_len, expected_len); in CompareCharArraysWithHexError()
498 const int min_len = min(actual_len, expected_len); in CompareCharArraysWithHexError()
499 const int max_len = max(actual_len, expected_len); in CompareCharArraysWithHexError()
501 bool identical = (actual_len == expected_len); in CompareCharArraysWithHexError()
518 << HexDumpWithMarks(expected, expected_len, marks.get(), max_len) in CompareCharArraysWithHexError()
Dquic_test_utils.h75 const int expected_len);
/external/android-clat/
Dclatd_test.cpp490 const uint8_t *expected, size_t expected_len, const char *msg) { in check_translated_packet() argument
494 EXPECT_EQ(expected_len, translated_len) << msg << ": Translated packet length incorrect\n"; in check_translated_packet()
903 size_t expected_len, const char *msg) { in check_translate_checksum_neutral() argument
907 EXPECT_EQ(expected_len, translated_len) << msg << ": Translated packet length incorrect\n"; in check_translate_checksum_neutral()
/external/chromium_org/third_party/libjingle/source/talk/session/media/
Dsrtpfilter_unittest.cc569 int out_len = 0, expected_len = sizeof(kPcmuFrame); in TestUnprotectRtp() local
571 EXPECT_EQ(expected_len, out_len); in TestUnprotectRtp()
575 int out_len = 0, expected_len = sizeof(kRtcpReport); in TestUnprotectRtcp() local
577 EXPECT_EQ(expected_len, out_len); in TestUnprotectRtcp()
/external/chromium_org/components/crash/app/
Dbreakpad_linux.cc1065 size_t expected_len) { in IsValidCrashReportId() argument
1066 if (bytes_read != expected_len) in IsValidCrashReportId()
1081 size_t expected_len) { in HandleCrashReportId() argument
1083 if (!IsValidCrashReportId(buf, bytes_read, expected_len)) { in HandleCrashReportId()
/external/chromium_org/content/browser/renderer_host/p2p/
Dsocket_host_tcp.cc561 size_t expected_len = GetExpectedPacketSize( in DoSend() local
565 if (data.size() != expected_len) { in DoSend()
/external/chromium_org/net/http/
Dhttp_response_headers_unittest.cc1214 int64 expected_len; member
1230 EXPECT_EQ(test.expected_len, parsed->GetContentLength()); in TEST_P()