]> git.ipfire.org Git - thirdparty/strongswan.git/blob - programs/charon/testing/parser_test.h
- import of strongswan-2.7.0
[thirdparty/strongswan.git] / programs / charon / testing / parser_test.h
1 /**
2 * @file parser_test.h
3 *
4 * @brief Tests for the parser_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 PARSER_TEST_H_
24 #define PARSER_TEST_H_
25
26 #include <utils/tester.h>
27
28 /**
29 * @brief Test function used to test the parser_t functionality when
30 * parsing a header payload.
31 *
32 * @param tester associated protected_tester_t object
33 *
34 * @ingroup testcases
35 */
36 void test_parser_with_header_payload(protected_tester_t *tester);
37
38 /**
39 * @brief Test function used to test the parser_t functionality when
40 * parsing a sa payload.
41 *
42 * @param tester associated protected_tester_t object
43 *
44 * @ingroup testcases
45 */
46 void test_parser_with_sa_payload(protected_tester_t *tester);
47
48 /**
49 * @brief Test function used to test the parser_t functionality when
50 * parsing a nonce payload.
51 *
52 * @param tester associated protected_tester_t object
53 *
54 * @ingroup testcases
55 */
56 void test_parser_with_nonce_payload(protected_tester_t *tester);
57
58 /**
59 * @brief Test function used to test the parser_t functionality when
60 * parsing a ID payload.
61 *
62 * @param tester associated protected_tester_t object
63 *
64 * @ingroup testcases
65 */
66 void test_parser_with_id_payload(protected_tester_t *tester);
67
68 /**
69 * @brief Test function used to test the parser_t functionality when
70 * parsing a ke payload.
71 *
72 * @param tester associated protected_tester_t object
73 *
74 * @ingroup testcases
75 */
76 void test_parser_with_ke_payload(protected_tester_t *tester);
77
78 /**
79 * @brief Test function used to test the parser_t functionality when
80 * parsing a notify payload.
81 *
82 * @param tester associated protected_tester_t object
83 *
84 * @ingroup testcases
85 */
86 void test_parser_with_notify_payload(protected_tester_t *tester);
87
88 /**
89 * @brief Test function used to test the parser_t functionality when
90 * parsing a AUTH payload.
91 *
92 * @param tester associated protected_tester_t object
93 *
94 * @ingroup testcases
95 */
96 void test_parser_with_auth_payload(protected_tester_t *tester);
97
98 /**
99 * @brief Test function used to test the parser_t functionality when
100 * parsing a TS payload.
101 *
102 * @param tester associated protected_tester_t object
103 *
104 * @ingroup testcases
105 */
106 void test_parser_with_ts_payload(protected_tester_t *tester);
107
108 /**
109 * @brief Test function used to test the parser_t functionality when
110 * parsing a CERT payload.
111 *
112 * @param tester associated protected_tester_t object
113 *
114 * @ingroup testcases
115 */
116 void test_parser_with_cert_payload(protected_tester_t *tester);
117
118 /**
119 * @brief Test function used to test the parser_t functionality when
120 * parsing a CERTREQ payload.
121 *
122 * @param tester associated protected_tester_t object
123 *
124 * @ingroup testcases
125 */
126 void test_parser_with_certreq_payload(protected_tester_t *tester);
127
128 /**
129 * @brief Test function used to test the parser_t functionality when
130 * parsing a CERTREQ payload.
131 *
132 * @param tester associated protected_tester_t object
133 *
134 * @ingroup testcases
135 */
136 void test_parser_with_delete_payload(protected_tester_t *tester);
137
138 /**
139 * @brief Test function used to test the parser_t functionality when
140 * parsing a VENDOR ID payload.
141 *
142 * @param tester associated protected_tester_t object
143 *
144 * @ingroup testcases
145 */
146 void test_parser_with_vendor_id_payload(protected_tester_t *tester);
147
148 /**
149 * @brief Test function used to test the parser_t functionality when
150 * parsing a CP payload.
151 *
152 * @param tester associated protected_tester_t object
153 *
154 * @ingroup testcases
155 */
156 void test_parser_with_cp_payload(protected_tester_t *tester);
157
158 /**
159 * @brief Test function used to test the parser_t functionality when
160 * parsing a EAP payload.
161 *
162 * @param tester associated protected_tester_t object
163 *
164 * @ingroup testcases
165 */
166 void test_parser_with_eap_payload(protected_tester_t *tester);
167
168
169
170 #endif /*PARSER_TEST_H_*/