Home
last modified time | relevance | path

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

12

/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 …]
/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/tensorflow/tensorflow/contrib/seq2seq/python/kernel_tests/
Ddecoder_v2_test.py89 expected_length = sequence_length
92 expected_length = [min(x, maximum_iterations) for x in expected_length]
101 self.assertItemsEqual(expected_length, final_sequence_length)
Ddecoder_test.py94 expected_length = sequence_length
97 expected_length = [min(x, maximum_iterations) for x in expected_length]
104 self.assertItemsEqual(expected_length,
/external/harfbuzz_ng/test/api/
Dhb-test.h172 unsigned int expected_length, actual_length; in hb_test_assert_blobs_equal() local
173 const char *raw_expected = hb_blob_get_data (expected_blob, &expected_length); in hb_test_assert_blobs_equal()
175 g_assert_cmpint(expected_length, ==, actual_length); in hb_test_assert_blobs_equal()
176 g_assert_cmpint(0, ==, memcmp(raw_expected, raw_actual, expected_length)); in hb_test_assert_blobs_equal()
/external/grpc-grpc/src/python/grpcio_tests/tests/http2/
Dnegative_http2_client.py24 def _validate_payload_type_and_length(response, expected_type, expected_length): argument
28 elif len(response.payload.body) != expected_length:
30 (expected_length, len(response.payload.body)))
/external/libaom/libaom/test/
Daom_integer_test.cc35 const size_t expected_length = 3; in TEST() local
41 ASSERT_EQ(expected_length, length); in TEST()
46 ASSERT_EQ(expected_length, length); in TEST()
/external/vixl/test/aarch64/
Dtest-simulator-aarch64.cc321 unsigned expected_length) { in Test1Op() argument
351 VIXL_CHECK(expected_length == results_length); in Test1Op()
375 VIXL_ASSERT(d == expected_length); in Test1Op()
476 unsigned expected_length) { in Test2Op() argument
504 VIXL_CHECK(expected_length == results_length); in Test2Op()
533 VIXL_ASSERT(d == expected_length); in Test2Op()
629 unsigned expected_length) { in Test3Op() argument
657 VIXL_CHECK(expected_length == results_length); in Test3Op()
692 VIXL_ASSERT(d == expected_length); in Test3Op()
773 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/u-boot/lib/libavb/
Davb_rsa.c26 size_t expected_length; in iavb_parse_key_data() local
43 expected_length = sizeof(AvbRSAPublicKeyHeader) + 2 * h.key_num_bits / 8; in iavb_parse_key_data()
44 if (length != expected_length) { in iavb_parse_key_data()
/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/grpc-grpc/src/python/grpcio_tests/tests/fork/
Dmethods.py45 def _validate_payload_type_and_length(response, expected_type, expected_length): argument
49 elif len(response.payload.body) != expected_length:
51 (expected_length, len(response.payload.body)))
/external/v8/src/
Dvalue-serializer.cc1426 uint32_t expected_length; in ReadSparseJSArray() local
1430 !ReadVarint<uint32_t>().To(&expected_length) || in ReadSparseJSArray()
1431 num_properties != expected_num_properties || length != expected_length) { in ReadSparseJSArray()
1481 uint32_t expected_length; in ReadDenseJSArray() local
1485 !ReadVarint<uint32_t>().To(&expected_length) || in ReadDenseJSArray()
1486 num_properties != expected_num_properties || length != expected_length) { in ReadDenseJSArray()
1605 uint32_t expected_length; in ReadJSMap() local
1606 if (!ReadVarint<uint32_t>().To(&expected_length) || in ReadJSMap()
1607 length != expected_length) { in ReadJSMap()
1641 uint32_t expected_length; in ReadJSSet() local
[all …]
/external/tensorflow/tensorflow/core/lib/wav/
Dwav_io.cc125 Status ReadString(const string& data, int expected_length, string* value, in ReadString() argument
129 IncrementOffset(*offset, expected_length, data.size(), &new_offset)); in ReadString()
/external/grpc-grpc/src/python/grpcio_tests/tests/interop/
Dmethods.py119 def _validate_payload_type_and_length(response, expected_type, expected_length): argument
123 elif len(response.payload.body) != expected_length:
125 (expected_length, len(response.payload.body)))
/external/tensorflow/tensorflow/python/kernel_tests/signal/
Dspectral_ops_test.py149 expected_length = (stft.shape[0] - 1) * 8 + 8
151 self.assertAllEqual([expected_length], self.evaluate(inverse_stft).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/deqp/external/openglcts/modules/common/
DglcKHRDebugTests.hpp403 glw::GLenum expected_severity, glw::GLsizei expected_length,
/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/v8/src/parsing/
Dscanner.cc196 uc32 Scanner::ScanHexNumber(int expected_length) { in ScanHexNumber() argument
197 DCHECK_LE(expected_length, 4); // prevent overflow in ScanHexNumber()
201 for (int i = 0; i < expected_length; i++) { in ScanHexNumber()
204 ReportScannerError(Location(begin, begin + expected_length + 2), in ScanHexNumber()
/external/tensorflow/tensorflow/contrib/training/python/training/
Dsequence_queueing_state_saver_test.py442 expected_length = max(
446 self.assertEqual(length[i], expected_length)

12