Home
last modified time | relevance | path

Searched refs:expected_size (Results 1 – 25 of 42) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate01.c194 loff_t expected_size; in main() local
204 expected_size = BLOCKS_WRITTEN * block_size + block_size; in main()
205 runtest(0, fd_mode1, expected_size); in main()
207 expected_size = BLOCKS_WRITTEN * block_size; in main()
208 runtest(FALLOC_FL_KEEP_SIZE, fd_mode2, expected_size); in main()
218 void runtest(int mode, int fd, loff_t expected_size) in runtest() argument
248 if (file_stat.st_size != expected_size) in runtest()
/third_party/cef/tests/ceftests/
Dimage_util.cc15 const CefSize& expected_size) { in LoadImage() argument
28 EXPECT_EQ(expected_size.width, static_cast<int>(image->GetWidth())); in LoadImage()
29 EXPECT_EQ(expected_size.height, static_cast<int>(image->GetHeight())); in LoadImage()
Dimage_util.h18 const CefSize& expected_size);
/third_party/cef/tests/ceftests/views/
Dpanel_unittest.cc695 CefSize expected_size(100, 100); in SizeWithDelegateImpl() local
698 delegate->preferred_size_ = expected_size; in SizeWithDelegateImpl()
699 EXPECT_EQ(expected_size, panel->GetPreferredSize()); in SizeWithDelegateImpl()
708 delegate->minimum_size_ = expected_size; in SizeWithDelegateImpl()
709 EXPECT_EQ(expected_size, panel->GetMinimumSize()); in SizeWithDelegateImpl()
718 delegate->maximum_size_ = expected_size; in SizeWithDelegateImpl()
719 EXPECT_EQ(expected_size, panel->GetMaximumSize()); in SizeWithDelegateImpl()
773 CefSize expected_size(100, 100); in FillLayoutSizeToPreferredSizeImpl() local
775 delegate->preferred_size_ = expected_size; in FillLayoutSizeToPreferredSizeImpl()
788 EXPECT_EQ(expected_size, panel->GetSize()); in FillLayoutSizeToPreferredSizeImpl()
[all …]
/third_party/gstreamer/gstplugins_bad/tests/check/elements/
Dadaptive_demux_common.c178 testOutputStreamData->expected_size, stream->segment_start); in gst_adaptive_demux_test_check_received_data()
184 gst_buffer_get_size (buffer) <= testOutputStreamData->expected_size, in gst_adaptive_demux_test_check_received_data()
208 fail_unless (streamOffset + i < testOutputStreamData->expected_size); in gst_adaptive_demux_test_check_received_data()
263 testOutputStreamData->expected_size, in gst_adaptive_demux_test_check_size_of_received_data()
265 testOutputStreamData->expected_size, stream->total_received_size); in gst_adaptive_demux_test_check_size_of_received_data()
332 testOutputStreamData->expected_size += testData->threshold_for_seek; in testSeekAdaptiveDemuxSendsData()
501 testOutputStreamData->expected_size, in gst_adaptive_demux_test_download_error_size_of_received_data()
503 testOutputStreamData->name, testOutputStreamData->expected_size, in gst_adaptive_demux_test_download_error_size_of_received_data()
Dadaptive_demux_common.h72 guint64 expected_size; member
/third_party/python/Lib/test/
Dtest_urllibnet.py211 expected_size = int(fileheaders['Content-Length'])
219 self.assertEqual(records[0][2], expected_size)
220 self.assertEqual(records[-1][2], expected_size)
225 self.assertGreaterEqual(records[-1][0]*records[0][1], expected_size,
/third_party/openssl/test/
Dcmp_ctx_test.c142 int base_err_msg_size, expected_size; in execute_CTX_print_errors_test() local
165 expected_size = base_err_msg_size; in execute_CTX_print_errors_test()
167 expected_size += strlen(":" "data1"); in execute_CTX_print_errors_test()
169 expected_size += strlen(" : " "data2"); in execute_CTX_print_errors_test()
171 expected_size += strlen("\n" "new line"); in execute_CTX_print_errors_test()
173 if (!TEST_int_eq(msg_total_size, expected_size)) in execute_CTX_print_errors_test()
178 expected_size = base_err_msg_size; in execute_CTX_print_errors_test()
179 while (expected_size < 4096) { /* force split */ in execute_CTX_print_errors_test()
181 expected_size += strlen(STR_SEP) + strlen(max_str_literal); in execute_CTX_print_errors_test()
183 expected_size += base_err_msg_size - 2 * strlen(STR_SEP); in execute_CTX_print_errors_test()
[all …]
Dasn1_encode_test.c485 const EXPECTED *expected, size_t expected_size, in do_decode() argument
503 && memcmp(enctst, expected, expected_size) == 0) in do_decode()
670 const EXPECTED *expected, size_t expected_size, in do_decode_custom() argument
684 ret = do_decode(encoding, encoding_length, expected, expected_size, in do_decode_custom()
/third_party/flutter/skia/third_party/externals/libwebp/src/utils/
Dbit_writer_utils.c162 int VP8BitWriterInit(VP8BitWriter* const bw, size_t expected_size) { in VP8BitWriterInit() argument
171 return (expected_size > 0) ? BitWriterResize(bw, expected_size) : 1; in VP8BitWriterInit()
237 int VP8LBitWriterInit(VP8LBitWriter* const bw, size_t expected_size) { in VP8LBitWriterInit() argument
239 return VP8LBitWriterResize(bw, expected_size); in VP8LBitWriterInit()
Dbit_writer_utils.h39 int VP8BitWriterInit(VP8BitWriter* const bw, size_t expected_size);
108 int VP8LBitWriterInit(VP8LBitWriter* const bw, size_t expected_size);
/third_party/skia/third_party/externals/libwebp/src/utils/
Dbit_writer_utils.c162 int VP8BitWriterInit(VP8BitWriter* const bw, size_t expected_size) { in VP8BitWriterInit() argument
171 return (expected_size > 0) ? BitWriterResize(bw, expected_size) : 1; in VP8BitWriterInit()
237 int VP8LBitWriterInit(VP8LBitWriter* const bw, size_t expected_size) { in VP8LBitWriterInit() argument
239 return VP8LBitWriterResize(bw, expected_size); in VP8LBitWriterInit()
Dbit_writer_utils.h39 int VP8BitWriterInit(VP8BitWriter* const bw, size_t expected_size);
108 int VP8LBitWriterInit(VP8LBitWriter* const bw, size_t expected_size);
/third_party/gstreamer/gstplugins_base/sys/xvimage/
Dxvimageallocator.c355 gint expected_size = 0; in gst_xvimage_allocator_alloc() local
427 expected_size = in gst_xvimage_allocator_alloc()
439 expected_size = padded_height * GST_ROUND_UP_4 (padded_width * 2); in gst_xvimage_allocator_alloc()
446 expected_size = padded_height * GST_ROUND_UP_4 (padded_width * in gst_xvimage_allocator_alloc()
449 if (expected_size != 0 && mem->xvimage->data_size < expected_size) in gst_xvimage_allocator_alloc()
552 mem->xvimage->data_size, expected_size); in gst_xvimage_allocator_alloc()
/third_party/ffmpeg/libavformat/
Dvividas.c114 static unsigned recover_key(unsigned char sample[4], unsigned expected_size) in recover_key() argument
118 put_v(plaintext+2, expected_size); in recover_key()
233 uint32_t *key, unsigned expected_size) in read_sb_block() argument
248 if (sbuf[0] != 'S' || sbuf[1] != 'B' || (expected_size>0 && n != expected_size)) { in read_sb_block()
249 uint32_t tmpkey = recover_key(ibuf, expected_size); in read_sb_block()
253 if (sbuf[0] != 'S' || sbuf[1] != 'B' || expected_size != n) in read_sb_block()
490 static void load_sb_block(AVFormatContext *s, VividasDemuxContext *viv, unsigned expected_size) in load_sb_block() argument
504 viv->sb_buf = read_sb_block(s->pb, &size, &viv->sb_key, expected_size); in load_sb_block()
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dwire_format_test.py106 expected_size = expected_value_size + tag_bytes
108 self.assertEqual(expected_size, actual_size,
111 byte_size_fn, field_number, value, expected_size, actual_size))
/third_party/protobuf/python/google/protobuf/internal/
Dwire_format_test.py110 expected_size = expected_value_size + tag_bytes
112 self.assertEqual(expected_size, actual_size,
115 byte_size_fn, field_number, value, expected_size, actual_size))
/third_party/ffmpeg/libavcodec/
Dzmbv.c420 int expected_size; in decode_frame() local
517 expected_size = avctx->width * avctx->height * (c->bpp / 8); in decode_frame()
519 expected_size = (c->bx * c->by * 2 + 3) & ~3; in decode_frame()
523 expected_size += 768; in decode_frame()
550 if (expected_size > c->decomp_len || in decode_frame()
551 (c->flags & ZMBV_KEYFRAME) && expected_size < c->decomp_len) { in decode_frame()
552 …x, AV_LOG_ERROR, "decompressed size %d is incorrect, expected %d\n", c->decomp_len, expected_size); in decode_frame()
/third_party/flutter/engine/flutter/lib/ui/painting/
Dcodec.cc182 const auto expected_size = in InstantiateImageCodec() local
184 if (buffer->size() < expected_size) { in InstantiateImageCodec()
/third_party/gstreamer/gstplugins_good/tests/check/elements/
Dmpg123audiodec.c266 gint expected_size; in run_decoding_test() local
340 expected_size = 1152 * GST_AUDIO_INFO_BPF (&audioinfo); in run_decoding_test()
341 fail_unless_equals_int (gst_buffer_get_size (outbuffer), expected_size); in run_decoding_test()
Dqtdemux.c30 guint expected_size; member
61 fail_unless_equals_int (gst_buffer_get_size (buf), data->expected_size); in qtdemux_probe()
252 data.expected_size = seg_1_sample_sizes[i]; in GST_START_TEST()
/third_party/gstreamer/gstplugins_bad/gst/mpegtsdemux/
Dtsdemux.c188 guint expected_size; member
2205 stream->expected_size = 0; in gst_ts_demux_stream_flush()
2723 stream->expected_size = header.packet_length; in gst_ts_demux_parse_pes_header()
2724 if (stream->expected_size) { in gst_ts_demux_parse_pes_header()
2725 if (G_LIKELY (stream->expected_size > header.header_size)) { in gst_ts_demux_parse_pes_header()
2726 stream->expected_size -= header.header_size; in gst_ts_demux_parse_pes_header()
2730 stream->expected_size = 0; in gst_ts_demux_parse_pes_header()
2737 if (stream->expected_size) in gst_ts_demux_parse_pes_header()
2738 stream->allocated_size = MAX (stream->expected_size, length); in gst_ts_demux_parse_pes_header()
3279 if (stream->expected_size && stream->current_size != stream->expected_size) { in parse_jp2k_access_unit()
[all …]
/third_party/flutter/skia/tests/
DJSONTest.cpp164 static void check_vector(skiatest::Reporter* reporter, const Value& v, size_t expected_size, in check_vector() argument
173 REPORTER_ASSERT(reporter, vec.size() == expected_size); in check_vector()
175 REPORTER_ASSERT(reporter, vec.end() == vec.begin() + expected_size); in check_vector()
/third_party/skia/tests/
DJSONTest.cpp164 static void check_vector(skiatest::Reporter* reporter, const Value& v, size_t expected_size, in check_vector() argument
173 REPORTER_ASSERT(reporter, vec.size() == expected_size); in check_vector()
175 REPORTER_ASSERT(reporter, vec.end() == vec.begin() + expected_size); in check_vector()
/third_party/json/test/src/
Dunit-ubjson.cpp2059 std::vector<uint8_t> expected_size = {'[', '#', 'i', 2, 'i', 1, 'i', 2}; variable
2061 CHECK(json::to_ubjson(j, true) == expected_size);
2068 std::vector<uint8_t> expected_size = {'[', '#', 'i', 2, 'U', 0xC8, 'U', 0xC9}; variable
2070 CHECK(json::to_ubjson(j, true) == expected_size);
2077 … std::vector<uint8_t> expected_size = {'[', '#', 'i', 2, 'I', 0x75, 0x30, 'I', 0x75, 0x31}; variable
2079 CHECK(json::to_ubjson(j, true) == expected_size);
2086 …std::vector<uint8_t> expected_size = {'[', '#', 'i', 2, 'l', 0x00, 0x01, 0x11, 0x70, 'l', 0x00, 0x… variable
2088 CHECK(json::to_ubjson(j, true) == expected_size);
2095 …std::vector<uint8_t> expected_size = {'[', '#', 'i', 2, 'L', 0x00, 0x00, 0x00, 0x01, 0x2A, 0x05, 0… variable
2097 CHECK(json::to_ubjson(j, true) == expected_size);

12