Home
last modified time | relevance | path

Searched refs:fixture (Results 1 – 25 of 130) sorted by relevance

123456

/third_party/openssl/test/
Dcmp_protect_test.c38 static void tear_down(CMP_PROTECT_TEST_FIXTURE *fixture) in tear_down() argument
40 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down()
41 OSSL_CMP_MSG_free(fixture->msg); in tear_down()
42 OSSL_CMP_PKISI_free(fixture->si); in tear_down()
44 OPENSSL_free(fixture->mem); in tear_down()
45 sk_X509_free(fixture->certs); in tear_down()
46 sk_X509_free(fixture->chain); in tear_down()
48 OPENSSL_free(fixture); in tear_down()
53 CMP_PROTECT_TEST_FIXTURE *fixture; in set_up() local
55 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
[all …]
Dcmp_msg_test.c38 static void tear_down(CMP_MSG_TEST_FIXTURE *fixture) in tear_down() argument
40 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down()
41 OSSL_CMP_MSG_free(fixture->msg); in tear_down()
42 OSSL_CMP_PKISI_free(fixture->si); in tear_down()
43 OPENSSL_free(fixture); in tear_down()
50 CMP_MSG_TEST_FIXTURE *fixture; in set_up() local
52 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
54 fixture->test_case_name = test_case_name; in set_up()
56 if (!TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL)) in set_up()
57 || !TEST_true(SET_OPT_UNPROTECTED_SEND(fixture->cmp_ctx, 1)) in set_up()
[all …]
Dcmp_vfy_test.c43 static void tear_down(CMP_VFY_TEST_FIXTURE *fixture) in tear_down() argument
45 OSSL_CMP_MSG_free(fixture->msg); in tear_down()
46 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down()
47 OPENSSL_free(fixture); in tear_down()
55 CMP_VFY_TEST_FIXTURE *fixture; in set_up() local
57 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
61 fixture->test_case_name = test_case_name; in set_up()
63 || !TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(libctx, NULL)) in set_up()
64 || !OSSL_CMP_CTX_set0_trustedStore(fixture->cmp_ctx, ts) in set_up()
65 || !OSSL_CMP_CTX_set_log_cb(fixture->cmp_ctx, print_to_bio_out)) { in set_up()
[all …]
Dct_test.c62 CT_TEST_FIXTURE *fixture = NULL; in set_up() local
64 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
66 fixture->test_case_name = test_case_name; in set_up()
67 fixture->epoch_time_in_ms = 1580335307000ULL; /* Wed 29 Jan 2020 10:01:47 PM UTC */ in set_up()
68 if (!TEST_ptr(fixture->ctlog_store = CTLOG_STORE_new()) in set_up()
70 CTLOG_STORE_load_default_file(fixture->ctlog_store), 1)) in set_up()
72 return fixture; in set_up()
75 if (fixture != NULL) in set_up()
76 CTLOG_STORE_free(fixture->ctlog_store); in set_up()
77 OPENSSL_free(fixture); in set_up()
[all …]
Dcmp_hdr_test.c24 static void tear_down(CMP_HDR_TEST_FIXTURE *fixture) in tear_down() argument
26 OSSL_CMP_PKIHEADER_free(fixture->hdr); in tear_down()
27 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down()
28 OPENSSL_free(fixture); in tear_down()
33 CMP_HDR_TEST_FIXTURE *fixture; in set_up() local
35 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
37 fixture->test_case_name = test_case_name; in set_up()
38 if (!TEST_ptr(fixture->cmp_ctx = OSSL_CMP_CTX_new(NULL, NULL))) in set_up()
40 if (!TEST_ptr(fixture->hdr = OSSL_CMP_PKIHEADER_new())) in set_up()
42 return fixture; in set_up()
[all …]
Dcmp_client_test.c48 static void tear_down(CMP_SES_TEST_FIXTURE *fixture) in tear_down() argument
50 OSSL_CMP_CTX_free(fixture->cmp_ctx); in tear_down()
51 ossl_cmp_mock_srv_free(fixture->srv_ctx); in tear_down()
52 sk_X509_free(fixture->caPubs); in tear_down()
53 OPENSSL_free(fixture); in tear_down()
58 CMP_SES_TEST_FIXTURE *fixture; in set_up() local
62 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
64 fixture->test_case_name = test_case_name; in set_up()
65 if (!TEST_ptr(fixture->srv_ctx = ossl_cmp_mock_srv_new(libctx, NULL)) in set_up()
66 || !OSSL_CMP_SRV_CTX_set_accept_unprotected(fixture->srv_ctx, 1) in set_up()
[all …]
Dcmp_asn_test.c26 CMP_ASN_TEST_FIXTURE *fixture; in set_up() local
28 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
30 fixture->test_case_name = test_case_name; in set_up()
31 return fixture; in set_up()
34 static void tear_down(CMP_ASN_TEST_FIXTURE *fixture) in tear_down() argument
36 ASN1_OCTET_STRING_free(fixture->src_string); in tear_down()
37 if (fixture->tgt_string != fixture->src_string) in tear_down()
38 ASN1_OCTET_STRING_free(fixture->tgt_string); in tear_down()
40 OPENSSL_free(fixture); in tear_down()
43 static int execute_cmp_asn1_get_int_test(CMP_ASN_TEST_FIXTURE *fixture) in execute_cmp_asn1_get_int_test() argument
[all …]
Dssl_test_ctx_test.c112 SSL_TEST_CTX_TEST_FIXTURE *fixture; in set_up() local
114 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
116 fixture->test_case_name = test_case_name; in set_up()
117 if (!TEST_ptr(fixture->expected_ctx = SSL_TEST_CTX_new(NULL))) { in set_up()
118 OPENSSL_free(fixture); in set_up()
121 return fixture; in set_up()
124 static int execute_test(SSL_TEST_CTX_TEST_FIXTURE *fixture) in execute_test() argument
129 if (!TEST_ptr(ctx = SSL_TEST_CTX_create(conf, fixture->test_section, in execute_test()
130 fixture->expected_ctx->libctx)) in execute_test()
131 || !testctx_eq(ctx, fixture->expected_ctx)) in execute_test()
[all …]
Dcmp_status_test.c24 CMP_STATUS_TEST_FIXTURE *fixture; in set_up() local
26 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
28 fixture->test_case_name = test_case_name; in set_up()
29 return fixture; in set_up()
32 static void tear_down(CMP_STATUS_TEST_FIXTURE *fixture) in tear_down() argument
34 OPENSSL_free(fixture); in tear_down()
41 static int execute_PKISI_test(CMP_STATUS_TEST_FIXTURE *fixture) in execute_PKISI_test() argument
48 if (!TEST_ptr(si = OSSL_CMP_STATUSINFO_new(fixture->pkistatus, in execute_PKISI_test()
49 fixture->pkifailure, in execute_PKISI_test()
50 fixture->text))) in execute_PKISI_test()
[all …]
Dcipherlist_test.c31 static void tear_down(CIPHERLIST_TEST_FIXTURE *fixture) in tear_down() argument
33 if (fixture != NULL) { in tear_down()
34 SSL_CTX_free(fixture->server); in tear_down()
35 SSL_CTX_free(fixture->client); in tear_down()
36 fixture->server = fixture->client = NULL; in tear_down()
37 OPENSSL_free(fixture); in tear_down()
43 CIPHERLIST_TEST_FIXTURE *fixture; in set_up() local
45 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
47 fixture->test_case_name = test_case_name; in set_up()
48 if (!TEST_ptr(fixture->server = SSL_CTX_new(TLS_server_method())) in set_up()
[all …]
Dcmp_server_test.c25 static void tear_down(CMP_SRV_TEST_FIXTURE *fixture) in tear_down() argument
27 OSSL_CMP_SRV_CTX_free(fixture->srv_ctx); in tear_down()
28 OPENSSL_free(fixture); in tear_down()
33 CMP_SRV_TEST_FIXTURE *fixture; in set_up() local
35 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
37 fixture->test_case_name = test_case_name; in set_up()
38 if (!TEST_ptr(fixture->srv_ctx = OSSL_CMP_SRV_CTX_new(libctx, NULL))) in set_up()
40 return fixture; in set_up()
43 tear_down(fixture); in set_up()
62 static int execute_test_handle_request(CMP_SRV_TEST_FIXTURE *fixture) in execute_test_handle_request() argument
[all …]
Dkeymgmt_internal_test.c40 static void tear_down(FIXTURE *fixture) in tear_down() argument
42 if (fixture != NULL) { in tear_down()
43 OSSL_PROVIDER_unload(fixture->prov1); in tear_down()
44 OSSL_PROVIDER_unload(fixture->prov2); in tear_down()
45 OSSL_LIB_CTX_free(fixture->ctx1); in tear_down()
46 OSSL_LIB_CTX_free(fixture->ctx2); in tear_down()
47 OPENSSL_free(fixture); in tear_down()
53 FIXTURE *fixture; in set_up() local
55 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))) in set_up()
56 || !TEST_ptr(fixture->ctx1 = OSSL_LIB_CTX_new()) in set_up()
[all …]
Dcmp_ctx_test.c26 static void tear_down(OSSL_CMP_CTX_TEST_FIXTURE *fixture) in tear_down() argument
28 if (fixture != NULL) in tear_down()
29 OSSL_CMP_CTX_free(fixture->ctx); in tear_down()
30 OPENSSL_free(fixture); in tear_down()
35 OSSL_CMP_CTX_TEST_FIXTURE *fixture; in set_up() local
37 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) in set_up()
39 if (!TEST_ptr(fixture->ctx = OSSL_CMP_CTX_new(NULL, NULL))) { in set_up()
40 tear_down(fixture); in set_up()
43 fixture->test_case_name = test_case_name; in set_up()
44 return fixture; in set_up()
[all …]
/third_party/skia/third_party/externals/harfbuzz/test/api/
Dtest-blob.c101 free_up (fixture_t *fixture) in free_up() argument
103 g_assert_cmpint (fixture->freed, ==, 0); in free_up()
104 fixture->freed++; in free_up()
108 free_up_free (fixture_t *fixture) in free_up_free() argument
110 free_up (fixture); in free_up_free()
111 free (fixture->data); in free_up_free()
135 free_up_munmap (fixture_t *fixture) in free_up_munmap() argument
137 free_up (fixture); in free_up_munmap()
138 munmap (fixture->data, get_pagesize ()); in free_up_munmap()
144 fixture_init (fixture_t *fixture, gconstpointer user_data) in fixture_init() argument
[all …]
Dtest-buffer.c60 fixture_init (fixture_t *fixture, gconstpointer user_data) in fixture_init() argument
65 b = fixture->buffer = hb_buffer_create (); in fixture_init()
95 fixture_finish (fixture_t *fixture, gconstpointer user_data HB_UNUSED) in fixture_finish() argument
97 hb_buffer_destroy (fixture->buffer); in fixture_finish()
102 test_buffer_properties (fixture_t *fixture, gconstpointer user_data HB_UNUSED) in test_buffer_properties() argument
104 hb_buffer_t *b = fixture->buffer; in test_buffer_properties()
180 test_buffer_contents (fixture_t *fixture, gconstpointer user_data) in test_buffer_contents() argument
182 hb_buffer_t *b = fixture->buffer; in test_buffer_contents()
297 test_buffer_positions (fixture_t *fixture, gconstpointer user_data HB_UNUSED) in test_buffer_positions() argument
299 hb_buffer_t *b = fixture->buffer; in test_buffer_positions()
[all …]
/third_party/node/test/internet/
Dtest-dns-idna2008.js16 const fixture = { variable
25 dns.setServers([fixture.dnsServer]);
28 fixture.hostname,
29 { family: fixture.family },
36 assert.strictEqual(address, fixture.expectedAddress);
40 dns.promises.lookup(fixture.hostname, { family: fixture.family })
42 assert.strictEqual(address, fixture.expectedAddress);
51 dns.resolve4(fixture.hostname, mustCall((err, addresses) => {
57 assert.deepStrictEqual(addresses, [fixture.expectedAddress]);
60 const p = new dns.promises.Resolver().resolve4(fixture.hostname);
[all …]
/third_party/node/test/parallel/
Dtest-runner-coverage.js73 const fixture = fixtures.path('test-runner', 'coverage.js'); constant
74 const args = ['--experimental-test-coverage', fixture];
86 const fixture = fixtures.path('test-runner', 'coverage.js'); constant
87 const args = ['--experimental-test-coverage', '--test-reporter', 'tap', fixture];
99 const fixture = fixtures.path('test-runner', 'coverage.js'); constant
100 const args = ['--experimental-test-coverage', '--test-reporter', 'tap', fixture];
113 const fixture = fixtures.path('test-runner', 'coverage.js'); constant
114 const args = ['--experimental-test-coverage', '--test-reporter', 'spec', fixture];
126 const fixture = fixtures.path('test-runner', 'coverage.js'); constant
127 const args = ['--experimental-test-coverage', '--test-reporter', 'spec', fixture];
[all …]
Dtest-child-process-execfile.js11 const fixture = fixtures.path('exit.js'); constant
18 [fixture, 42],
22 `Command failed: ${process.execPath} ${fixture} 42`);
49 execFile(process.execPath, [fixture, 0], execOpts, common.mustSucceed());
101 execFile(process.execPath, [fixture, 0], { signal }, callback);
/third_party/node/deps/npm/node_modules/isexe/test/
Dbasic.js4 var fixture = path.resolve(__dirname, 'fixtures') variable
5 var meow = fixture + '/meow.cat'
6 var mine = fixture + '/mine.cat'
7 var ours = fixture + '/ours.cat'
8 var fail = fixture + '/fail.false'
9 var noent = fixture + '/enoent.exe'
26 rimraf.sync(fixture)
27 mkdirp.sync(fixture)
114 rimraf.sync(fixture)
/third_party/libuv/test/
Dtest-fs-copyfile.c36 static const char fixture[] = "test/fixtures/load_error.node"; variable
137 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL); in TEST_IMPL()
149 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL); in TEST_IMPL()
154 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_EXCL, NULL); in TEST_IMPL()
174 r = uv_fs_copyfile(loop, &req, fixture, dst, 0, handle_result); in TEST_IMPL()
182 r = uv_fs_copyfile(loop, &req, fixture, dst, -1, fail_cb); in TEST_IMPL()
188 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_FICLONE, NULL); in TEST_IMPL()
194 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_FICLONE_FORCE, in TEST_IMPL()
/third_party/mesa3d/bin/
Dgen_calendar_entries_test.py53 @pytest.fixture(autouse=True, scope='module')
92 @pytest.fixture(scope='class', autouse=True)
111 @pytest.fixture(scope='class', autouse=True)
130 @pytest.fixture(scope='class', autouse=True)
155 @pytest.fixture(autouse=True, scope='class')
166 @pytest.fixture(autouse=True)
270 @pytest.fixture(autouse=True, scope='class')
282 @pytest.fixture(autouse=True)
/third_party/node/deps/npm/test/lib/commands/
Dlink.js119 linked: t.fixture('symlink', '../../../other/scoped-linked'),
133 'test-pkg-link': t.fixture('symlink', '../../other/test-pkg-link'),
209 linked: t.fixture('symlink', '../../../other/scoped-linked'),
223 'test-pkg-link': t.fixture('symlink', '../../other/test-pkg-link'),
297 linked: t.fixture('symlink', '../../../other/scoped-linked'),
333 globalPrefixDir: t.fixture('symlink', './other/real-global-prefix'),
340 linked: t.fixture('symlink', '../../../scoped-linked'),
376 linked: t.fixture('symlink', '../../other/linked'),
/third_party/typescript/tests/baselines/reference/
DnarrowingAssignmentReadonlyRespectsAssertion.js27 const fixture = dataFunc<TestCase<string | number>>(subDataFunc); constant
28 fixture.cases.forEach(({ val1, val2 }) => {
57 var fixture = dataFunc(subDataFunc);
58 fixture.cases.forEach(function (_a) {
/third_party/node/test/addons/openssl-key-engine/
Dtest.js3 const fixture = require('../../common/fixtures'); constant
20 const agentKey = fs.readFileSync(fixture.path('/keys/agent1-key.pem'));
21 const agentCert = fs.readFileSync(fixture.path('/keys/agent1-cert.pem'));
22 const agentCa = fs.readFileSync(fixture.path('/keys/ca1-cert.pem'));
/third_party/node/test/addons/openssl-client-cert-engine/
Dtest.js3 const fixture = require('../../common/fixtures'); constant
20 const agentKey = fs.readFileSync(fixture.path('/keys/agent1-key.pem'));
21 const agentCert = fs.readFileSync(fixture.path('/keys/agent1-cert.pem'));
22 const agentCa = fs.readFileSync(fixture.path('/keys/ca1-cert.pem'));

123456