2014-05-03 09:02:51 -04:00
|
|
|
|
2014-05-27 07:44:56 -04:00
|
|
|
#include "Globals.h"
|
2014-05-21 14:58:48 -04:00
|
|
|
#include "ChunkData.h"
|
2014-05-03 09:02:51 -04:00
|
|
|
|
2014-04-27 15:25:03 -04:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
2016-06-16 11:34:17 -04:00
|
|
|
LOGD("Test started");
|
|
|
|
|
2014-06-16 10:12:50 -04:00
|
|
|
class cMockAllocationPool
|
|
|
|
: public cAllocationPool<cChunkData::sChunkSection>
|
2018-07-23 14:12:51 -04:00
|
|
|
{
|
|
|
|
virtual cChunkData::sChunkSection * Allocate() override
|
2014-06-16 10:12:50 -04:00
|
|
|
{
|
|
|
|
return new cChunkData::sChunkSection();
|
|
|
|
}
|
2018-07-23 14:12:51 -04:00
|
|
|
|
|
|
|
virtual void Free(cChunkData::sChunkSection * a_Ptr) override
|
2014-06-16 10:12:50 -04:00
|
|
|
{
|
|
|
|
delete a_Ptr;
|
|
|
|
}
|
2018-07-23 14:12:51 -04:00
|
|
|
|
|
|
|
virtual bool DoIsEqual(const cAllocationPool<cChunkData::sChunkSection> &) const NOEXCEPT override
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2014-06-16 10:12:50 -04:00
|
|
|
} Pool;
|
|
|
|
cChunkData buffer(Pool);
|
2014-05-03 09:02:51 -04:00
|
|
|
return 0;
|
2014-04-27 15:25:03 -04:00
|
|
|
}
|