message: Unit test for MallocAllocator
diff: #include <Fw/Types/EightyCharString.hpp>
  #include <Fw/Types/InternalInterfaceString.hpp>
  #include <Fw/Types/PolyType.hpp>
  +#include <Fw/Types/MallocAllocator.hpp>
  #include <stdio.h>
  #include <string.h>
  @@ -806,6 +807,21 @@ TEST(TypesTest,StringFormatTest) {
  printf("Formatted: %s\n",str.toChar());
  }
  +TEST(AllocatorTest,MallocAllocatorTest) {
  + // Since it is a wrapper around malloc, the test consists of requesting
  + // memory and verifying a non-zero pointer, unchanged size, and not recoverable.
  + Fw::MallocAllocator allocator;
  + NATIVE_UINT_TYPE size = 100; // one hundred bytes
  + bool recoverable;
  + void *ptr = allocator.allocate(10,size,recoverable);
  + ASSERT_EQ(100,size);
  + ASSERT_NE(ptr,(void*)NULL);
  + ASSERT_FALSE(recoverable);
  + // deallocate memory
  + allocator.deallocate(100,ptr);
  +
  +}
  +
  int main(int argc, char **argv) {
  ::testing::InitGoogleTest(&argc, argv);
  return RUN_ALL_TESTS();
  