Home
last modified time | relevance | path

Searched refs:expected_length (Results 1 – 25 of 29) 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/rtc_base/
Dfile_rotating_stream_unittest.cc82 const size_t expected_length, in VerifyStreamRead() argument
86 EXPECT_EQ(reader.GetSize(), expected_length); in VerifyStreamRead()
87 std::unique_ptr<uint8_t[]> buffer(new uint8_t[expected_length]); in VerifyStreamRead()
88 memset(buffer.get(), 0, expected_length); in VerifyStreamRead()
89 EXPECT_EQ(expected_length, reader.ReadAll(buffer.get(), expected_length)); in VerifyStreamRead()
90 EXPECT_EQ(0, memcmp(expected_contents, buffer.get(), expected_length)); in VerifyStreamRead()
94 const size_t expected_length, in VerifyFileContents() argument
96 std::unique_ptr<uint8_t[]> buffer(new uint8_t[expected_length + 1]); in VerifyFileContents()
99 size_t size_read = f.Read(buffer.get(), expected_length + 1); in VerifyFileContents()
100 EXPECT_EQ(size_read, expected_length); in VerifyFileContents()
[all …]
Dip_address_unittest.cc129 bool CheckMaskCount(const std::string& mask, int expected_length) { in CheckMaskCount() argument
132 (expected_length == CountIPMaskBits(addr)); in CheckMaskCount()
/external/pdfium/fxbarcode/pdf417/
DBC_PDF417HighLevelEncoder_unittest.cpp13 int expected_length; in TEST() member
43 WideString expected(testcase.expected, testcase.expected_length); in TEST()
62 int expected_length; in TEST() member
92 WideString expected(testcase.expected, testcase.expected_length); in TEST()
107 int expected_length; in TEST() member
154 WideString expected(testcase.expected, testcase.expected_length); in TEST()
/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 if (memcmp (raw_expected, raw_actual, expected_length) != 0) in hb_test_assert_blobs_equal()
178 for (unsigned int i = 0; i < expected_length; i++) in hb_test_assert_blobs_equal()
186 g_assert_cmpint(0, ==, memcmp(raw_expected, raw_actual, expected_length)); in hb_test_assert_blobs_equal()
/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_decode_unittest.cpp190 size_t expected_length; in TEST() member
224 ASSERT_EQ(test_case.expected_length, output.GetLength()) in TEST()
227 for (size_t i = 0; i < test_case.expected_length; ++i) { in TEST()
238 size_t expected_length; in TEST() member
256 ASSERT_EQ(test_case.expected_length, output.GetLength()) in TEST()
259 for (size_t j = 0; j < test_case.expected_length; ++j) { in TEST()
/external/pigweed/pw_metric/
Dmetric_service_nanopb_test.cc137 int expected_length = 0; in TokenPathsMatch() local
138 while (expected_token_path[expected_length]) { in TokenPathsMatch()
139 expected_length++; in TokenPathsMatch()
141 if (expected_length != metric.token_path_count) { in TokenPathsMatch()
146 for (int i = 0; i < expected_length; ++i) { in TokenPathsMatch()
/external/flac/src/test_libFLAC++/
Dmetadata_object.cpp252 uint32_t expected_length; in test_metadata_object_streaminfo() local
260 expected_length = FLAC__STREAM_METADATA_STREAMINFO_LENGTH; in test_metadata_object_streaminfo()
261 if(block.get_length() != expected_length) { in test_metadata_object_streaminfo()
262 printf("FAILED, bad length, expected %u, got %u\n", expected_length, block.get_length()); in test_metadata_object_streaminfo()
485 uint32_t expected_length; in test_metadata_object_padding() local
493 expected_length = 0; in test_metadata_object_padding()
494 if(block.get_length() != expected_length) { in test_metadata_object_padding()
495 printf("FAILED, bad length, expected %u, got %u\n", expected_length, block.get_length()); in test_metadata_object_padding()
646 uint32_t expected_length; in test_metadata_object_application() local
654 expected_length = FLAC__STREAM_METADATA_APPLICATION_ID_LEN / 8; in test_metadata_object_application()
[all …]
/external/flac/src/test_libFLAC/
Dmetadata_object.c124 const uint32_t expected_length = num_points * FLAC__STREAM_METADATA_SEEKPOINT_LENGTH; in check_seektable_() local
126 if(block->length != expected_length) { in check_seektable_()
127 printf("FAILED, bad length, expected %u, got %u\n", expected_length, block->length); in check_seektable_()
510 uint32_t i, expected_length, seekpoints; in test_metadata_object() local
525 expected_length = FLAC__STREAM_METADATA_STREAMINFO_LENGTH; in test_metadata_object()
526 if(block->length != expected_length) { in test_metadata_object()
527 printf("FAILED, bad length, expected %u, got %u\n", expected_length, block->length); in test_metadata_object()
556 expected_length = 0; in test_metadata_object()
557 if(block->length != expected_length) { in test_metadata_object()
558 printf("FAILED, bad length, expected %u, got %u\n", expected_length, block->length); in test_metadata_object()
[all …]
/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/libxkbcommon/test/
Dutf8.c156 check_utf32_to_utf8(uint32_t unichar, int expected_length, const char *expected) { in check_utf32_to_utf8() argument
162 assert(length == expected_length); in check_utf32_to_utf8()
/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.cc317 unsigned expected_length) { in Test1Op() argument
347 VIXL_CHECK(expected_length == results_length); in Test1Op()
371 VIXL_ASSERT(d == expected_length); in Test1Op()
471 unsigned expected_length) { in Test2Op() argument
499 VIXL_CHECK(expected_length == results_length); in Test2Op()
528 VIXL_ASSERT(d == expected_length); in Test2Op()
623 unsigned expected_length) { in Test3Op() argument
651 VIXL_CHECK(expected_length == results_length); in Test3Op()
686 VIXL_ASSERT(d == expected_length); in Test3Op()
766 unsigned expected_length) { in TestCmp() argument
[all …]
/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/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()
Dwav_io_test.cc32 Status ReadString(const string& data, int expected_length, string* value,
/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/autotest/server/cros/bluetooth/
Dbluetooth_adapter_audio_tests.py1017 expected_length = 68686868
1023 self.bluetooth_facade.set_player_length(expected_length)
1046 result_length = bool(expected_length // 1000 == actual_length // 1000)
/external/pdfium/fpdfsdk/
Dfpdf_text_embeddertest.cpp844 static constexpr unsigned long expected_length = sizeof(kExpectedFontName1); in TEST_F() local
845 ASSERT_EQ(expected_length, length); in TEST_F()
850 EXPECT_EQ(expected_length, in TEST_F()
879 static constexpr unsigned long expected_length = sizeof(kExpectedFontName2); in TEST_F() local
880 ASSERT_EQ(expected_length, length); in TEST_F()
885 EXPECT_EQ(expected_length, in TEST_F()
/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/deqp/external/openglcts/modules/common/
DglcKHRDebugTests.hpp403 glw::GLenum expected_severity, glw::GLsizei expected_length,
DglcKHRDebugTests.cpp2144 glw::GLenum expected_severity, glw::GLsizei expected_length, in inspectMessageLog() argument
2203 if (expected_length + 1 != length) in inspectMessageLog()
2206 << ", expected " << expected_length << tcu::TestLog::EndMessage; in inspectMessageLog()
/external/webrtc/modules/rtp_rtcp/source/
Drtp_format_vp9_unittest.cc73 size_t expected_length) { in ParseAndCheckPacket() argument
76 rtc::MakeArrayView(packet, expected_length), &video_header), in ParseAndCheckPacket()
/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()

12