Commit 73bcc834 authored by ale's avatar ale

type casts to make gtest happy

parent dafae6c7
......@@ -13,8 +13,8 @@ TEST(Base64, EncodeOk) {
char out[128] = {0};
size_t sz = sizeof(out);
EXPECT_EQ(0, sso_base64_encode((unsigned char *)out, &sz, (unsigned char *)in, (size_t)strlen(in)));
EXPECT_EQ(8, sso_base64_encode_size((size_t)strlen(in)));
EXPECT_EQ(8, sz);
EXPECT_EQ(8, int(sso_base64_encode_size((size_t)strlen(in))));
EXPECT_EQ(8, int(sz));
EXPECT_EQ("dGVzdHM=", std::string(out));
}
......@@ -23,7 +23,7 @@ TEST(Base64, DecodeOk) {
char out[128] = {0};
size_t sz = sizeof(out);
EXPECT_EQ(0, sso_base64_decode((unsigned char*)out, &sz, (unsigned char *)in, (size_t)strlen(in)));
EXPECT_EQ(5, sz);
EXPECT_EQ(5, int(sz));
EXPECT_EQ("tests", std::string(out));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment