Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai
sso
Commits
9a510fd8
Commit
9a510fd8
authored
Dec 12, 2014
by
ale
Browse files
type casts to make gtest happy
parent
10bee717
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sso/test/sso_unittest.cc
View file @
9a510fd8
...
...
@@ -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
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment