Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
812b9eb2
Commit
812b9eb2
authored
Nov 04, 2015
by
Francis Dupont
Browse files
[3927] Addressed minor comments
parent
cedbc808
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
View file @
812b9eb2
...
...
@@ -481,7 +481,7 @@ TEST_F(ParseConfigTest, basicOptionDefTest) {
// Verify that the configuration string parses.
int
rcode
=
parseConfiguration
(
config
);
ASSERT_
TRUE
(
rcode
==
0
);
ASSERT_
EQ
(
0
,
rcode
);
// Verify that the option definition can be retrieved.
...
...
@@ -514,7 +514,7 @@ TEST_F(ParseConfigTest, minimalOptionDefTest) {
// Verify that the configuration string parses.
int
rcode
=
parseConfiguration
(
config
);
ASSERT_
TRUE
(
rcode
==
0
);
ASSERT_
EQ
(
0
,
rcode
);
// Verify that the option definition can be retrieved.
...
...
@@ -547,7 +547,7 @@ TEST_F(ParseConfigTest, defaultSpaceOptionDefTest) {
// Verify that the configuration string parses.
int
rcode
=
parseConfiguration
(
config
);
ASSERT_TRUE
(
rcode
==
0
);
ASSERT_TRUE
(
0
,
rcode
);
// Verify that the option definition can be retrieved.
...
...
@@ -590,13 +590,13 @@ TEST_F(ParseConfigTest, basicOptionDataTest) {
// Verify that the configuration string parses.
int
rcode
=
parseConfiguration
(
config
);
ASSERT_TRUE
(
rcode
==
0
);
ASSERT_TRUE
(
0
,
rcode
);
// Verify that the option can be retrieved.
OptionPtr
opt_ptr
=
getOptionPtr
(
"isc"
,
100
);
ASSERT_TRUE
(
opt_ptr
);
// Verify that the option d
efinition
is correct.
// Verify that the option d
ata
is correct.
std
::
string
val
=
"type=00100, len=00004: 192.0.2.0 (ipv4-address)"
;
EXPECT_EQ
(
val
,
opt_ptr
->
toText
());
...
...
@@ -624,13 +624,13 @@ TEST_F(ParseConfigTest, minimalOptionDataTest) {
// Verify that the configuration string parses.
int
rcode
=
parseConfiguration
(
config
);
ASSERT_TRUE
(
rcode
==
0
);
ASSERT_TRUE
(
0
,
rcode
);
// Verify that the option can be retrieved.
OptionPtr
opt_ptr
=
getOptionPtr
(
"isc"
,
100
);
ASSERT_TRUE
(
opt_ptr
);
// Verify that the option d
efinition
is correct.
// Verify that the option d
ata
is correct.
std
::
string
val
=
"type=00100, len=00004: 192.0.2.0 (ipv4-address)"
;
EXPECT_EQ
(
val
,
opt_ptr
->
toText
());
...
...
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