Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
f2a0e7ce
Commit
f2a0e7ce
authored
Dec 06, 2012
by
JINMEI Tatuya
Browse files
[2377] style fixes: folded long lines, constify
parent
e6d40280
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/tests/master_loader_unittest.cc
View file @
f2a0e7ce
...
...
@@ -124,7 +124,8 @@ TEST_F(MasterLoaderTest, basicLoad) {
EXPECT_TRUE
(
errors_
.
empty
());
EXPECT_TRUE
(
warnings_
.
empty
());
checkRR
(
"example.org"
,
RRType
::
SOA
(),
"ns1.example.org. admin.example.org. "
checkRR
(
"example.org"
,
RRType
::
SOA
(),
"ns1.example.org. admin.example.org. "
"1234 3600 1800 2419200 7200"
);
checkRR
(
"example.org"
,
RRType
::
NS
(),
"ns1.example.org."
);
checkRR
(
"www.example.org"
,
RRType
::
A
(),
"192.0.2.1"
);
...
...
@@ -140,7 +141,8 @@ TEST_F(MasterLoaderTest, incrementalLoad) {
EXPECT_TRUE
(
errors_
.
empty
());
EXPECT_TRUE
(
warnings_
.
empty
());
checkRR
(
"example.org"
,
RRType
::
SOA
(),
"ns1.example.org. admin.example.org. "
checkRR
(
"example.org"
,
RRType
::
SOA
(),
"ns1.example.org. admin.example.org. "
"1234 3600 1800 2419200 7200"
);
checkRR
(
"example.org"
,
RRType
::
NS
(),
"ns1.example.org."
);
...
...
@@ -176,9 +178,9 @@ TEST_F(MasterLoaderTest, invalidFile) {
}
struct
ErrorCase
{
const
char
*
line
;
const
char
*
problem
;
}
error_cases
[]
=
{
const
char
*
const
line
;
const
char
*
const
problem
;
}
const
error_cases
[]
=
{
{
"www... 3600 IN A 192.0.2.1"
,
"Invalid name"
},
{
"www FORTNIGHT IN A 192.0.2.1"
,
"Invalid TTL"
},
{
"www 3600 XX A 192.0.2.1"
,
"Invalid class"
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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