| 1 | // |
| 2 | // RefPtrTest.h |
| 3 | // |
| 4 | // Definition of the RefPtrTest class. |
| 5 | // |
| 6 | // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. |
| 7 | // and Contributors. |
| 8 | // |
| 9 | // SPDX-License-Identifier: BSL-1.0 |
| 10 | // |
| 11 | |
| 12 | |
| 13 | #ifndef RefPtrTest_INCLUDED |
| 14 | #define RefPtrTest_INCLUDED |
| 15 | |
| 16 | |
| 17 | #include "Poco/Foundation.h" |
| 18 | #include "Poco/CppUnit/TestCase.h" |
| 19 | #include "Poco/RefCountedObject.h" |
| 20 | |
| 21 | |
| 22 | class RefPtrTest: public CppUnit::TestCase |
| 23 | { |
| 24 | public: |
| 25 | RefPtrTest(const std::string& name); |
| 26 | ~RefPtrTest(); |
| 27 | |
| 28 | void testRefPtr(); |
| 29 | void testOps(); |
| 30 | void testInheritance(); |
| 31 | void testMove(); |
| 32 | void testMoveInherited(); |
| 33 | void testWeakRefPtr(); |
| 34 | void testWeakSemantics(); |
| 35 | void testWeakLeak(); |
| 36 | void testWeakCast(); |
| 37 | void testRefPtrThread(); |
| 38 | void pointersBenchmark(); |
| 39 | |
| 40 | void setUp(); |
| 41 | void tearDown(); |
| 42 | |
| 43 | static CppUnit::Test* suite(); |
| 44 | }; |
| 45 | |
| 46 | |
| 47 | #endif // RefPtrTest_INCLUDED |
| 48 | |