diff options
Diffstat (limited to 'src/lib/dns/tests/rdata_nsec_unittest.cc')
-rw-r--r-- | src/lib/dns/tests/rdata_nsec_unittest.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/dns/tests/rdata_nsec_unittest.cc b/src/lib/dns/tests/rdata_nsec_unittest.cc index 810e2cc3d0..dcbc1f312f 100644 --- a/src/lib/dns/tests/rdata_nsec_unittest.cc +++ b/src/lib/dns/tests/rdata_nsec_unittest.cc @@ -26,12 +26,14 @@ #include <dns/tests/unittest_util.h> #include <dns/tests/rdata_unittest.h> +#include <util/unittests/wiredata.h> -using isc::UnitTestUtil; using namespace std; using namespace isc::dns; using namespace isc::util; using namespace isc::dns::rdata; +using isc::UnitTestUtil; +using isc::util::unittests::matchWireData; namespace { class Rdata_NSEC_Test : public RdataTest { @@ -90,9 +92,9 @@ TEST_F(Rdata_NSEC_Test, toWireRenderer_NSEC) { vector<unsigned char> data; UnitTestUtil::readWireData("rdata_nsec_fromWire1", data); - EXPECT_PRED_FORMAT4(UnitTestUtil::matchWireData, - static_cast<const uint8_t *>(renderer.getData()) + 2, - renderer.getLength() - 2, &data[2], data.size() - 2); + matchWireData(&data[2], data.size() - 2, + static_cast<const uint8_t *>(renderer.getData()) + 2, + renderer.getLength() - 2); } TEST_F(Rdata_NSEC_Test, toWireBuffer_NSEC) { |