tmp
This commit is contained in:
parent
00d8fa0886
commit
65cb26a627
34 changed files with 288 additions and 264 deletions
|
|
@ -2,9 +2,20 @@
|
|||
|
||||
#include "UnitTest++/UnitTest++.h"
|
||||
|
||||
#include "Allocators.hpp"
|
||||
#include "Utils.hpp"
|
||||
|
||||
// counting number of allocations and deallocations
|
||||
struct TestAllocator {
|
||||
TestAllocator() { count = 0; };
|
||||
|
||||
tp::ualni count = 0;
|
||||
|
||||
void* allocate(tp::ualni size);
|
||||
void deallocate(void*);
|
||||
|
||||
~TestAllocator();
|
||||
};
|
||||
|
||||
class TestClass {
|
||||
tp::ualni val2 = 0;
|
||||
tp::ualni val1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue