Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
fcc5fed7
Commit
fcc5fed7
authored
Feb 16, 2012
by
JINMEI Tatuya
Browse files
[1613] constify
parent
83e953be
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/tests/auth_srv_unittest.cc
View file @
fcc5fed7
...
...
@@ -87,7 +87,7 @@ protected:
// Helper for checking Rcode statistic counters;
// Checks for one specific Rcode statistics counter value
void
checkRcodeCounter
(
const
Rcode
&
rcode
,
int
expected_value
)
{
void
checkRcodeCounter
(
const
Rcode
&
rcode
,
int
expected_value
)
const
{
EXPECT_EQ
(
expected_value
,
server
.
getCounter
(
rcode
))
<<
"Expected Rcode count for "
<<
rcode
.
toText
()
<<
" "
<<
expected_value
<<
", was: "
<<
...
...
@@ -95,7 +95,7 @@ protected:
}
// Checks whether all Rcode counters are set to zero
void
checkAllRcodeCountersZero
()
{
void
checkAllRcodeCountersZero
()
const
{
for
(
int
i
=
0
;
i
<
17
;
i
++
)
{
checkRcodeCounter
(
Rcode
(
i
),
0
);
}
...
...
@@ -103,7 +103,7 @@ protected:
// Checks whether all Rcode counters are set to zero except the given
// rcode (it is checked to be set to 'value')
void
checkAllRcodeCountersZeroExcept
(
const
Rcode
&
rcode
,
int
value
)
{
void
checkAllRcodeCountersZeroExcept
(
const
Rcode
&
rcode
,
int
value
)
const
{
for
(
int
i
=
0
;
i
<
17
;
i
++
)
{
const
Rcode
rc
(
i
);
if
(
rc
==
rcode
)
{
...
...
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