Lines Matching refs:fixture
24 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()
40 static int execute_PKISI_test(CMP_STATUS_TEST_FIXTURE *fixture) in execute_PKISI_test() argument
47 if (!TEST_ptr(si = OSSL_CMP_STATUSINFO_new(fixture->pkistatus, in execute_PKISI_test()
48 fixture->pkifailure, in execute_PKISI_test()
49 fixture->text))) in execute_PKISI_test()
53 if (!TEST_int_eq(fixture->pkistatus, status) in execute_PKISI_test()
54 || !TEST_str_eq(fixture->str, ossl_cmp_PKIStatus_to_string(status))) in execute_PKISI_test()
60 || !TEST_mem_eq(fixture->text, strlen(fixture->text), in execute_PKISI_test()
64 if (!TEST_int_eq(fixture->pkifailure, in execute_PKISI_test()
68 if (!TEST_int_eq((fixture->pkifailure >> i) & 1, in execute_PKISI_test()
82 fixture->pkistatus = OSSL_CMP_PKISTATUS_revocationNotification; in test_PKISI()
83 fixture->str = "PKIStatus: revocation notification - a revocation of the cert has occurred"; in test_PKISI()
84 fixture->text = "this is an additional text describing the failure"; in test_PKISI()
85 fixture->pkifailure = OSSL_CMP_CTX_FAILINFO_unsupportedVersion | in test_PKISI()