- iterator for linked list implemented
[strongswan.git] / Source / charon / tests / linked_list_test.h
1 /**
2 * @file linked_list_test.h
3 *
4 * @brief Tests to test the Linked List type linked_list_t
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 LINKED_LIST_TEST_H_
24 #define LINKED_LIST_TEST_H_
25
26 /**
27 * @brief Test function for the type linked_list_t
28 *
29 * Performs different kinds of assertions to check the functionality
30 * of the linked_list_t in a Single-Threaded environment.
31 *
32 * @warning To be usable in multi-threaded software
33 * this list has to get protected with locks.
34 *
35 * @param tester tester object
36 */
37 void test_linked_list(tester_t *tester);
38
39 /**
40 * @brief Test function for the type linked_list_t and its forward iterator
41 *
42 * Performs different kinds of assertions to check the functionality
43 * of the linked_list_t and its iterator in a Single-Threaded environment.
44 *
45 * @warning To be usable in multi-threaded software
46 * this list has to get protected with locks.
47 *
48 * @param tester tester object
49 */
50 void test_linked_list_forward_iterator(tester_t *tester);
51
52 /**
53 * Test for linked_list_t
54 */
55 test_t linked_list_test = {test_linked_list,"Linked List"};
56
57 /**
58 * Test for linked_list_t with iterator
59 */
60 test_t linked_list_forward_iterator_test = {test_linked_list_forward_iterator,"Linked List Forward Iterator"};
61
62 #endif /*LINKED_LIST_TEST_H_*/