| 106 | |
| 107 | template<size_t BufferSize = MD5_MAXSTRSIZE> |
| 108 | static void ExpectMd5(MD5_DIGEST Actual, const char *pWanted) |
| 109 | { |
| 110 | char aActual[BufferSize]; |
| 111 | md5_str(Actual, aActual, sizeof(aActual)); |
| 112 | EXPECT_STREQ(aActual, pWanted); |
| 113 | } |
| 114 | |
| 115 | TEST(Hash, Md5) |
| 116 | { |