]> git.ipfire.org Git - thirdparty/strongswan.git/blame - programs/charon/testing/linked_list_test.h
- import of strongswan-2.7.0
[thirdparty/strongswan.git] / programs / charon / testing / linked_list_test.h
CommitLineData
5ea75511
JH
1/**
2 * @file linked_list_test.h
3 *
ed37dee6 4 * @brief Tests for the linked_list_t class.
5ea75511
JH
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
94852e75 26#include <utils/tester.h>
ae758c79 27
5ea75511 28/**
ed37dee6 29 * @brief Test function for the type linked_list_t.
ef23cd28
JH
30 *
31 * Performs different kinds of assertions to check the functionality
32 * of the linked_list_t in a Single-Threaded environment.
5ea75511 33 *
ef23cd28
JH
34 * @warning To be usable in multi-threaded software
35 * this list has to get protected with locks.
36 *
ed37dee6
JH
37 * @param tester tester object
38 *
39 * @ingroup testcases
5ea75511 40 */
51d56047 41void test_linked_list(protected_tester_t *tester);
5ea75511 42
7c2228f1 43/**
ed37dee6 44 * @brief Test function for the type linked_list_t and its iterator.
7c2228f1
JH
45 *
46 * Performs different kinds of assertions to check the functionality
47 * of the linked_list_t and its iterator in a Single-Threaded environment.
48 *
49 * @warning To be usable in multi-threaded software
50 * this list has to get protected with locks.
51 *
ed37dee6
JH
52 * @param tester tester object
53 *
54 * @ingroup testcases
7c2228f1 55 */
51d56047 56void test_linked_list_iterator(protected_tester_t *tester);
bfdc5c7c
JH
57
58/**
59 * @brief Test function for the type linked_list_t and its insert and remove
ed37dee6 60 * functions.
bfdc5c7c
JH
61 *
62 * Performs different kinds of assertions to check the functionality
63 * of the linked_list_t and its insert and remove functions
64 *
65 * @warning To be usable in multi-threaded software
66 * this list has to get protected with locks.
67 *
ed37dee6
JH
68 * @param tester tester object
69 *
70 * @ingroup testcases
bfdc5c7c 71 */
51d56047 72void test_linked_list_insert_and_remove(protected_tester_t *tester);
7c2228f1 73
5ea75511 74#endif /*LINKED_LIST_TEST_H_*/