29 #include "gtest/gtest.h" 37 static void test(
bool wipe)
39 char *foo = (
char*)malloc(4);
43 void *bar = wipe ?
memwipe(foo, 3) : memset(foo, 0, 3);
46 char *quux = (
char*)malloc(4);
49 MDEBUG(std::hex << std::setw(8) << std::setfill(
'0') << *(
uint32_t*)quux);
52 else MWARNING(
"We did not get the same location, cannot check");
#define ASSERT_EQ(val1, val2)
#define ASSERT_TRUE(condition)
void * memwipe(void *src, size_t n)