Home
last modified time | relevance | path

Searched refs:test_data (Results 1 – 25 of 96) sorted by relevance

1234

/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/
DesextcGeometryShaderAdjacencyTests.cpp133 void GeometryShaderAdjacencyTests::configureTestDataLines(AdjacencyTestData& test_data, bool withGS… in configureTestDataLines() argument
158 test_data.m_gs_code = (withGS) ? gsCode : 0; in configureTestDataLines()
159 test_data.m_mode = GL_LINES_ADJACENCY_EXT; in configureTestDataLines()
160 test_data.m_tf_mode = GL_LINES; in configureTestDataLines()
162 createGrid(test_data); in configureTestDataLines()
166 setLinePointsindiced(test_data); in configureTestDataLines()
170 setLinePointsNonindiced(test_data); in configureTestDataLines()
181 void GeometryShaderAdjacencyTests::configureTestDataLineStrip(AdjacencyTestData& test_data, bool wi… in configureTestDataLineStrip() argument
206 test_data.m_gs_code = (withGS) ? gsCode : 0; in configureTestDataLineStrip()
207 test_data.m_mode = GL_LINE_STRIP_ADJACENCY_EXT; in configureTestDataLineStrip()
[all …]
DesextcGeometryShaderAdjacencyTests.hpp219 …void configureTestDataLines(AdjacencyTestData& test_data, bool withGS = false, bool indiced = fals…
220 …void configureTestDataLineStrip(AdjacencyTestData& test_data, bool withGS = false, bool indiced = …
221 …void configureTestDataTriangles(AdjacencyTestData& test_data, bool withGS = false, bool indiced = …
222 …void configureTestDataTriangleStrip(AdjacencyTestData& test_data, bool withGS = false, bool indice…
224 void createGrid(AdjacencyTestData& test_data);
225 void createGridLineSegments(AdjacencyTestData& test_data);
226 void createGridLineStrip(AdjacencyTestData& test_data);
227 void createGridTriangles(AdjacencyTestData& test_data);
228 void createGridTriangleStrip(AdjacencyTestData& test_data);
230 void setLinePointsNonindiced(AdjacencyTestData& test_data);
[all …]
/third_party/skia/third_party/externals/brotli/python/tests/
Dbro_test.py16 def _get_original_name(test_data): argument
17 return test_data.split('.compressed')[0]
22 def _check_decompression(self, test_data): argument
24 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
25 original = _get_original_name(test_data)
28 def _decompress_file(self, test_data): argument
29 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
30 args = BRO_ARGS + ['-f', '-d', '-i', test_data, '-o', temp_uncompressed]
33 def _decompress_pipe(self, test_data): argument
34 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
[all …]
Dcompressor_test.py23 def _check_decompression(self, test_data): argument
25 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
26 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
27 original = test_data
33 def _test_single_process(self, test_data): argument
35 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
37 with open(test_data, 'rb') as in_file:
40 self._check_decompression(test_data)
42 def _test_multiple_process(self, test_data): argument
44 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
[all …]
Ddecompress_test.py12 def _get_original_name(test_data): argument
13 return test_data.split('.compressed')[0]
18 def _check_decompression(self, test_data): argument
20 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
21 original = _get_original_name(test_data)
24 def _decompress(self, test_data): argument
25 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
27 with open(test_data, 'rb') as in_file:
30 def _test_decompress(self, test_data): argument
31 self._decompress(test_data)
[all …]
Ddecompressor_test.py13 def _get_original_name(test_data): argument
14 return test_data.split('.compressed')[0]
27 def _check_decompression(self, test_data): argument
29 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
30 original = _get_original_name(test_data)
33 def _decompress(self, test_data): argument
34 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
36 with open(test_data, 'rb') as in_file:
42 def _test_decompress(self, test_data): argument
43 self._decompress(test_data)
[all …]
Dcompress_test.py16 def _check_decompression(self, test_data, **kwargs): argument
19 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
20 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
21 original = test_data
27 def _compress(self, test_data, **kwargs): argument
28 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
30 with open(test_data, 'rb') as in_file:
33 def _test_compress(self, test_data, **kwargs): argument
34 self._compress(test_data, **kwargs)
35 self._check_decompression(test_data, **kwargs)
/third_party/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate02.c72 } test_data[] = { variable
86 int TST_TOTAL = ARRAY_SIZE(test_data);
132 TEST(fallocate(*test_data[i].fd, test_data[i].mode, in fallocate_verify()
133 test_data[i].offset * BLOCK_SIZE, in fallocate_verify()
134 test_data[i].len * BLOCK_SIZE)); in fallocate_verify()
135 if (TEST_ERRNO != test_data[i].error) { in fallocate_verify()
143 "failed, expected errno:%d", test_data[i].fname, in fallocate_verify()
144 *test_data[i].fd, test_data[i].mode, in fallocate_verify()
145 test_data[i].offset * BLOCK_SIZE, in fallocate_verify()
146 test_data[i].len * BLOCK_SIZE, test_data[i].error); in fallocate_verify()
[all …]
Dfallocate03.c119 } test_data[] = { variable
134 int TST_TOTAL = sizeof(test_data) / sizeof(test_data[0]);
242 (fd, test_data[test_index].mode, in main()
243 test_data[test_index].offset * block_size, in main()
244 test_data[test_index].len * block_size)); in main()
247 if (TEST_RETURN != test_data[test_index].error) { in main()
256 test_data[test_index].mode, in main()
257 test_data[test_index].offset * in main()
259 test_data[test_index].len * in main()
266 test_data[test_index].mode, in main()
[all …]
/third_party/gstreamer/gstplugins_bad/tests/check/libs/
Dplay.c190 gpointer test_data; member
293 gint step = GPOINTER_TO_INT (new_state->test_data); in test_play_audio_video_eos_cb()
308 new_state->test_data = in test_play_audio_video_eos_cb()
315 new_state->test_data = in test_play_audio_video_eos_cb()
320 new_state->test_data = in test_play_audio_video_eos_cb()
332 new_state->test_data = in test_play_audio_video_eos_cb()
339 new_state->test_data = in test_play_audio_video_eos_cb()
344 new_state->test_data = in test_play_audio_video_eos_cb()
351 new_state->test_data = in test_play_audio_video_eos_cb()
358 new_state->test_data = in test_play_audio_video_eos_cb()
[all …]
/third_party/ltp/testcases/kernel/syscalls/setreuid/
Dsetreuid04.c51 } test_data[] = { variable
57 int TST_TOTAL = ARRAY_SIZE(test_data);
83 TEST(SETREUID(cleanup, *test_data[i].real_uid, in main()
84 *test_data[i].eff_uid)); in main()
89 *test_data[i].real_uid, in main()
90 *test_data[i].eff_uid); in main()
94 *test_data[i].real_uid, in main()
95 *test_data[i].eff_uid); in main()
98 uid_verify(test_data[i].exp_real_usr, in main()
99 test_data[i].exp_eff_usr, in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/setregid/
Dsetregid04.c29 } test_data[] = { variable
67 TEST(SETREGID(*test_data[i].real_gid, *test_data[i].eff_gid)); in run()
71 *test_data[i].real_gid, *test_data[i].eff_gid); in run()
75 gid_verify(*test_data[i].exp_real_usr, *test_data[i].exp_eff_usr, in run()
76 test_data[i].test_msg); in run()
90 .tcnt = ARRAY_SIZE(test_data),
/third_party/gstreamer/gstplugins_good/tests/check/elements/
Drtpstorage.c431 StressTestData *test_data = data; in rtpstorage_stress_prepare_buffer() local
432 gsize ssrc_idx = g_rand_int_range (test_data->rnd, 0, STRESS_TEST_SSRCS); in rtpstorage_stress_prepare_buffer()
433 guint16 seq = test_data->seq[ssrc_idx]; in rtpstorage_stress_prepare_buffer()
434 guint32 ssrc = test_data->ssrc[ssrc_idx]; in rtpstorage_stress_prepare_buffer()
435 gboolean is_fec = test_data->count[ssrc_idx] > 0 && (seq % 5 == 0 in rtpstorage_stress_prepare_buffer()
441 ++test_data->seq[ssrc_idx]; in rtpstorage_stress_prepare_buffer()
442 ++test_data->count[ssrc_idx]; in rtpstorage_stress_prepare_buffer()
453 StressTestData test_data; in GST_START_TEST() local
463 memset (&test_data, 0, sizeof (test_data)); in GST_START_TEST()
465 test_data.rnd = g_rand_new_with_seed (seed); in GST_START_TEST()
[all …]
Drtpvp8.c159 const struct no_meta_test_data *test_data = &no_meta_test_data[__i__]; in GST_START_TEST() local
166 fail_unless (test_data->pid <= VP8_PAY_PICTURE_ID_15BITS); in GST_START_TEST()
168 g_object_set (h->element, "picture-id-mode", test_data->pid, in GST_START_TEST()
175 if ((test_data->vp8_payload_control_value & 0x20) != 0) { in GST_START_TEST()
186 12 + test_data->vp8_payload_header_size + sizeof (vp8_bitstream_payload)); in GST_START_TEST()
188 fail_unless_equals_int (test_data->vp8_payload_control_value, map.data[12]); in GST_START_TEST()
190 if (test_data->vp8_payload_header_size > 2) { in GST_START_TEST()
194 if (test_data->pid == VP8_PAY_PICTURE_ID_7BITS) { in GST_START_TEST()
196 } else if (test_data->pid == VP8_PAY_PICTURE_ID_15BITS) { in GST_START_TEST()
268 const struct with_meta_test_data *test_data = &with_meta_test_data[__i__]; in GST_START_TEST() local
[all …]
/third_party/skia/third_party/externals/harfbuzz/test/api/
Dtest-blob.c81 static const char test_data[] = "test\0data"; variable
154 data = test_data; in fixture_init()
155 len = sizeof (test_data); in fixture_init()
160 data = test_data; in fixture_init()
161 len = sizeof (test_data); in fixture_init()
166 data = malloc (sizeof (test_data)); in fixture_init()
167 memcpy ((char *) data, test_data, sizeof (test_data)); in fixture_init()
168 len = sizeof (test_data); in fixture_init()
179 memcpy ((char *) data, test_data, sizeof (test_data)); in fixture_init()
181 len = sizeof (test_data); in fixture_init()
Dtest-font.c32 static const char test_data[] = "test\0data"; variable
63 blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL); in test_face_create()
89 return hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL); in get_table()
112 g_assert_cmpint (len, ==, sizeof (test_data)); in test_face_createfortables()
113 g_assert (0 == memcmp (data, test_data, sizeof (test_data))); in test_face_createfortables()
160 blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL); in _test_fontfuncs_nil()
272 blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL); in test_fontfuncs_subclassing()
402 blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL); in test_fontfuncs_parallels()
469 blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL); in test_font_properties()
Dhb-test.h212 gconstpointer test_data, in hb_test_add_data_func() argument
216 g_test_add_data_func (normal_path, test_data, test_func); in hb_test_add_data_func()
224 gconstpointer test_data, in hb_test_add_data_func_flavor() argument
228 hb_test_add_data_func (path, test_data, test_func); in hb_test_add_data_func_flavor()
237 gconstpointer test_data, in hb_test_add_vtable() argument
243 g_test_add_vtable (normal_path, data_size, test_data, data_setup, data_test, data_teardown); in hb_test_add_vtable()
265 gconstpointer test_data, in hb_test_add_vtable_flavor() argument
271 hb_test_add_vtable (path, data_size, test_data, data_setup, data_test, data_teardown); in hb_test_add_vtable_flavor()
/third_party/curl/tests/unit/
Dunit2601.c89 static unsigned char test_data[32*1024]; variable
117 n = Curl_bufq_write(&q, test_data, wsize, &result); in check_bufq()
126 n = Curl_bufq_write(&q, test_data, wsize, &result); in check_bufq()
145 n = Curl_bufq_read(&q, test_data, rsize, &result); in check_bufq()
166 n = Curl_bufq_write(&q, test_data, wsize, &result); in check_bufq()
171 n = Curl_bufq_read(&q, test_data, rsize, &result); in check_bufq()
183 n = Curl_bufq_write(&q, test_data, wsize, &result); in check_bufq()
197 n = Curl_bufq_write(&q, test_data, wsize, &result); in check_bufq()
203 n = Curl_bufq_read(&q, test_data, rsize, &result); in check_bufq()
/third_party/vk-gl-cts/external/amber/src/src/vkscript/
Ddatum_type_parser_test.cc64 const auto& test_data = GetParam(); in TEST_P() local
67 auto type = tp.Parse(test_data.name); in TEST_P()
71 EXPECT_TRUE(AllCompsAreType(&fmt, test_data.type, test_data.num_bits)); in TEST_P()
72 EXPECT_EQ(test_data.column_count, type->ColumnCount()); in TEST_P()
73 EXPECT_EQ(test_data.row_count, type->RowCount()); in TEST_P()
157 auto test_data = GetParam(); in TEST_P() local
160 auto type = tp.Parse(test_data.name); in TEST_P()
162 ASSERT_TRUE(type != nullptr) << test_data.name; in TEST_P()
165 ASSERT_EQ(test_data.format_type, fmt.GetFormatType()) << test_data.name; in TEST_P()
/third_party/skia/third_party/externals/sfntly/cpp/src/test/
Dendian_test.cc28 uint8_t test_data[] = { in TestEndian() local
39 for (size_t i = 0; i < sizeof(test_data); ++i) { in TestEndian()
40 ba1->Put(i, test_data[i]); in TestEndian()
68 EXPECT_EQ(memcmp(os.Get(), test_data, sizeof(test_data)), 0); in TestEndian()
/third_party/gstreamer/gstplugins_bad/tests/check/elements/
Djpegparse.c154 _make_buffers_in (GList * buffer_in, guint8 * test_data, gsize test_data_size) in _make_buffers_in() argument
161 gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, test_data + i, 1, in _make_buffers_in()
168 #define make_buffers_in(buffer_in, test_data) \ argument
169 _make_buffers_in(buffer_in, test_data, sizeof(test_data))
172 _make_buffers_out (GList * buffer_out, guint8 * test_data, gsize test_data_size) in _make_buffers_out() argument
177 gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, test_data, in _make_buffers_out()
184 #define make_buffers_out(buffer_out, test_data) \ argument
185 _make_buffers_out(buffer_out, test_data, sizeof(test_data))
/third_party/gstreamer/gstplugins_bad/tests/check/pipelines/
Dipcpipeline.c112 } test_data; typedef
367 test_data *td = user_data; in master_bus_msg()
547 int fdoutv, test_data * td) in create_source()
627 test_data *td = user_data; in ensure_sink_setup()
786 test_data td = { input_data, master_data, slave_data, features, FALSE, NULL, in test_base()
1019 test_data *td = user_data; in idlenull()
1033 test_data *td = user_data; in idlepause()
1054 test_data *td = user_data; in idleplay()
1075 test_data *td = user_data; in play_pause_on_state_changed()
1101 test_data *td = user_data; in play_pause_source()
[all …]
/third_party/ffmpeg/libavutil/tests/
Dcolor_utils.c26 static const double test_data[] = { in main() local
34 for(j = 0; j < FF_ARRAY_ELEMS(test_data); j++) { in main()
36 double result = func(test_data[j]); in main()
38 i, test_data[j], result); in main()
/third_party/vk-gl-cts/external/amber/src/src/amberscript/
Dparser_clear_depth_test.cc98 auto test_data = GetParam(); in TEST_P() local
113 test_data.data; in TEST_P()
117 ASSERT_FALSE(r.IsSuccess()) << test_data.data; in TEST_P()
118 EXPECT_EQ(std::string("13: ") + test_data.error, r.Error()) << test_data.data; in TEST_P()
Dparser_clear_stencil_test.cc98 auto test_data = GetParam(); in TEST_P() local
113 test_data.data; in TEST_P()
117 ASSERT_FALSE(r.IsSuccess()) << test_data.data; in TEST_P()
118 EXPECT_EQ(std::string("13: ") + test_data.error, r.Error()) << test_data.data; in TEST_P()

1234