]> git.ipfire.org Git - thirdparty/strongswan.git/blob - programs/charon/testing/generator_test.h
- renamed get_block_size of hasher
[thirdparty/strongswan.git] / programs / charon / testing / generator_test.h
1 /**
2 * @file generator_test.h
3 *
4 * @brief Tests for the generator_t class.
5 *
6 */
7
8 /*
9 * Copyright (C) 2005 Jan Hutter, Martin Willi
10 * Hochschule fuer Technik Rapperswil
11 *
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * for more details.
21 */
22
23 #ifndef GENERATOR_TEST_H_
24 #define GENERATOR_TEST_H_
25
26 #include <utils/tester.h>
27
28 /**
29 * @brief Test function used to test the generator with header payload.
30 *
31 * @param tester associated protected_tester_t object
32 *
33 * @ingroup testcases
34 */
35 void test_generator_with_header_payload(protected_tester_t *tester);
36
37 /**
38 * @brief Test function used to test the generator with transform attribute payload.
39 *
40 * @param tester associated protected_tester_t object
41 *
42 * @ingroup testcases
43 */
44 void test_generator_with_transform_attribute(protected_tester_t *tester);
45
46
47 /**
48 * @brief Test function used to test the generator with transform substructure payload.
49 *
50 * @param tester associated protected_tester_t object
51 *
52 * @ingroup testcases
53 */
54 void test_generator_with_transform_substructure(protected_tester_t *tester);
55
56 /**
57 * @brief Test function used to test the generator with proposal substructure payload.
58 *
59 * @param tester associated protected_tester_t object
60 *
61 * @ingroup testcases
62 */
63 void test_generator_with_proposal_substructure(protected_tester_t *tester);
64
65 /**
66 * @brief Test function used to test the generator with SA payload.
67 *
68 * @param tester associated protected_tester_t object
69 *
70 * @ingroup testcases
71 */
72 void test_generator_with_sa_payload(protected_tester_t *tester);
73
74 /**
75 * @brief Test function used to test the generator with KE payload.
76 *
77 * @param tester associated protected_tester_t object
78 *
79 * @ingroup testcases
80 */
81 void test_generator_with_ke_payload(protected_tester_t *tester);
82
83 /**
84 * @brief Test function used to test the generator with Notify payload.
85 *
86 * @param tester associated protected_tester_t object
87 *
88 * @ingroup testcases
89 */
90 void test_generator_with_notify_payload(protected_tester_t *tester);
91
92 /**
93 * @brief Test function used to test the generator with Nonce payload.
94 *
95 * @param tester associated protected_tester_t object
96 *
97 * @ingroup testcases
98 */
99 void test_generator_with_nonce_payload(protected_tester_t *tester);
100
101 /**
102 * @brief Test function used to test the generator with ID payload.
103 *
104 * @param tester associated protected_tester_t object
105 *
106 * @ingroup testcases
107 */
108 void test_generator_with_id_payload(protected_tester_t *tester);
109
110 /**
111 * @brief Test function used to test the generator with AUTH payload.
112 *
113 * @param tester associated protected_tester_t object
114 *
115 * @ingroup testcases
116 */
117 void test_generator_with_auth_payload(protected_tester_t *tester);
118
119 /**
120 * @brief Test function used to test the generator with TS payload.
121 *
122 * @param tester associated protected_tester_t object
123 *
124 * @ingroup testcases
125 */
126 void test_generator_with_ts_payload(protected_tester_t *tester);
127
128 /**
129 * @brief Test function used to test the generator with CERT payload.
130 *
131 * @param tester associated protected_tester_t object
132 *
133 * @ingroup testcases
134 */
135 void test_generator_with_cert_payload(protected_tester_t *tester);
136
137 /**
138 * @brief Test function used to test the generator with CERTREQ payload.
139 *
140 * @param tester associated protected_tester_t object
141 *
142 * @ingroup testcases
143 */
144 void test_generator_with_certreq_payload(protected_tester_t *tester);
145
146 /**
147 * @brief Test function used to test the generator with DELETE payload.
148 *
149 * @param tester associated protected_tester_t object
150 *
151 * @ingroup testcases
152 */
153 void test_generator_with_delete_payload(protected_tester_t *tester);
154
155 /**
156 * @brief Test function used to test the generator with VENDOR ID payload.
157 *
158 * @param tester associated protected_tester_t object
159 *
160 * @ingroup testcases
161 */
162 void test_generator_with_vendor_id_payload(protected_tester_t *tester);
163
164 /**
165 * @brief Test function used to test the generator with CP payload.
166 *
167 * @param tester associated protected_tester_t object
168 *
169 * @ingroup testcases
170 */
171 void test_generator_with_cp_payload(protected_tester_t *tester);
172
173 /**
174 * @brief Test function used to test the generator with EAP payload.
175 *
176 * @param tester associated protected_tester_t object
177 *
178 * @ingroup testcases
179 */
180 void test_generator_with_eap_payload(protected_tester_t *tester);
181
182
183 #endif /*GENERATOR_TEST_H_*/