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
612e5244
Commit
612e5244
authored
Dec 07, 2012
by
Michal 'vorner' Vaner
Browse files
[2377] Use rdata::compare to check equality of Rdata
parent
1261088d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/tests/master_loader_unittest.cc
View file @
612e5244
...
...
@@ -18,6 +18,7 @@
#include
<dns/rrset.h>
#include
<dns/rrclass.h>
#include
<dns/name.h>
#include
<dns/rdata.h>
#include
<gtest/gtest.h>
#include
<boost/bind.hpp>
...
...
@@ -105,8 +106,10 @@ public:
EXPECT_EQ
(
Name
(
name
),
current
->
getName
());
ASSERT_EQ
(
type
,
current
->
getType
());
EXPECT_EQ
(
RRClass
::
IN
(),
current
->
getClass
());
ASSERT_EQ
(
1
,
current
->
getRdataCount
());
EXPECT_EQ
(
data
,
current
->
getRdataIterator
()
->
getCurrent
().
toText
());
EXPECT_EQ
(
0
,
isc
::
dns
::
rdata
::
createRdata
(
type
,
RRClass
::
IN
(),
data
)
->
compare
(
current
->
getRdataIterator
()
->
getCurrent
()));
}
MasterLoaderCallbacks
callbacks_
;
...
...
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