| 1 | // | 
|---|
| 2 | // UniqueExpireLRUCacheTest.h | 
|---|
| 3 | // | 
|---|
| 4 | // Tests for UniqueExpireLRUCache | 
|---|
| 5 | // | 
|---|
| 6 | // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. | 
|---|
| 7 | // and Contributors. | 
|---|
| 8 | // | 
|---|
| 9 | // SPDX-License-Identifier:	BSL-1.0 | 
|---|
| 10 | // | 
|---|
| 11 |  | 
|---|
| 12 | #ifndef UniqueExpireLRUCacheTest_INCLUDED | 
|---|
| 13 | #define UniqueExpireLRUCacheTest_INCLUDED | 
|---|
| 14 |  | 
|---|
| 15 |  | 
|---|
| 16 | #include "Poco/Foundation.h" | 
|---|
| 17 | #include "Poco/CppUnit/TestCase.h" | 
|---|
| 18 |  | 
|---|
| 19 |  | 
|---|
| 20 | class UniqueExpireLRUCacheTest: public CppUnit::TestCase | 
|---|
| 21 | { | 
|---|
| 22 | public: | 
|---|
| 23 | UniqueExpireLRUCacheTest(const std::string& name); | 
|---|
| 24 | ~UniqueExpireLRUCacheTest(); | 
|---|
| 25 |  | 
|---|
| 26 | void testClear(); | 
|---|
| 27 | void testAccessClear(); | 
|---|
| 28 | void testExpire0(); | 
|---|
| 29 | void testExpireN(); | 
|---|
| 30 | void testCacheSize0(); | 
|---|
| 31 | void testCacheSize1(); | 
|---|
| 32 | void testCacheSize2(); | 
|---|
| 33 | void testCacheSizeN(); | 
|---|
| 34 | void testDuplicateAdd(); | 
|---|
| 35 |  | 
|---|
| 36 | void setUp(); | 
|---|
| 37 | void tearDown(); | 
|---|
| 38 | static CppUnit::Test* suite(); | 
|---|
| 39 | }; | 
|---|
| 40 |  | 
|---|
| 41 |  | 
|---|
| 42 | #endif // UniqueExpireLRUCacheTest_INCLUDED | 
|---|
| 43 |  | 
|---|