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
ISC Open Source Projects
Kea
Commits
fb5902b0
Commit
fb5902b0
authored
Jun 29, 2012
by
Mukund Sivaraman
Browse files
[2053] Remove the dns::LabelSequence::getName() method
parent
36d3b727
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dns/labelsequence.h
View file @
fb5902b0
...
...
@@ -139,17 +139,6 @@ public:
/// \return a string representation of the <code>LabelSequence</code>.
std
::
string
toText
()
const
;
/// \brief Returns the original Name object associated with this
/// LabelSequence
///
/// While the Name should still be in scope during the lifetime of
/// the LabelSequence, it can still be useful to have access to it,
/// for instance in helper functions that are only passed the
/// LabelSequence itself.
///
/// \return Reference to the original Name object
const
Name
&
getName
()
const
{
return
(
name_
);
}
/// \brief Calculate a simple hash for the label sequence.
///
/// This method calculates a hash value for the label sequence as binary
...
...
src/lib/dns/tests/labelsequence_unittest.cc
View file @
fb5902b0
...
...
@@ -149,14 +149,14 @@ getDataCheck(const uint8_t* expected_data, size_t expected_len,
size_t
len
;
const
uint8_t
*
data
=
ls
.
getData
(
&
len
);
ASSERT_EQ
(
expected_len
,
len
)
<<
"Expected data: "
<<
expected_data
<<
"
name: "
<<
ls
.
getName
().
toText
()
;
"
, label sequence: "
<<
ls
;
EXPECT_EQ
(
expected_len
,
ls
.
getDataLength
())
<<
"Expected data: "
<<
expected_data
<<
"
name: "
<<
ls
.
getName
().
toText
()
;
"
, label sequence: "
<<
ls
;
for
(
size_t
i
=
0
;
i
<
len
;
++
i
)
{
EXPECT_EQ
(
expected_data
[
i
],
data
[
i
])
<<
"Difference at pos "
<<
i
<<
": Expected data: "
<<
expected_data
<<
"
name: "
<<
ls
.
getName
().
toText
();
;
"
, label sequence: "
<<
ls
;
}
}
...
...
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