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
ISC Open Source Projects
Kea
Commits
fb49d74d
Commit
fb49d74d
authored
Oct 18, 2011
by
Michal 'vorner' Vaner
Browse files
Compilation fix
The usual problem with EXPECT_EQ(NULL, ...), it doesn't like the type.
parent
1817f1e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/tests/option_unittest.cc
View file @
fb49d74d
...
...
@@ -40,7 +40,7 @@ TEST_F(OptionTest, basic4) {
Option
*
opt
=
new
Option
(
Option
::
V4
,
17
);
EXPECT_EQ
(
17
,
opt
->
getType
());
EXPECT_EQ
(
NULL
,
opt
->
getData
());
EXPECT_EQ
(
static_cast
<
uint8_t
*>
(
NULL
)
,
opt
->
getData
());
EXPECT_EQ
(
2
,
opt
->
len
());
// just v4 header
EXPECT_NO_THROW
(
...
...
@@ -54,7 +54,7 @@ TEST_F(OptionTest, basic6) {
Option
*
opt
=
new
Option
(
Option
::
V6
,
1
);
EXPECT_EQ
(
1
,
opt
->
getType
());
EXPECT_EQ
(
NULL
,
opt
->
getData
());
EXPECT_EQ
(
static_cast
<
uint8_t
*>
(
NULL
)
,
opt
->
getData
());
EXPECT_EQ
(
4
,
opt
->
len
());
// just v6 header
EXPECT_NO_THROW
(
...
...
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