]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/testEnumIterator.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / testEnumIterator.h
1 /*
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #ifndef SQUID_TESTENUMITERATOR_H_
10 #define SQUID_TESTENUMITERATOR_H_
11
12 #include "base/EnumIterator.h"
13
14 #include <cppunit/extensions/HelperMacros.h>
15
16 class testEnumIterator : public CPPUNIT_NS::TestFixture
17 {
18 CPPUNIT_TEST_SUITE( testEnumIterator );
19 CPPUNIT_TEST( testForwardIter );
20 CPPUNIT_TEST( testReverseIter );
21 CPPUNIT_TEST( testBidirectionalIter );
22 CPPUNIT_TEST( testRangeFor );
23 CPPUNIT_TEST( testRangeForRange );
24 CPPUNIT_TEST( testUnsignedEnum );
25 CPPUNIT_TEST_SUITE_END();
26
27 protected:
28 void testForwardIter();
29 void testReverseIter();
30 void testBidirectionalIter();
31 void testRangeFor();
32 void testRangeForRange();
33 void testUnsignedEnum();
34 };
35
36 #endif /* SQUID_TESTENUMITERATOR_H_ */
37