]>
git.ipfire.org Git - thirdparty/strongswan.git/blob - programs/charon/testing/parser_test.h
4 * @brief Tests for the parser_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 PARSER_TEST_H_
24 #define PARSER_TEST_H_
26 #include <utils/tester.h>
29 * @brief Test function used to test the parser_t functionality when
30 * parsing a header payload.
32 * @param tester associated protected_tester_t object
36 void test_parser_with_header_payload(protected_tester_t
*tester
);
39 * @brief Test function used to test the parser_t functionality when
40 * parsing a sa payload.
42 * @param tester associated protected_tester_t object
46 void test_parser_with_sa_payload(protected_tester_t
*tester
);
49 * @brief Test function used to test the parser_t functionality when
50 * parsing a nonce payload.
52 * @param tester associated protected_tester_t object
56 void test_parser_with_nonce_payload(protected_tester_t
*tester
);
59 * @brief Test function used to test the parser_t functionality when
60 * parsing a ID payload.
62 * @param tester associated protected_tester_t object
66 void test_parser_with_id_payload(protected_tester_t
*tester
);
69 * @brief Test function used to test the parser_t functionality when
70 * parsing a ke payload.
72 * @param tester associated protected_tester_t object
76 void test_parser_with_ke_payload(protected_tester_t
*tester
);
79 * @brief Test function used to test the parser_t functionality when
80 * parsing a notify payload.
82 * @param tester associated protected_tester_t object
86 void test_parser_with_notify_payload(protected_tester_t
*tester
);
89 * @brief Test function used to test the parser_t functionality when
90 * parsing a AUTH payload.
92 * @param tester associated protected_tester_t object
96 void test_parser_with_auth_payload(protected_tester_t
*tester
);
99 * @brief Test function used to test the parser_t functionality when
100 * parsing a TS payload.
102 * @param tester associated protected_tester_t object
106 void test_parser_with_ts_payload(protected_tester_t
*tester
);
109 * @brief Test function used to test the parser_t functionality when
110 * parsing a CERT payload.
112 * @param tester associated protected_tester_t object
116 void test_parser_with_cert_payload(protected_tester_t
*tester
);
119 * @brief Test function used to test the parser_t functionality when
120 * parsing a CERTREQ payload.
122 * @param tester associated protected_tester_t object
126 void test_parser_with_certreq_payload(protected_tester_t
*tester
);
129 * @brief Test function used to test the parser_t functionality when
130 * parsing a CERTREQ payload.
132 * @param tester associated protected_tester_t object
136 void test_parser_with_delete_payload(protected_tester_t
*tester
);
139 * @brief Test function used to test the parser_t functionality when
140 * parsing a VENDOR ID payload.
142 * @param tester associated protected_tester_t object
146 void test_parser_with_vendor_id_payload(protected_tester_t
*tester
);
149 * @brief Test function used to test the parser_t functionality when
150 * parsing a CP payload.
152 * @param tester associated protected_tester_t object
156 void test_parser_with_cp_payload(protected_tester_t
*tester
);
159 * @brief Test function used to test the parser_t functionality when
160 * parsing a EAP payload.
162 * @param tester associated protected_tester_t object
166 void test_parser_with_eap_payload(protected_tester_t
*tester
);
170 #endif /*PARSER_TEST_H_*/