Home
last modified time | relevance | path

Searched refs:expected_length (Results 1 – 16 of 16) 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/xfa/src/fxbarcode/pdf417/
DBC_PDF417HighLevelEncoder_unittest.cpp25 int expected_length; in TEST() member
52 CFX_WideString expected(ptr->expected, ptr->expected_length); in TEST()
67 int expected_length; in TEST() member
123 CFX_WideString expected(ptr->expected, ptr->expected_length); in TEST()
/external/v8/test/webkit/
Dregexp-negative-special-characters.js28 function test(pattern, str, expected_length) { argument
31 if (result.length == expected_length)
/external/vixl/test/
Dtest-simulator-a64.cc252 const Td expected[], unsigned expected_length) { in Test1Op() argument
275 VIXL_CHECK(expected_length == results_length); in Test1Op()
294 VIXL_ASSERT(d == expected_length); in Test1Op()
367 const T expected[], unsigned expected_length) { in Test2Op() argument
389 VIXL_CHECK(expected_length == results_length); in Test2Op()
414 VIXL_ASSERT(d == expected_length); in Test2Op()
497 const T expected[], unsigned expected_length) { in Test3Op() argument
519 VIXL_CHECK(expected_length == results_length); in Test3Op()
549 VIXL_ASSERT(d == expected_length); in Test3Op()
624 const uint8_t expected[], 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/dbus/bus/
Dsignals.c1858 int expected_length; in match_rule_matches() local
1862 expected_length = rule->arg_lens[i] & ~BUS_MATCH_ARG_FLAGS; in match_rule_matches()
1885 if (actual_length < expected_length && in match_rule_matches()
1889 if (expected_length < actual_length && in match_rule_matches()
1890 expected_arg[expected_length - 1] != '/') in match_rule_matches()
1894 MIN (actual_length, expected_length)) != 0) in match_rule_matches()
1899 if (expected_length > actual_length) in match_rule_matches()
1905 if (memcmp (expected_arg, actual_arg, expected_length) != 0) in match_rule_matches()
1908 if (expected_length < actual_length) in match_rule_matches()
1918 if (actual_arg[expected_length] != '.') in match_rule_matches()
[all …]
/external/v8/test/unittests/wasm/
Dencoder-unittest.cc31 int expected_length, in CheckReadValue() argument
40 CHECK_EQ(length, expected_length); in CheckReadValue()
/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.cc64 uc32 Scanner::ScanHexNumber(int expected_length) { in ScanHexNumber() argument
65 DCHECK(expected_length <= 4); // prevent overflow in ScanHexNumber()
68 for (int i = 0; i < expected_length; i++) { in ScanHexNumber()
Dscanner.h632 uc32 ScanHexNumber(int expected_length);
/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/opencv3/modules/ts/src/
Dts_perf.cpp459 int expected_length = (int)node["len"]; in verify() local
460 …ASSERT_EQ(expected_length, (int)array.total()) << " Vector \"" << node.name() << "\" has unexpect… in verify()