Commit 080f7d6b authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2185] Stop using API that was removed

parent fa62fc57
...@@ -26,14 +26,17 @@ ...@@ -26,14 +26,17 @@
#include <dns/tests/unittest_util.h> #include <dns/tests/unittest_util.h>
#include <dns/tests/rdata_unittest.h> #include <dns/tests/rdata_unittest.h>
#include <util/unittests/wiredata.h>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
using isc::UnitTestUtil;
using namespace std; using namespace std;
using namespace isc; using namespace isc;
using namespace isc::dns; using namespace isc::dns;
using namespace isc::util; using namespace isc::util;
using namespace isc::dns::rdata; using namespace isc::dns::rdata;
using isc::UnitTestUtil;
using isc::util::unittests::matchWireData;
namespace { namespace {
class Rdata_TLSA_Test : public RdataTest { class Rdata_TLSA_Test : public RdataTest {
...@@ -250,10 +253,8 @@ TEST_F(Rdata_TLSA_Test, toWire) { ...@@ -250,10 +253,8 @@ TEST_F(Rdata_TLSA_Test, toWire) {
EXPECT_EQ(sizeof (rdata_tlsa_wiredata), EXPECT_EQ(sizeof (rdata_tlsa_wiredata),
this->obuffer.getLength()); this->obuffer.getLength());
EXPECT_PRED_FORMAT4(UnitTestUtil::matchWireData, matchWireData(rdata_tlsa_wiredata, sizeof(rdata_tlsa_wiredata),
this->obuffer.getData(), obuffer.getData(), obuffer.getLength());
this->obuffer.getLength(),
rdata_tlsa_wiredata, sizeof(rdata_tlsa_wiredata));
} }
TEST_F(Rdata_TLSA_Test, compare) { TEST_F(Rdata_TLSA_Test, compare) {
......
Markdown is supported
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