]>
git.ipfire.org Git - thirdparty/strongswan.git/blob - programs/charon/testing/generator_test.h
2 * @file generator_test.h
4 * @brief Tests for the generator_t class.
9 * Copyright (C) 2005 Jan Hutter, Martin Willi
10 * Hochschule fuer Technik Rapperswil
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>.
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
23 #ifndef GENERATOR_TEST_H_
24 #define GENERATOR_TEST_H_
26 #include <utils/tester.h>
29 * @brief Test function used to test the generator with header payload.
31 * @param tester associated protected_tester_t object
35 void test_generator_with_header_payload(protected_tester_t
*tester
);
38 * @brief Test function used to test the generator with transform attribute payload.
40 * @param tester associated protected_tester_t object
44 void test_generator_with_transform_attribute(protected_tester_t
*tester
);
48 * @brief Test function used to test the generator with transform substructure payload.
50 * @param tester associated protected_tester_t object
54 void test_generator_with_transform_substructure(protected_tester_t
*tester
);
57 * @brief Test function used to test the generator with proposal substructure payload.
59 * @param tester associated protected_tester_t object
63 void test_generator_with_proposal_substructure(protected_tester_t
*tester
);
66 * @brief Test function used to test the generator with SA payload.
68 * @param tester associated protected_tester_t object
72 void test_generator_with_sa_payload(protected_tester_t
*tester
);
75 * @brief Test function used to test the generator with KE payload.
77 * @param tester associated protected_tester_t object
81 void test_generator_with_ke_payload(protected_tester_t
*tester
);
84 * @brief Test function used to test the generator with Notify payload.
86 * @param tester associated protected_tester_t object
90 void test_generator_with_notify_payload(protected_tester_t
*tester
);
93 * @brief Test function used to test the generator with Nonce payload.
95 * @param tester associated protected_tester_t object
99 void test_generator_with_nonce_payload(protected_tester_t
*tester
);
102 * @brief Test function used to test the generator with ID payload.
104 * @param tester associated protected_tester_t object
108 void test_generator_with_id_payload(protected_tester_t
*tester
);
111 * @brief Test function used to test the generator with AUTH payload.
113 * @param tester associated protected_tester_t object
117 void test_generator_with_auth_payload(protected_tester_t
*tester
);
120 * @brief Test function used to test the generator with TS payload.
122 * @param tester associated protected_tester_t object
126 void test_generator_with_ts_payload(protected_tester_t
*tester
);
129 * @brief Test function used to test the generator with CERT payload.
131 * @param tester associated protected_tester_t object
135 void test_generator_with_cert_payload(protected_tester_t
*tester
);
138 * @brief Test function used to test the generator with CERTREQ payload.
140 * @param tester associated protected_tester_t object
144 void test_generator_with_certreq_payload(protected_tester_t
*tester
);
147 * @brief Test function used to test the generator with DELETE payload.
149 * @param tester associated protected_tester_t object
153 void test_generator_with_delete_payload(protected_tester_t
*tester
);
156 * @brief Test function used to test the generator with VENDOR ID payload.
158 * @param tester associated protected_tester_t object
162 void test_generator_with_vendor_id_payload(protected_tester_t
*tester
);
165 * @brief Test function used to test the generator with CP payload.
167 * @param tester associated protected_tester_t object
171 void test_generator_with_cp_payload(protected_tester_t
*tester
);
174 * @brief Test function used to test the generator with EAP payload.
176 * @param tester associated protected_tester_t object
180 void test_generator_with_eap_payload(protected_tester_t
*tester
);
183 #endif /*GENERATOR_TEST_H_*/