Create mock for malloc and calloc api-s

malloc and calloc mock functions are added to test if components
handle heap memory allocation errors properly.

Change-Id: I682ed0655abc5592726a49bcaacf05780c264b3a
Signed-off-by: Gabor Toth <gabor.toth2@arm.com>
2 files changed