Home
last modified time | relevance | path

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

123

/external/libweave/src/
Ddevice_registration_info_unittest.cc45 namespace test_data { namespace
112 std::string("Bearer ") + test_data::kAccessToken}; in GetAuthHeader()
136 settings->client_id = test_data::kClientId; in ReloadDefaults()
137 settings->client_secret = test_data::kClientSecret; in ReloadDefaults()
138 settings->api_key = test_data::kApiKey; in ReloadDefaults()
146 settings->oauth_url = test_data::kOAuthURL; in ReloadDefaults()
147 settings->service_url = test_data::kServiceURL; in ReloadDefaults()
148 settings->xmpp_endpoint = test_data::kXmppEndpoint; in ReloadDefaults()
162 dict.SetString("refresh_token", test_data::kRefreshToken); in ReloadSettings()
163 dict.SetString("cloud_id", test_data::kCloudId); in ReloadSettings()
[all …]
Dstreams_unittest.cc19 std::vector<uint8_t> test_data(1024 * 1024); in TEST() local
20 for (size_t i = 0; i < test_data.size(); ++i) in TEST()
21 test_data[i] = static_cast<uint8_t>(std::hash<size_t>()(i)); in TEST()
22 MemoryStream source{test_data, &task_runner}; in TEST()
28 [&test_data, &done, &destination](size_t size, ErrorPtr error) { in TEST()
31 EXPECT_EQ(test_data, destination.GetData()); in TEST()
36 task_runner.Run(test_data.size()); in TEST()
/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/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/chromium-trace/catapult/third_party/html5lib-python/html5lib/tests/
Dtokenizertotree.py36 for test_data in tests_data['tests']:
37 if 'initialStates' not in test_data:
38 test_data["initialStates"] = ["Data state"]
40 for initial_state in test_data["initialStates"]:
44 test = make_test(test_data)
50 def make_test(test_data): argument
51 if 'doubleEscaped' in test_data:
52 test_data = test_tokenizer.unescape_test(test_data)
56 rv.append(test_data["input"].encode("utf8"))
58 tree = p.parse(test_data["input"])
/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/libchrome/crypto/
Dsymmetric_key_unittest.cc82 PBKDF2TestVector test_data(GetParam()); in TEST_P() local
86 if (strlen(test_data.salt) < 8 || test_data.rounds < 1000) { in TEST_P()
87 VLOG(1) << "Skipped test vector for " << test_data.expected; in TEST_P()
94 test_data.algorithm, in TEST_P()
95 test_data.password, test_data.salt, in TEST_P()
96 test_data.rounds, test_data.key_size_in_bits)); in TEST_P()
101 EXPECT_EQ(test_data.key_size_in_bits / 8, raw_key.size()); in TEST_P()
102 EXPECT_EQ(test_data.expected, in TEST_P()
/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()
Dvb20_common2_tests.c21 static const uint8_t test_data[] = "This is some test data to sign."; variable
22 static const uint32_t test_size = sizeof(test_data);
100 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
106 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
112 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
117 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
122 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
126 TEST_NEQ(vb2_verify_data(test_data, test_size - 1, sig2, &pubk, &wb), in test_verify_data()
131 TEST_NEQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
166 CalculateSignature(test_data, sizeof(test_data), private_key); in test_algorithm()
Dvboot_common2_tests.c46 const uint8_t test_data[] = "This is some test data to sign."; in VerifyDataTest() local
47 const uint64_t test_size = sizeof(test_data); in VerifyDataTest()
51 sig = CalculateSignature(test_data, test_size, private_key); in VerifyDataTest()
60 TEST_EQ(VerifyData(test_data, test_size, sig, rsa), 0, in VerifyDataTest()
64 TEST_EQ(VerifyData(test_data, test_size, sig, rsa), 1, in VerifyDataTest()
68 TEST_EQ(VerifyData(test_data, test_size - 1, sig, rsa), 1, in VerifyDataTest()
72 TEST_EQ(VerifyData(test_data, test_size, sig, rsa), 1, in VerifyDataTest()
82 const uint8_t test_data[] = "This is some other test data to sign."; in VerifyDigestTest() local
87 sig = CalculateSignature(test_data, sizeof(test_data), private_key); in VerifyDigestTest()
89 digest = DigestBuf(test_data, sizeof(test_data), in VerifyDigestTest()
Dvb21_host_sig_tests.c36 const uint8_t test_data[] = "Some test data"; variable
37 const uint32_t test_size = sizeof(test_data);
82 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, NULL), in sig_tests()
90 TEST_SUCC(vb2_verify_data(test_data, test_size, sig, pubk, &wb), in sig_tests()
94 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, in sig_tests()
100 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, ""), in sig_tests()
107 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prihash, NULL), in sig_tests()
109 TEST_SUCC(vb2_verify_data(test_data, test_size, sig, &pubhash, &wb), in sig_tests()
115 TEST_EQ(vb2_sign_data(&sig, test_data, test_size, &prik2, NULL), in sig_tests()
Dvb21_common2_tests.c22 static const uint8_t test_data[] = "This is some test data to sign."; variable
23 static const uint32_t test_size = sizeof(test_data);
192 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
198 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
205 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
211 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
216 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
220 TEST_EQ(vb2_verify_data(test_data, test_size - 1, sig2, &pubk, &wb), in test_verify_data()
226 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
233 TEST_EQ(vb2_verify_data(test_data, test_size, sig2, &pubk, &wb), in test_verify_data()
[all …]
Dvb21_common_tests.c19 static const uint8_t test_data[] = "This is some test data to sign."; variable
235 TEST_SUCC(vb2_sign_data(&sig, test_data, sizeof(test_data), prik, NULL), in test_verify_hash()
238 TEST_SUCC(vb2_verify_data(test_data, sizeof(test_data), in test_verify_hash()
243 TEST_EQ(vb2_verify_data(test_data, sizeof(test_data), sig, &pubk, &wb), in test_verify_hash()
406 TEST_SUCC(vb2_sign_data(hashes + 0, test_data, sizeof(test_data), in test_verify_fw_preamble()
/external/google-breakpad/src/common/linux/
Dlinux_libc_support_unittest.cc38 static const char* test_data[] = { "", "a", "aa", "aaa", "aabc", NULL }; in TEST() local
40 if (!test_data[i]) in TEST()
42 ASSERT_EQ(strlen(test_data[i]), my_strlen(test_data[i])); in TEST()
47 static const char* test_data[] = { in TEST() local
60 if (!test_data[i*2]) in TEST()
62 int libc_result = strcmp(test_data[i*2], test_data[i*2 + 1]); in TEST()
67 ASSERT_EQ(my_strcmp(test_data[i*2], test_data[i*2 + 1]), libc_result); in TEST()
/external/autotest/tko/
Dcompose_query.cgi282 test_data = frontend.get_matrix_data(db_obj, column, row, where,
292 if not f_row in test_data.y_values:
293 test_data.y_values.append(f_row)
295 if not f_column in test_data.x_values:
296 test_data.x_values.append(f_column)
298 if not test_data.y_values:
308 for x in test_data.x_values:
318 for y in test_data.y_values:
325 for x in test_data.x_values:
331 box_data = test_data.data[x][y]
[all …]
/external/autotest/client/cros/chameleon/
Daudio_widget.py249 def set_playback_data(self, test_data): argument
257 self._remote_playback_path = self.handler.set_playback_data(test_data)
396 test_data = audio_test_data.AudioTestData(record_format, f.name)
397 converted_test_data = test_data.convert(record_format, self.scale)
434 def set_playback_data(self, test_data): argument
445 self._test_data_for_chameleon_format = test_data.data_format
446 return self._scale_and_send_playback_data(test_data)
449 def _scale_and_send_playback_data(self, test_data): argument
459 test_data_for_chameleon = test_data.convert(
521 def set_playback_data(self, test_data): argument
[all …]
/external/harfbuzz_ng/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()
Dhb-test.h185 gconstpointer test_data, in hb_test_add_data_func() argument
189 g_test_add_data_func (normal_path, test_data, test_func); in hb_test_add_data_func()
197 gconstpointer test_data, in hb_test_add_data_func_flavor() argument
201 hb_test_add_data_func (path, test_data, test_func); in hb_test_add_data_func_flavor()
210 gconstpointer test_data, in hb_test_add_vtable() argument
216 g_test_add_vtable (normal_path, data_size, test_data, data_setup, data_test, data_teardown); in hb_test_add_vtable()
238 gconstpointer test_data, in hb_test_add_vtable_flavor() argument
244 hb_test_add_vtable (path, data_size, test_data, data_setup, data_test, data_teardown); in hb_test_add_vtable_flavor()
Dtest-font.c32 static const char test_data[] = "test\0data"; variable
53 blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL); in test_face_create()
79 return hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL); in get_table()
102 g_assert_cmpint (len, ==, sizeof (test_data)); in test_face_createfortables()
103 g_assert (0 == memcmp (data, test_data, sizeof (test_data))); in test_face_createfortables()
153 blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL); in _test_fontfuncs_nil()
265 blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL); in test_fontfuncs_subclassing()
381 blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL); in test_font_properties()
/external/sfntly/cpp/src/test/
Dendian_test.cc28 byte_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()
/external/webrtc/webrtc/modules/audio_processing/intelligibility/
Dintelligibility_utils_unittest.cc83 const vector<vector<complex<float>>> test_data( in TEST() local
94 variance_array.Step(&test_data[0][0]); in TEST()
96 variance_array.Step(&test_data[i][0]); in TEST()
125 vector<vector<complex<float>>> test_data(kSamples); in TEST() local
129 test_data[i].push_back(complex<float>(static_cast<float>(kSamples - i), in TEST()
132 test_data[i].push_back(complex<float>(0.f, 0.f)); in TEST()
138 variance_array.Step(&test_data[i][0]); in TEST()
/external/google-breakpad/src/processor/
Dcontained_range_map_unittest.cc112 const int test_data[] = { in RunTests() local
214 unsigned int test_high = sizeof(test_data) / sizeof(int); in RunTests()
235 if (value != test_data[address]) { in RunTests()
237 address, test_data[address], value, __FILE__, __LINE__); in RunTests()
/external/e2fsprogs/tests/d_loaddump/
Dscript23 echo "debugfs -R ''write $TEST_DATA test_data'' -w test.img" > $OUT.new
24 $DEBUGFS -R "write $TEST_DATA test_data" -w $TMPFILE >> $OUT.new 2>&1
35 echo "debugfs -R ''dump test_data $VERIFY_DATA'' test.img" > $OUT.new
36 $DEBUGFS -R "dump test_data $VERIFY_DATA" $TMPFILE >> $OUT.new 2>&1
/external/libmicrohttpd/src/testcurl/https/
Dtls_test_common.c77 len = strlen (test_data); in test_daemon_get()
126 if (memcmp (cbc.buf, test_data, len) != 0) in test_daemon_get()
182 response = MHD_create_response_from_buffer (strlen (test_data), in http_ahc()
183 (void *) test_data, in http_ahc()
323 len = strlen (test_data); in test_https_transfer()
345 if ( (len != strlen (test_data)) || in test_https_transfer()
347 test_data, in test_https_transfer()
/external/autotest/client/cros/audio/
Daudio_helper.py682 def get_one_channel_correlation(test_data, golden_data): argument
696 trimmed_test_data, end_trimmed_length = trim_data(test_data)
759 def compare_one_channel_correlation(test_data, golden_data, parameters): argument
780 test_data, golden_data)
819 def compare_one_channel_frequency(test_data, test_data_format, argument
839 test_data_stat = get_one_channel_stat(test_data, test_data_format)
855 def compare_one_channel_data(test_data, test_data_format, argument
878 return compare_one_channel_correlation(test_data, golden_data,
882 test_data, test_data_format, golden_data, golden_data_format)
925 test_data = audio_data.AudioRawData(
[all …]

123