Commit fb5902b0 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2053] Remove the dns::LabelSequence::getName() method

parent 36d3b727
...@@ -139,17 +139,6 @@ public: ...@@ -139,17 +139,6 @@ public:
/// \return a string representation of the <code>LabelSequence</code>. /// \return a string representation of the <code>LabelSequence</code>.
std::string toText() const; 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. /// \brief Calculate a simple hash for the label sequence.
/// ///
/// This method calculates a hash value for the label sequence as binary /// This method calculates a hash value for the label sequence as binary
......
...@@ -149,14 +149,14 @@ getDataCheck(const uint8_t* expected_data, size_t expected_len, ...@@ -149,14 +149,14 @@ getDataCheck(const uint8_t* expected_data, size_t expected_len,
size_t len; size_t len;
const uint8_t* data = ls.getData(&len); const uint8_t* data = ls.getData(&len);
ASSERT_EQ(expected_len, len) << "Expected data: " << expected_data << ASSERT_EQ(expected_len, len) << "Expected data: " << expected_data <<
" name: " << ls.getName().toText(); ", label sequence: " << ls;
EXPECT_EQ(expected_len, ls.getDataLength()) << EXPECT_EQ(expected_len, ls.getDataLength()) <<
"Expected data: " << expected_data << "Expected data: " << expected_data <<
" name: " << ls.getName().toText(); ", label sequence: " << ls;
for (size_t i = 0; i < len; ++i) { for (size_t i = 0; i < len; ++i) {
EXPECT_EQ(expected_data[i], data[i]) << EXPECT_EQ(expected_data[i], data[i]) <<
"Difference at pos " << i << ": Expected data: " << expected_data << "Difference at pos " << i << ": Expected data: " << expected_data <<
" name: " << ls.getName().toText();; ", label sequence: " << ls;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment