Home
last modified time | relevance | path

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

1234

/external/brotli/python/tests/
Dbro_test.py17 def _get_original_name(test_data): argument
18 return test_data.split('.compressed')[0]
23 def _check_decompression(self, test_data): argument
25 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
26 original = _get_original_name(test_data)
29 def _decompress_file(self, test_data): argument
30 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
31 args = [PYTHON, BRO, '-f', '-d', '-i', test_data, '-o',
35 def _decompress_pipe(self, test_data): argument
36 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
[all …]
Dcompress_test.py16 def _check_decompression(self, test_data, **kwargs): argument
23 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
24 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
25 original = test_data
31 def _compress(self, test_data, **kwargs): argument
32 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
34 with open(test_data, 'rb') as in_file:
37 def _test_compress(self, test_data, **kwargs): argument
38 self._compress(test_data, **kwargs)
39 self._check_decompression(test_data, **kwargs)
[all …]
Dcompressor_test.py20 def _check_decompression(self, test_data): argument
22 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
23 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
24 original = test_data
30 def _test_single_process(self, test_data): argument
32 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
34 with open(test_data, 'rb') as in_file:
37 self._check_decompression(test_data)
39 def _test_multiple_process(self, test_data): argument
41 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 …]
/external/autotest/client/common_lib/
Dmail_unittest.py6 class test_data: class
18 test_data.mail_host = host
19 test_data.mail_port = port
21 if test_data.mail_host:
22 self.connect(test_data.mail_host, test_data.mail_port)
26 test_data.mail_connect = True
30 test_data.mail_connect = False
34 test_data.mail_from_address = from_address
35 test_data.mail_to_address = to_address
36 test_data.mail_message = message
[all …]
/external/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate02.c70 } test_data[] = { variable
84 int TST_TOTAL = ARRAY_SIZE(test_data);
130 TEST(fallocate(*test_data[i].fd, test_data[i].mode, in fallocate_verify()
131 test_data[i].offset * BLOCK_SIZE, in fallocate_verify()
132 test_data[i].len * BLOCK_SIZE)); in fallocate_verify()
133 if (TEST_ERRNO != test_data[i].error) { in fallocate_verify()
141 "failed, expected errno:%d", test_data[i].fname, in fallocate_verify()
142 *test_data[i].fd, test_data[i].mode, in fallocate_verify()
143 test_data[i].offset * BLOCK_SIZE, in fallocate_verify()
144 test_data[i].len * BLOCK_SIZE, test_data[i].error); in fallocate_verify()
[all …]
Dfallocate03.c118 } test_data[] = { variable
133 int TST_TOTAL = sizeof(test_data) / sizeof(test_data[0]);
243 (fd, test_data[test_index].mode, in main()
244 test_data[test_index].offset * block_size, in main()
245 test_data[test_index].len * block_size)); in main()
248 if (TEST_RETURN != test_data[test_index].error) { in main()
257 test_data[test_index].mode, in main()
258 test_data[test_index].offset * in main()
260 test_data[test_index].len * in main()
267 test_data[test_index].mode, in main()
[all …]
/external/ltp/testcases/kernel/syscalls/setresuid/
Dsetresuid02.c95 } test_data[] = { variable
104 int TST_TOTAL = sizeof(test_data) / sizeof(test_data[0]);
138 TEST(SETRESUID(NULL, *test_data[i].real_uid, in main()
139 *test_data[i].eff_uid, in main()
140 *test_data[i].sav_uid)); in main()
145 *test_data[i].real_uid, in main()
146 *test_data[i].eff_uid, in main()
147 *test_data[i].sav_uid); in main()
151 *test_data[i].real_uid, in main()
152 *test_data[i].eff_uid, in main()
[all …]
Dsetresuid03.c102 } test_data[] = { variable
112 int TST_TOTAL = sizeof(test_data) / sizeof(test_data[0]);
147 TEST(SETRESUID(NULL, *test_data[i].real_uid, in main()
148 *test_data[i].eff_uid, in main()
149 *test_data[i].sav_uid)); in main()
152 test_data[i].exp_errno) { in main()
155 *test_data[i].real_uid, in main()
156 *test_data[i].eff_uid, in main()
157 *test_data[i].sav_uid); in main()
161 *test_data[i].real_uid, in main()
[all …]
Dsetresuid01.c93 } test_data[] = { variable
114 int TST_TOTAL = sizeof(test_data) / sizeof(test_data[0]);
138 TEST(SETRESUID(cleanup, *test_data[i].real_uid, in main()
139 *test_data[i].eff_uid, in main()
140 *test_data[i].sav_uid)); in main()
144 *test_data[i].real_uid, in main()
145 *test_data[i].eff_uid, in main()
146 *test_data[i].sav_uid); in main()
148 uid_verify(test_data[i].exp_real_usr, in main()
149 test_data[i].exp_eff_usr, in main()
[all …]
/external/ltp/testcases/kernel/syscalls/setregid/
Dsetregid03.c57 } test_data[] = { variable
81 int TST_TOTAL = sizeof(test_data) / sizeof(test_data[0]);
116 TEST(SETREGID(NULL, *test_data[i].real_gid, in main()
117 *test_data[i].eff_gid)); in main()
120 if (test_ret == *test_data[i].exp_ret) { in main()
127 *test_data in main()
129 *test_data in main()
137 *test_data in main()
139 *test_data in main()
146 *test_data[i].real_gid, in main()
[all …]
Dsetregid02.c57 } test_data[] = { variable
73 int TST_TOTAL = ARRAY_SIZE(test_data);
95 TEST(SETREGID(NULL, *test_data[i].real_gid, in main()
96 *test_data[i].eff_gid)); in main()
99 if (TEST_ERRNO == test_data[i].exp_errno) { in main()
102 *test_data[i].real_gid, in main()
103 *test_data[i].eff_gid); in main()
108 *test_data[i].real_gid, in main()
109 *test_data[i].eff_gid, in main()
111 test_data[i].exp_errno); in main()
[all …]
Dsetregid04.c51 } test_data[] = { variable
73 int TST_TOTAL = sizeof(test_data) / sizeof(test_data[0]);
94 TEST(SETREGID(cleanup, *test_data[i].real_gid, in main()
95 *test_data[i].eff_gid)); in main()
99 *test_data[i].real_gid, in main()
100 *test_data[i].eff_gid); in main()
102 gid_verify(test_data[i].exp_real_usr, in main()
103 test_data[i].exp_eff_usr, in main()
104 test_data[i].test_msg); in main()
/external/pdfium/core/fpdfdoc/
Dcpdf_filespec_unittest.cpp16 std::vector<pdfium::NullTermWstrFuncTestData> test_data = { in TEST() local
46 for (const auto& data : test_data) { in TEST()
58 pdfium::NullTermWstrFuncTestData test_data = { in TEST() local
71 new CPDF_String(nullptr, test_data.input)); in TEST()
75 EXPECT_TRUE(file_name == test_data.expected); in TEST()
79 pdfium::NullTermWstrFuncTestData test_data[5] = { in TEST() local
106 dict_obj->SetNewFor<CPDF_String>(keywords[i], test_data[i].input); in TEST()
108 EXPECT_TRUE(file_name == test_data[i].expected); in TEST()
115 EXPECT_TRUE(file_name == test_data[4].input); in TEST()
127 pdfium::NullTermWstrFuncTestData test_data = { in TEST() local
[all …]
/external/autotest/client/site_tests/network_DestinationVerification/
Dnetwork_DestinationVerification.py211 def _test_verify(self, test_data, expect_failure=False): argument
226 sign_bundle = test_data['sign']
227 unsigned_data = '%s,%s,%s,%s,%s' % (test_data['name'],
228 test_data['ssdp_udn'],
229 test_data['hotspot_bssid'],
230 test_data['public_key'],
236 message.mac_address = test_data['hotspot_bssid']
338 test_data = unicode2str(json.loads(TEST_DATA1))
339 self._test_verify(test_data)
342 test_data = unicode2str(json.loads(TEST_DATA1))
[all …]
/external/ltp/testcases/kernel/syscalls/setreuid/
Dsetreuid03.c55 } test_data[] = { variable
86 int TST_TOTAL = ARRAY_SIZE(test_data);
108 TEST(SETREUID(cleanup, *test_data[i].real_uid, in main()
109 *test_data[i].eff_uid)); in main()
111 if (TEST_RETURN == *test_data[i].exp_ret) { in main()
118 *test_data[i].real_uid, in main()
119 *test_data[i].eff_uid); in main()
124 *test_data[i].real_uid, in main()
125 *test_data[i].eff_uid); in main()
129 *test_data[i].real_uid, in main()
[all …]
Dsetreuid05.c49 } test_data[] = { variable
79 int TST_TOTAL = ARRAY_SIZE(test_data);
105 TEST(SETREUID(cleanup, *test_data[i].real_uid, in main()
106 *test_data[i].eff_uid)); in main()
108 if (TEST_RETURN == *test_data[i].exp_ret) { in main()
115 *test_data in main()
117 *test_data in main()
124 *test_data[i].real_uid, in main()
125 *test_data[i].eff_uid); in main()
130 *test_data[i].real_uid, in main()
[all …]
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 …]
Dsetreuid02.c49 } test_data[] = { variable
61 int TST_TOTAL = ARRAY_SIZE(test_data);
82 TEST(SETREUID(cleanup, *test_data[i].real_uid, in main()
83 *test_data[i].eff_uid)); in main()
87 *test_data[i].real_uid, in main()
88 *test_data[i].eff_uid); in main()
90 uid_verify(test_data[i].exp_real_usr, in main()
91 test_data[i].exp_eff_usr, in main()
92 test_data[i].test_msg); in main()
/external/autotest/cli/
Dcompose_query29 test_data = frontend.get_matrix_data(db, options.x_axis, options.y_axis, where) variable
32 widest_row_header = max([len(y) for y in test_data.y_values])
33 data_column_width = max([max(13,len(x)) for x in test_data.x_values])
34 column_widths = [widest_row_header] + [data_column_width] * len(test_data.x_values)
37 print format % tuple([''] + test_data.x_values)
40 for y in test_data.y_values:
42 for x in test_data.x_values:
44 data_point = test_data.data[x][y]
/external/autotest/client/cros/chameleon/
Daudio_widget_arc.py85 test_data = audio_test_data.AudioTestData(
87 converted_test_data = test_data.convert(record_format, 1.0)
104 def set_playback_data(self, test_data): argument
113 if test_data.data_format['file_type'] not in self._SUPPORTED_FILE_TYPES:
114 new_data_format = copy.deepcopy(test_data.data_format)
116 test_data = test_data.convert(new_data_format, 1.0)
117 return self._audio_facade.set_arc_playback_file(test_data.path)
/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_decode_unittest.cpp11 pdfium::DecodeTestData test_data[] = { in TEST() local
29 for (size_t i = 0; i < FX_ArraySize(test_data); ++i) { in TEST()
30 pdfium::DecodeTestData* ptr = &test_data[i]; in TEST()
46 pdfium::DecodeTestData test_data[] = { in TEST() local
64 for (size_t i = 0; i < FX_ArraySize(test_data); ++i) { in TEST()
65 pdfium::DecodeTestData* ptr = &test_data[i]; in TEST()
85 } test_data[] = { in TEST() local
100 for (size_t i = 0; i < FX_ArraySize(test_data); ++i) { in TEST()
101 const auto& test_case = test_data[i]; in TEST()
/external/ltp/testcases/kernel/syscalls/sync_file_range/
Dsync_file_range01.c117 } test_data[] = { variable
126 int TST_TOTAL = sizeof(test_data) / sizeof(test_data[0]);
274 (*(test_data[test_index].fd), in main()
275 test_data[test_index].offset, in main()
276 test_data[test_index].nbytes, in main()
277 test_data[test_index].flags)); in main()
286 if (TEST_ERRNO == test_data[test_index].error) { in main()
290 "expected %d", test_data[test_index].error); in main()
/external/libmojo/mojo/message_pump/
Dhandle_watcher_perftest.cc120 std::unique_ptr<TestData> test_data(new TestData); in TEST_P() local
121 ASSERT_TRUE(test_data->pipe.handle0.is_valid()); in TEST_P()
122 data_vector.push_back(std::move(test_data)); in TEST_P()
129 TestData* test_data = data_vector[i]; in TEST_P() local
130 test_data->watcher.Start( in TEST_P()
131 test_data->pipe.handle0.get(), MOJO_HANDLE_SIGNAL_READABLE, in TEST_P()
135 TestData* test_data = data_vector[i]; in TEST_P() local
136 test_data->watcher.Stop(); in TEST_P()
179 std::unique_ptr<TestData> test_data(new TestData); in TEST_P() local
180 ASSERT_TRUE(test_data->pipe.handle0.is_valid()); in TEST_P()
[all …]
/external/vboot_reference/tests/
Dvb21_host_misc_tests.c33 const uint8_t test_data[] = "Some test data"; in file_tests() local
44 TEST_EQ(vb2_write_file("no/such/dir", test_data, sizeof(test_data)), in file_tests()
47 TEST_SUCC(vb2_write_file(testfile, test_data, sizeof(test_data)), in file_tests()
51 TEST_EQ(read_size, sizeof(test_data), " data size"); in file_tests()
52 TEST_EQ(memcmp(read_data, test_data, read_size), 0, " data"); in file_tests()

1234