Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sso
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ai
sso
Commits
73bcc834
Commit
73bcc834
authored
Dec 12, 2014
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
type casts to make gtest happy
parent
dafae6c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/sso/test/sso_unittest.cc
src/sso/test/sso_unittest.cc
+3
-3
No files found.
src/sso/test/sso_unittest.cc
View file @
73bcc834
...
...
@@ -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
Markdown
is supported
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