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
Sebastian Schrader
Kea
Commits
3a844e85
Commit
3a844e85
authored
Sep 10, 2013
by
Tomek Mrugalski
🛰
Browse files
[3145] ASSERT_NO_THROW added in couple IA_{NA,PD} tests.
parent
9d3952fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/tests/option6_ia_unittest.cc
View file @
3a844e85
...
...
@@ -68,9 +68,9 @@ public:
// Create an option
// unpack() is called from constructor
scoped_ptr
<
Option6IA
>
opt
(
new
Option6IA
(
type
,
buf_
.
begin
(),
buf_
.
begin
()
+
12
));
scoped_ptr
<
Option6IA
>
opt
;
ASSERT_NO_THROW
(
opt
.
reset
(
new
Option6IA
(
type
,
buf_
.
begin
(),
buf_
.
begin
()
+
12
))
)
;
EXPECT_EQ
(
Option
::
V6
,
opt
->
getUniverse
());
EXPECT_EQ
(
type
,
opt
->
getType
());
...
...
@@ -82,7 +82,7 @@ public:
// different place
// Test for pack()
opt
->
pack
(
outBuf_
);
ASSERT_NO_THROW
(
opt
->
pack
(
outBuf_
)
)
;
// 12 bytes header + 4 bytes content
EXPECT_EQ
(
12
,
opt
->
len
()
-
opt
->
getHeaderLen
());
...
...
@@ -208,7 +208,8 @@ TEST_F(Option6IATest, suboptionsPack) {
TEST_F
(
Option6IATest
,
pdSuboptionsPack
)
{
// Let's build IA_PD
scoped_ptr
<
Option6IA
>
ia
(
new
Option6IA
(
D6O_IA_PD
,
0x13579ace
));
scoped_ptr
<
Option6IA
>
ia
;
ASSERT_NO_THROW
(
ia
.
reset
(
new
Option6IA
(
D6O_IA_PD
,
0x13579ace
)));
ia
->
setT1
(
0x2345
);
ia
->
setT2
(
0x3456
);
...
...
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