kde-extraapps/kdevelop/languages/cpp/parser/tests/test_pool.h

36 lines
512 B
C
Raw Normal View History

#ifndef TEST_POOL_H
#define TEST_POOL_H
#include <QtTest/QtTest>
#include <QtCore/QObject>
class PoolObject {
public:
PoolObject();
~PoolObject();
int foo;
};
class TestPool: public QObject {
Q_OBJECT
public:
TestPool();
private slots:
void initTestCase();
void testSimpleAllocation();
void testObjectAllocation();
void testNewBlockAllocation();
void testWastedMemoryDueToBlockAllocation();
void benchManyPools();
void benchManyAllocations();
};
#endif