Go to the source code of this file.
|
| TEST (CryptUtilTest, Base64EncodeTest) |
|
| TEST (CryptUtilTest, MD5EncodeTest) |
|
TEST |
( |
CryptUtilTest |
, |
|
|
Base64EncodeTest |
|
|
) |
| |
Definition at line 18 of file CryptUtilTest.cpp.
References ASSERT_EQ, and proxygen::base64Encode().
22 reinterpret_cast<const unsigned char*>(
""), (
size_t) 0)));
26 reinterpret_cast<const unsigned char*>(
"a"), 1)));
30 reinterpret_cast<const unsigned char*>(
"aa"), 2)));
34 reinterpret_cast<const unsigned char*>(
"Aladdin:open sesame"), 19)));
#define ASSERT_EQ(val1, val2)
std::string base64Encode(folly::ByteRange text)
Range< const unsigned char * > ByteRange
TEST |
( |
CryptUtilTest |
, |
|
|
MD5EncodeTest |
|
|
) |
| |
Definition at line 37 of file CryptUtilTest.cpp.
References ASSERT_EQ, and proxygen::md5Encode().
38 ASSERT_EQ(
"d41d8cd98f00b204e9800998ecf8427e",
41 reinterpret_cast<const unsigned char*>(
""),
43 ASSERT_EQ(
"a7a93b8ac14a48faa68e4afb57b00fc7",
46 reinterpret_cast<const unsigned char*>(
"Aladdin:open sesame"),
#define ASSERT_EQ(val1, val2)
std::string md5Encode(folly::ByteRange text)
Range< const unsigned char * > ByteRange