Home
last modified time | relevance | path

Searched refs:expected_bytes (Results 1 – 18 of 18) sorted by relevance

/external/python/asn1crypto/tests/
Dtest_pem.py118 expected_bytes = f.read()
119 self.assertEqual(expected_bytes, decoded_bytes)
145 expected_bytes = f.read()
148 expected_bytes = expected_bytes.replace(b'\r\n', b'\n')
149 self.assertEqual(expected_bytes, encoded_bytes)
/external/tensorflow/tensorflow/core/framework/
Ddataset_test.cc49 const int64 expected_bytes; member
60 test_case.expected_bytes); in TEST_P()
63 test_case.expected_bytes); in TEST_P()
/external/libaom/libaom/test/
Daom_integer_test.cc51 const uint8_t expected_bytes[3] = { 0xE5, 0x8E, 0x26 }; in TEST() local
60 ASSERT_EQ(write_buffer[i], expected_bytes[i]); in TEST()
83 const uint8_t expected_bytes[4] = { 0xa3, 0x82, 0x80, 0x00 }; in TEST() local
92 ASSERT_EQ(write_buffer[i], expected_bytes[i]); in TEST()
/external/google-breakpad/src/processor/
Dsynth_minidump_unittest.cc178 static const uint8_t expected_bytes[] = { in TEST() local
190 EXPECT_EQ(sizeof(expected_bytes), contents.size()); in TEST()
191 EXPECT_TRUE(memcmp(contents.data(), expected_bytes, contents.size()) == 0); in TEST()
206 static const uint8_t expected_bytes[] = { in TEST() local
233 EXPECT_EQ(sizeof(expected_bytes), contents.size()); in TEST()
234 EXPECT_TRUE(memcmp(contents.data(), expected_bytes, contents.size()) == 0); in TEST()
/external/fonttools/Tests/ttLib/tables/
DC_O_L_R_test.py50 for expected_bytes, description in expected_fragments:
51 actual_bytes = font_bytes[pos : pos + len(expected_bytes)]
52 if actual_bytes != expected_bytes:
55 pos += len(expected_bytes)
/external/rust/crates/protobuf/src/
Dcoded_output_stream.rs547 let expected_bytes = decode_hex(expected); in test_write() localVariable
557 assert_eq!(encode_hex(&expected_bytes), encode_hex(&v)); in test_write()
562 let mut r = Vec::with_capacity(expected_bytes.len()); in test_write()
563 r.resize(expected_bytes.len(), 0); in test_write()
569 assert_eq!(encode_hex(&expected_bytes), encode_hex(&r)); in test_write()
583 assert_eq!(encode_hex(&expected_bytes), encode_hex(&r)); in test_write()
/external/webrtc/modules/rtp_rtcp/source/
Dbyte_io_unittest.cc110 uint8_t expected_bytes[B + kAlignments]; in TestWrite() local
115 PopulateTestData(expected_bytes + i, test_value, B, big_endian); in TestWrite()
123 EXPECT_EQ(expected_bytes[i + j], bytes[i + j]); in TestWrite()
Drtp_sender_unittest.cc622 const size_t expected_bytes = in TEST_P() local
634 Field(&RtpPacketSendInfo::length, expected_bytes), in TEST_P()
/external/libchrome/base/files/
Dfile_proxy_unittest.cc267 int expected_bytes = arraysize(expected_data); in TEST_F() local
268 ASSERT_EQ(expected_bytes, in TEST_F()
269 base::WriteFile(TestPath(), expected_data, expected_bytes)); in TEST_F()
281 EXPECT_EQ(expected_bytes, static_cast<int>(buffer_.size())); in TEST_F()
/external/boringssl/src/crypto/trust_token/
Dtrust_token_test.cc95 uint8_t expected_bytes[1 + 2 * EC_MAX_BYTES]; in TEST() local
98 expected_bytes, sizeof(expected_bytes), nullptr); in TEST()
102 EXPECT_EQ(Bytes(h), Bytes(expected_bytes, expected_len)); in TEST()
117 uint8_t expected_bytes[1 + 2 * EC_MAX_BYTES]; in TEST() local
120 expected_bytes, sizeof(expected_bytes), nullptr); in TEST()
124 EXPECT_EQ(Bytes(h), Bytes(expected_bytes, expected_len)); in TEST()
/external/openscreen/cast/streaming/
Drtp_packetizer_unittest.cc120 const absl::Span<const uint8_t> expected_bytes( in TestGeneratePacket() local
123 EXPECT_EQ(expected_bytes, result->payload); in TestGeneratePacket()
/external/webrtc/modules/audio_coding/neteq/
Daudio_decoder_unittest.cc157 void EncodeDecodeTest(size_t expected_bytes, in EncodeDecodeTest() argument
197 if (expected_bytes) { in EncodeDecodeTest()
198 EXPECT_EQ(expected_bytes, encoded_bytes); in EncodeDecodeTest()
/external/rust/crates/quiche/deps/boringssl/src/crypto/trust_token/
Dtrust_token_test.cc83 uint8_t expected_bytes[1 + 2 * EC_MAX_BYTES]; in TEST() local
86 expected_bytes, sizeof(expected_bytes), nullptr); in TEST()
90 EXPECT_EQ(Bytes(h), Bytes(expected_bytes, expected_len)); in TEST()
/external/OpenCL-CTS/test_conformance/images/clFillImage/
Dtest_fill_generic.cpp517 size_t expected_bytes = scanlineSize * imageRegion[1] * imageRegion[2]; in test_fill_image_generic() local
518 return (total_matched == expected_bytes) ? 0 : -1; in test_fill_image_generic()
/external/google-breakpad/src/common/
Dtest_assembler_unittest.cc756 static const uint8_t expected_bytes[] = b; \
757 ASSERT_EQ(sizeof(expected_bytes), s.size()); \
758 ASSERT_TRUE(memcmp(s.data(), (const char *) expected_bytes, \
759 sizeof(expected_bytes)) == 0); \
/external/python/cpython3/Lib/test/
Dtest_xmlrpc.py1441 expected_bytes = b"my dog has fleas"
1443 marshaled = xmlrpclib.dumps((expected_bytes, expected_date), 'foobar')
1452 self.assertEqual(self.log, [expected_bytes, expected_date])
/external/avb/
Daftltool_test.py1002 expected_bytes = (
1012 self.assertEqual(d.encode(), binascii.unhexlify(expected_bytes))
/external/pdfium/third_party/libtiff/
Dtif_ojpeg.c853 int expected_bytes; in OJPEGDecodeRaw() local
872 expected_bytes = sp->subsampling_convert_clinelenout * sp->subsampling_ver * sp->subsampling_hor; in OJPEGDecodeRaw()
873 if (jpeg_bytes != expected_bytes) in OJPEGDecodeRaw()