2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_SRC_TEST_REFCOUNT_H
10 #define SQUID_SRC_TEST_REFCOUNT_H
12 #include "compat/cppunit.h"
14 class testRefCount
: public CPPUNIT_NS::TestFixture
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();
28 void testCountability();
29 void testObjectToRefCounted();
30 void testStandalonePointer();
31 void testCheckPointers();
32 void testPointerConst();
33 void testRefCountFromConst();
34 void testPointerFromRefCounter();
35 void testDoubleInheritToSingleInherit();