]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/testRefCount.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / tests / testRefCount.h
1 /*
2 * Copyright (C) 1996-2023 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_SRC_TEST_REFCOUNT_H
10 #define SQUID_SRC_TEST_REFCOUNT_H
11
12 #include "compat/cppunit.h"
13
14 class testRefCount : public CPPUNIT_NS::TestFixture
15 {
16 CPPUNIT_TEST_SUITE( testRefCount );
17 CPPUNIT_TEST( testCountability );
18 CPPUNIT_TEST( testObjectToRefCounted );
19 CPPUNIT_TEST( testStandalonePointer );
20 CPPUNIT_TEST( testCheckPointers );
21 CPPUNIT_TEST( testPointerConst );
22 CPPUNIT_TEST( testRefCountFromConst );
23 CPPUNIT_TEST( testPointerFromRefCounter );
24 CPPUNIT_TEST( testDoubleInheritToSingleInherit );
25 CPPUNIT_TEST_SUITE_END();
26
27 protected:
28 void testCountability();
29 void testObjectToRefCounted();
30 void testStandalonePointer();
31 void testCheckPointers();
32 void testPointerConst();
33 void testRefCountFromConst();
34 void testPointerFromRefCounter();
35 void testDoubleInheritToSingleInherit();
36 };
37
38 #endif
39