kde-extraapps/kdevelop/languages/cpp/parser/tests/test_pool.h
2015-07-26 14:23:17 +03:00

35 lines
512 B
C++

#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