summaryrefslogblamecommitdiffstats
path: root/tests/ChunkData/creatable.cpp
blob: 260583213b99f82e396d30e8c2f04cf0237f03f5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
 
                    
                      
 

                               

                             

                                                                   

                                                                       


                                                               

                                                                             


                                     




                                                                                                                  

                                
                 
 

#include "Globals.h"
#include "ChunkData.h"

int main(int argc, char** argv)
{
	LOGD("Test started");

	class cMockAllocationPool
		: public cAllocationPool<cChunkData::sChunkSection>
	{
		virtual cChunkData::sChunkSection * Allocate() override
		{
			return new cChunkData::sChunkSection();
		}

		virtual void Free(cChunkData::sChunkSection * a_Ptr) override
		{
			delete a_Ptr;
		}

		virtual bool DoIsEqual(const cAllocationPool<cChunkData::sChunkSection> &) const NOEXCEPT override
		{
			return false;
		}
	} Pool;
	cChunkData buffer(Pool);
	return 0;
}