Home
last modified time | relevance | path

Searched refs:test_ctx (Results 1 - 11 of 11) sorted by relevance

/third_party/ffmpeg/libavutil/tests/
H A Dopt.c125 TestContext test_ctx = { 0 }; in main() local
126 test_ctx.class = &test_class; in main()
127 av_opt_set_defaults(&test_ctx); in main()
129 printf("num=%d\n", test_ctx.num); in main()
130 printf("toggle=%d\n", test_ctx.toggle); in main()
131 printf("string=%s\n", test_ctx.string); in main()
132 printf("escape=%s\n", test_ctx.escape); in main()
133 printf("flags=%d\n", test_ctx.flags); in main()
134 printf("rational=%d/%d\n", test_ctx.rational.num, test_ctx in main()
157 TestContext test_ctx = { 0 }; main() local
177 TestContext test_ctx = { 0 }; main() local
218 TestContext test_ctx = { 0 }; main() local
242 TestContext test_ctx = { 0 }; main() local
329 TestContext test_ctx = { 0 }; main() local
[all...]
/third_party/openssl/test/
H A Dssl_test.c34 static int check_result(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) in check_result() argument
36 if (!TEST_int_eq(result->result, test_ctx->expected_result)) { in check_result()
38 ssl_test_result_name(test_ctx->expected_result), in check_result()
45 static int check_alerts(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) in check_alerts() argument
75 if (test_ctx->expected_client_alert in check_alerts()
81 && (result->client_alert_sent & 0xff) != test_ctx->expected_client_alert) { in check_alerts()
83 print_alert(test_ctx->expected_client_alert), in check_alerts()
88 if (test_ctx->expected_server_alert in check_alerts()
89 && (result->server_alert_sent & 0xff) != test_ctx->expected_server_alert) { in check_alerts()
91 print_alert(test_ctx in check_alerts()
103 check_protocol(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_protocol() argument
124 check_servername(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_servername() argument
135 check_session_ticket(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_session_ticket() argument
149 check_session_id(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_session_id() argument
162 check_compression(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_compression() argument
169 check_npn(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_npn() argument
182 check_alpn(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_alpn() argument
194 check_session_ticket_app_data(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_session_ticket_app_data() argument
215 check_resumption(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_resumption() argument
281 check_tmp_key(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_tmp_key() argument
287 check_server_cert_type(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_server_cert_type() argument
294 check_server_sign_hash(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_server_sign_hash() argument
301 check_server_sign_type(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_server_sign_type() argument
308 check_server_ca_names(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_server_ca_names() argument
316 check_client_cert_type(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_client_cert_type() argument
323 check_client_sign_hash(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_client_sign_hash() argument
330 check_client_sign_type(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_client_sign_type() argument
337 check_client_ca_names(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_client_ca_names() argument
345 check_cipher(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_cipher() argument
362 check_test(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) check_test() argument
399 SSL_TEST_CTX *test_ctx = NULL; test_handshake() local
[all...]
/third_party/openssl/test/helpers/
H A Dssl_test_ctx.c101 __owur static int parse_expected_result(SSL_TEST_CTX *test_ctx, const char *value) in parse_expected_result() argument
108 test_ctx->expected_result = ret_value; in parse_expected_result()
134 __owur static int parse_client_alert(SSL_TEST_CTX *test_ctx, const char *value) in parse_client_alert() argument
136 return parse_alert(&test_ctx->expected_client_alert, value); in parse_client_alert()
139 __owur static int parse_server_alert(SSL_TEST_CTX *test_ctx, const char *value) in parse_server_alert() argument
141 return parse_alert(&test_ctx->expected_server_alert, value); in parse_server_alert()
161 __owur static int parse_protocol(SSL_TEST_CTX *test_ctx, const char *value) in parse_protocol() argument
164 &test_ctx->expected_protocol, value); in parse_protocol()
221 __owur static int parse_expected_servername(SSL_TEST_CTX *test_ctx, in parse_expected_servername() argument
229 test_ctx in parse_expected_servername()
278 parse_session_ticket(SSL_TEST_CTX *test_ctx, const char *value) parse_session_ticket() argument
308 parse_session_id(SSL_TEST_CTX *test_ctx, const char *value) parse_session_id() argument
333 parse_test_method(SSL_TEST_CTX *test_ctx, const char *value) parse_test_method() argument
380 parse_handshake_mode(SSL_TEST_CTX *test_ctx, const char *value) parse_handshake_mode() argument
408 parse_key_update_type(SSL_TEST_CTX *test_ctx, const char *value) parse_key_update_type() argument
541 parse_expected_tmp_key_type(SSL_TEST_CTX *test_ctx, const char *value) parse_expected_tmp_key_type() argument
547 parse_expected_server_cert_type(SSL_TEST_CTX *test_ctx, const char *value) parse_expected_server_cert_type() argument
554 parse_expected_server_sign_type(SSL_TEST_CTX *test_ctx, const char *value) parse_expected_server_sign_type() argument
561 parse_expected_client_cert_type(SSL_TEST_CTX *test_ctx, const char *value) parse_expected_client_cert_type() argument
568 parse_expected_client_sign_type(SSL_TEST_CTX *test_ctx, const char *value) parse_expected_client_sign_type() argument
593 parse_expected_server_sign_hash(SSL_TEST_CTX *test_ctx, const char *value) parse_expected_server_sign_hash() argument
600 parse_expected_client_sign_hash(SSL_TEST_CTX *test_ctx, const char *value) parse_expected_client_sign_hash() argument
619 parse_expected_server_ca_names(SSL_TEST_CTX *test_ctx, const char *value) parse_expected_server_ca_names() argument
625 parse_expected_client_ca_names(SSL_TEST_CTX *test_ctx, const char *value) parse_expected_client_ca_names() argument
[all...]
H A Dhandshake.c860 static void do_reneg_setup_step(const SSL_TEST_CTX *test_ctx, PEER *peer) in do_reneg_setup_step() argument
877 || !TEST_true(test_ctx->handshake_mode in do_reneg_setup_step()
879 || test_ctx->handshake_mode in do_reneg_setup_step()
881 || test_ctx->handshake_mode in do_reneg_setup_step()
883 || test_ctx->handshake_mode in do_reneg_setup_step()
885 || test_ctx->handshake_mode in do_reneg_setup_step()
892 peer->bytes_to_write = peer->bytes_to_read = test_ctx->app_data_size; in do_reneg_setup_step()
895 if ((test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_SERVER in do_reneg_setup_step()
897 || (test_ctx->handshake_mode == SSL_TEST_HANDSHAKE_RENEG_CLIENT in do_reneg_setup_step()
914 if (test_ctx in do_reneg_setup_step()
1070 renegotiate_op(const SSL_TEST_CTX *test_ctx) renegotiate_op() argument
1080 post_handshake_op(const SSL_TEST_CTX *test_ctx) post_handshake_op() argument
1092 next_phase(const SSL_TEST_CTX *test_ctx, connect_phase_t phase) next_phase() argument
1119 do_connect_step(const SSL_TEST_CTX *test_ctx, PEER *peer, connect_phase_t phase) do_connect_step() argument
1393 do_handshake_internal( SSL_CTX *server_ctx, SSL_CTX *server2_ctx, SSL_CTX *client_ctx, const SSL_TEST_CTX *test_ctx, const SSL_TEST_EXTRA_CONF *extra, SSL_SESSION *session_in, SSL_SESSION *serv_sess_in, SSL_SESSION **session_out, SSL_SESSION **serv_sess_out) do_handshake_internal() argument
1720 do_handshake(SSL_CTX *server_ctx, SSL_CTX *server2_ctx, SSL_CTX *client_ctx, SSL_CTX *resume_server_ctx, SSL_CTX *resume_client_ctx, const SSL_TEST_CTX *test_ctx) do_handshake() argument
[all...]
H A Dpkcs12.c29 static OSSL_LIB_CTX *test_ctx = NULL; variable
64 test_ctx = libctx; in PKCS12_helper_set_libctx()
162 p12 = PKCS12_add_safes_ex(pb->safes, 0, test_ctx, test_propq); in generate_p12()
173 md = EVP_MD_fetch(test_ctx, OBJ_nid2sn(mac->nid), test_propq); in generate_p12()
215 p12 = PKCS12_init_ex(NID_pkcs7_data, test_ctx, test_propq); in from_bio_p12()
299 enc->iter, enc->pass, test_ctx, in end_contentinfo_encrypted()
430 test_ctx, test_propq); in add_keybag()
612 p8 = PKCS12_decrypt_skey_ex(bag, enc->pass, strlen(enc->pass), test_ctx, test_propq); in check_keybag()
H A Dhandshake.h89 const SSL_TEST_CTX *test_ctx);
/third_party/pulseaudio/src/tests/
H A Dlo-latency-test.c44 pa_lo_test_context test_ctx; variable
142 test_ctx.context_name = context_name; in START_TEST()
144 test_ctx.sample_spec.format = PA_SAMPLE_FLOAT32, in START_TEST()
145 test_ctx.sample_spec.rate = SAMPLE_HZ, in START_TEST()
146 test_ctx.sample_spec.channels = CHANNELS, in START_TEST()
148 test_ctx.play_latency = 25; in START_TEST()
149 test_ctx.rec_latency = 5; in START_TEST()
151 test_ctx.read_cb = read_cb; in START_TEST()
152 test_ctx.write_cb = write_cb; in START_TEST()
161 fail_unless(pa_lo_test_init(&test_ctx) in START_TEST()
[all...]
/third_party/python/Lib/test/test_asyncio/
H A Dtest_threads.py52 test_ctx = ContextVar('test_ctx')
55 return test_ctx.get()
57 test_ctx.set('parrot')
/third_party/node/deps/openssl/openssl/apps/
H A Dspeed.c2612 EVP_PKEY_CTX *test_ctx = NULL; in speed_main() local
2640 if ((test_ctx = EVP_PKEY_CTX_new(key_B, NULL)) == NULL /* test ctx from skeyB */ in speed_main()
2641 || EVP_PKEY_derive_init(test_ctx) <= 0 /* init derivation test_ctx */ in speed_main()
2642 || EVP_PKEY_derive_set_peer(test_ctx, key_A) <= 0 /* set peer pubkey in test_ctx */ in speed_main()
2643 || EVP_PKEY_derive(test_ctx, NULL, &test_outlen) <= 0 /* determine max length */ in speed_main()
2645 || EVP_PKEY_derive(test_ctx, loopargs[i].secret_b, &test_outlen) <= 0 /* compute b*A */ in speed_main()
2669 EVP_PKEY_CTX_free(test_ctx); in speed_main()
2670 test_ctx in speed_main()
2955 EVP_PKEY_CTX *test_ctx = NULL; speed_main() local
[all...]
/third_party/openssl/apps/
H A Dspeed.c2598 EVP_PKEY_CTX *test_ctx = NULL; in speed_main() local
2626 if ((test_ctx = EVP_PKEY_CTX_new(key_B, NULL)) == NULL /* test ctx from skeyB */ in speed_main()
2627 || EVP_PKEY_derive_init(test_ctx) <= 0 /* init derivation test_ctx */ in speed_main()
2628 || EVP_PKEY_derive_set_peer(test_ctx, key_A) <= 0 /* set peer pubkey in test_ctx */ in speed_main()
2629 || EVP_PKEY_derive(test_ctx, NULL, &test_outlen) <= 0 /* determine max length */ in speed_main()
2631 || EVP_PKEY_derive(test_ctx, loopargs[i].secret_b, &test_outlen) <= 0 /* compute b*A */ in speed_main()
2655 EVP_PKEY_CTX_free(test_ctx); in speed_main()
2656 test_ctx in speed_main()
2941 EVP_PKEY_CTX *test_ctx = NULL; speed_main() local
[all...]
/third_party/libuv/test/
H A Dtest-ipc-send-recv.c43 struct test_ctx { struct
65 static struct test_ctx ctx;

Completed in 15 milliseconds