Lines Matching defs:fixture
24 CMP_STATUS_TEST_FIXTURE *fixture;
26 if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
28 fixture->test_case_name = test_case_name;
29 return fixture;
32 static void tear_down(CMP_STATUS_TEST_FIXTURE *fixture)
34 OPENSSL_free(fixture);
41 static int execute_PKISI_test(CMP_STATUS_TEST_FIXTURE *fixture)
48 if (!TEST_ptr(si = OSSL_CMP_STATUSINFO_new(fixture->pkistatus,
49 fixture->pkifailure,
50 fixture->text)))
54 if (!TEST_int_eq(fixture->pkistatus, status)
55 || !TEST_str_eq(fixture->str, ossl_cmp_PKIStatus_to_string(status)))
61 || !TEST_mem_eq(fixture->text, strlen(fixture->text),
65 if (!TEST_int_eq(fixture->pkifailure,
69 if (!TEST_int_eq((fixture->pkifailure >> i) & 1,
83 fixture->pkistatus = OSSL_CMP_PKISTATUS_revocationNotification;
84 fixture->str = "PKIStatus: revocation notification - a revocation of the cert has occurred";
85 fixture->text = "this is an additional text describing the failure";
86 fixture->pkifailure = OSSL_CMP_CTX_FAILINFO_unsupportedVersion |