Home
last modified time | relevance | path

Searched refs:expected_length (Results 1 – 24 of 24) sorted by relevance

/external/autotest/client/common_lib/cros/bluetooth/
Dbluetooth_socket.py314 expected_length=None): argument
356 if (expected_length is not None and
357 response_length != expected_length):
361 expected_length)))
490 expected_length=3)
516 expected_length = offset + (ncommands * 2) + (nevents * 2)
517 if len(data) != expected_length:
520 '%d (expected %d)' % (len(data), expected_length)))
553 expected_length = offset + (nindexes * 2)
554 if len(data) != expected_length:
[all …]
/external/webrtc/webrtc/base/
Dhttpbase_unittest.cc90 size_t expected_length = SIZE_UNKNOWN);
100 size_t expected_length = SIZE_UNKNOWN);
173 size_t expected_length) { in VerifyDocumentContents() argument
176 if (SIZE_UNKNOWN == expected_length) { in VerifyDocumentContents()
177 expected_length = strlen(expected_data); in VerifyDocumentContents()
183 EXPECT_EQ(expected_length, length); in VerifyDocumentContents()
230 const size_t expected_length = strlen(expected_data); in ReadDocumentStreamData() local
231 while (verified_length < expected_length) { in ReadDocumentStreamData()
235 std::min(expected_length - verified_length, sizeof(buffer)); in ReadDocumentStreamData()
283 size_t expected_length) { in VerifySourceContents() argument
[all …]
Dfilerotatingstream_unittest.cc57 const size_t expected_length, in VerifyStreamRead() argument
66 scoped_ptr<uint8_t[]> buffer(new uint8_t[expected_length]); in VerifyStreamRead()
68 stream->ReadAll(buffer.get(), expected_length, &read, nullptr)); in VerifyStreamRead()
69 EXPECT_EQ(0, memcmp(expected_contents, buffer.get(), expected_length)); in VerifyStreamRead()
75 const size_t expected_length, in VerifyFileContents() argument
77 scoped_ptr<uint8_t[]> buffer(new uint8_t[expected_length]); in VerifyFileContents()
84 stream->ReadAll(buffer.get(), expected_length, nullptr, nullptr)); in VerifyFileContents()
85 EXPECT_EQ(0, memcmp(expected_contents, buffer.get(), expected_length)); in VerifyFileContents()
88 EXPECT_EQ(file_size, expected_length); in VerifyFileContents()
216 const size_t expected_length, in VerifyStreamRead() argument
[all …]
Dtestutils.h473 size_t expected_length, in CmpHelperMemEq() argument
477 if ((expected_length == actual_length) in CmpHelperMemEq()
478 && (0 == memcmp(expected, actual, expected_length))) { in CmpHelperMemEq()
496 size_t buffer_size = expected_length * 2 + 1; in CmpHelperMemEq()
499 reinterpret_cast<const char*>(expected), expected_length); in CmpHelperMemEq()
500 msg << "\nWhich is: " << buffer << " [" << expected_length << "]"; in CmpHelperMemEq()
510 size_t expected_length, in CmpHelperFileEq() argument
521 expected, expected_length, in CmpHelperFileEq()
525 #define EXPECT_MEMEQ(expected, expected_length, actual, actual_length) \ argument
526 EXPECT_PRED_FORMAT4(::testing::CmpHelperMemEq, expected, expected_length, \
[all …]
Dipaddress_unittest.cc139 bool CheckMaskCount(const std::string& mask, int expected_length) { in CheckMaskCount() argument
142 (expected_length == CountIPMaskBits(addr)); in CheckMaskCount()
/external/pdfium/fxbarcode/pdf417/
DBC_PDF417HighLevelEncoder_unittest.cpp23 int expected_length; in TEST() member
50 WideString expected(ptr->expected, ptr->expected_length); in TEST()
65 int expected_length; in TEST() member
113 WideString expected(ptr->expected, ptr->expected_length); in TEST()
/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_decode_unittest.cpp84 size_t expected_length; in TEST() member
103 ASSERT_EQ(test_case.expected_length, output.GetLength()) << "for case " in TEST()
106 for (size_t j = 0; j < test_case.expected_length; ++j) { in TEST()
/external/vixl/test/aarch64/
Dtest-simulator-aarch64.cc256 unsigned expected_length) { in Test1Op() argument
284 VIXL_CHECK(expected_length == results_length); in Test1Op()
308 VIXL_ASSERT(d == expected_length); in Test1Op()
386 unsigned expected_length) { in Test2Op() argument
412 VIXL_CHECK(expected_length == results_length); in Test2Op()
441 VIXL_ASSERT(d == expected_length); in Test2Op()
529 unsigned expected_length) { in Test3Op() argument
555 VIXL_CHECK(expected_length == results_length); in Test3Op()
590 VIXL_ASSERT(d == expected_length); in Test3Op()
670 unsigned expected_length) { in TestCmp() argument
[all …]
/external/webrtc/webrtc/test/testsupport/
Dpacket_reader_unittest.cc29 void VerifyPacketData(size_t expected_length, in VerifyPacketData() argument
33 EXPECT_EQ(static_cast<int>(expected_length), actual_length); in VerifyPacketData()
/external/avb/libavb/
Davb_rsa.c50 size_t expected_length; in iavb_parse_key_data() local
67 expected_length = sizeof(AvbRSAPublicKeyHeader) + 2 * h.key_num_bits / 8; in iavb_parse_key_data()
68 if (length != expected_length) { in iavb_parse_key_data()
/external/v8/src/
Dvalue-serializer.cc1306 uint32_t expected_length; in ReadSparseJSArray() local
1310 !ReadVarint<uint32_t>().To(&expected_length) || in ReadSparseJSArray()
1311 num_properties != expected_num_properties || length != expected_length) { in ReadSparseJSArray()
1361 uint32_t expected_length; in ReadDenseJSArray() local
1365 !ReadVarint<uint32_t>().To(&expected_length) || in ReadDenseJSArray()
1366 num_properties != expected_num_properties || length != expected_length) { in ReadDenseJSArray()
1470 uint32_t expected_length; in ReadJSMap() local
1471 if (!ReadVarint<uint32_t>().To(&expected_length) || in ReadJSMap()
1472 length != expected_length) { in ReadJSMap()
1506 uint32_t expected_length; in ReadJSSet() local
[all …]
/external/tensorflow/tensorflow/core/lib/wav/
Dwav_io.cc121 Status ReadString(const string& data, int expected_length, string* value, in ReadString() argument
123 const int new_offset = *offset + expected_length; in ReadString()
/external/tensorflow/tensorflow/contrib/signal/python/kernel_tests/
Dspectral_ops_test.py149 expected_length = (stft.shape[0] - 1) * 8 + 8
151 self.assertAllEqual([expected_length], inverse_stft.eval().shape)
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtp_format_vp9_unittest.cc78 size_t expected_length) { in ParseAndCheckPacket() argument
81 ASSERT_TRUE(depacketizer->Parse(&parsed, packet, expected_length)); in ParseAndCheckPacket()
84 const size_t kExpectedPayloadLength = expected_length - expected_hdr_length; in ParseAndCheckPacket()
/external/v8/src/parsing/
Dscanner.cc199 uc32 Scanner::ScanHexNumber(int expected_length) { in ScanHexNumber() argument
200 DCHECK(expected_length <= 4); // prevent overflow in ScanHexNumber()
204 for (int i = 0; i < expected_length; i++) { in ScanHexNumber()
207 ReportScannerError(Location(begin, begin + expected_length + 2), in ScanHexNumber()
Dscanner.h673 uc32 ScanHexNumber(int expected_length);
/external/deqp/external/openglcts/modules/gl/
Dgl4cKHRDebugTests.hpp403 glw::GLenum expected_severity, glw::GLsizei expected_length,
Dgl4cKHRDebugTests.cpp2165 glw::GLenum expected_severity, glw::GLsizei expected_length, in inspectMessageLog() argument
2224 if (expected_length + 1 != length) in inspectMessageLog()
2227 << ", expected " << expected_length << tcu::TestLog::EndMessage; in inspectMessageLog()
Dgl4cShaderSubroutineTests.cpp2058 GLsizei expected_length = (GLsizei)strlen(m_subroutine_uniform_name); in verifyGLGetActiveSubroutineUniformNameFunctionality() local
2084 m_buffer = new glw::GLchar[expected_length + 1]; in verifyGLGetActiveSubroutineUniformNameFunctionality()
2086 memset(m_buffer, 0, expected_length + 1); in verifyGLGetActiveSubroutineUniformNameFunctionality()
2088 …gl.getActiveSubroutineUniformName(m_po_id, GL_VERTEX_SHADER, 0, expected_length + 1, &reported_len… in verifyGLGetActiveSubroutineUniformNameFunctionality()
2091 if (reported_length != expected_length) in verifyGLGetActiveSubroutineUniformNameFunctionality()
2095 << ", instead of: " << expected_length << tcu::TestLog::EndMessage; in verifyGLGetActiveSubroutineUniformNameFunctionality()
/external/pdfium/fpdfsdk/
Dfpdfformfill_embeddertest.cpp114 const unsigned long expected_length = in CheckSelection() local
118 ASSERT_EQ(expected_length, sel_text_len); in CheckSelection()
121 EXPECT_EQ(expected_length, FORM_GetSelectedText(form_handle(), page_, in CheckSelection()
/external/tensorflow/tensorflow/contrib/training/python/training/
Dsequence_queueing_state_saver_test.py442 expected_length = max(
446 self.assertEqual(length[i], expected_length)
/external/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectwriter_test.cc142 void CheckOutput(const Message& expected, int expected_length) { in CheckOutput() argument
145 if (expected_length >= 0) { in CheckOutput()
146 EXPECT_EQ(expected_length, nbytes); in CheckOutput()
/external/webrtc/webrtc/p2p/base/
Dstun_unittest.cc27 size_t expected_length) { in CheckStunHeader() argument
29 ASSERT_EQ(expected_length, msg.length()); in CheckStunHeader()
/external/libevent/test/
Dregress_buffer.c2370 size_t expected_length = 0; in test_evbuffer_add_iovec() local
2381 expected_length += vec[i].iov_len; in test_evbuffer_add_iovec()
2387 tt_int_op(evbuffer_get_length(buf), ==, expected_length); in test_evbuffer_add_iovec()