1 #include <gtest/gtest.h> 6 constexpr
char arr[] = {
'A',
'B',
'C',
'D'};
7 const std::string_view sv(arr,
sizeof(arr));
9 EXPECT_EQ(b64encoded,
"QUJDRA==");
13 const std::vector<unsigned char> expectedVal = {0x00, 0xFF, 0x01, 0xFE};
24 int main(
int argc,
char** argv) {
25 testing::InitGoogleTest(&argc, argv);
26 return RUN_ALL_TESTS();
int main(int argc, char **argv)
TEST(Base64Test, EncodingTest)
std::string base64Encode(const std::string_view &input)
std::vector< unsigned char > base64Decode(const std::string &input)