Lines Matching refs:fixture
25 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
64 OSSL_CMP_SRV_CTX *ctx = fixture->srv_ctx; in execute_test_handle_request()
97 if (!TEST_ptr(rsp = OSSL_CMP_CTX_server_perform(client_ctx, fixture->req)) in execute_test_handle_request()
116 fixture->req = request; in test_handle_request()
117 fixture->expected = 1; in test_handle_request()