don't use deprecated block helpers
refs #2950
Change-Id: Icd065b2daaad6faa0f0d876e14c317fc3d8645a8
diff --git a/tests/unit/daemon/name-server.cpp b/tests/unit/daemon/name-server.cpp
index 8944759..6a9be97 100644
--- a/tests/unit/daemon/name-server.cpp
+++ b/tests/unit/daemon/name-server.cpp
@@ -170,9 +170,9 @@
re.setNdnsType(NDNS_RESP);
std::string str = "ns1.ndnsim.net";
- re.addRr(dataBlock(ndns::tlv::RrData, str.c_str(), str.size()));
+ re.addRr(makeBinaryBlock(ndns::tlv::RrData, str.c_str(), str.size()));
str = "ns2.ndnsim.net";
- re.addRr(dataBlock(ndns::tlv::RrData, str.c_str(), str.size()));
+ re.addRr(makeBinaryBlock(ndns::tlv::RrData, str.c_str(), str.size()));
shared_ptr<Data> data = re.toData();
m_keyChain.sign(*data, m_certName);
@@ -222,9 +222,9 @@
re.setNdnsType(NDNS_RESP);
std::string str = "ns1.ndnsim.net";
- re.addRr(dataBlock(ndns::tlv::RrData, str.c_str(), str.size()));
+ re.addRr(makeBinaryBlock(ndns::tlv::RrData, str.c_str(), str.size()));
str = "ns2.ndnsim.net";
- re.addRr(dataBlock(ndns::tlv::RrData, str.c_str(), str.size()));
+ re.addRr(makeBinaryBlock(ndns::tlv::RrData, str.c_str(), str.size()));
shared_ptr<Data> data = re.toData();
m_keyChain.sign(*data, m_certName);
@@ -298,9 +298,9 @@
re.setNdnsType(NDNS_RESP);
std::string str = "ns1.ndnsim.net";
- re.addRr(dataBlock(ndns::tlv::RrData, str.c_str(), str.size()));
+ re.addRr(makeBinaryBlock(ndns::tlv::RrData, str.c_str(), str.size()));
str = "ns2.ndnsim.net";
- re.addRr(dataBlock(ndns::tlv::RrData, str.c_str(), str.size()));
+ re.addRr(makeBinaryBlock(ndns::tlv::RrData, str.c_str(), str.size()));
shared_ptr<Data> data = re.toData();
m_keyChain.sign(*data, dskCert->getName());
@@ -401,9 +401,9 @@
re.setNdnsType(NDNS_RESP);
std::string str = "ns1.ndnsim.net";
- re.addRr(dataBlock(ndns::tlv::RrData, str.c_str(), str.size()));
+ re.addRr(makeBinaryBlock(ndns::tlv::RrData, str.c_str(), str.size()));
str = "ns2.ndnsim.net";
- re.addRr(dataBlock(ndns::tlv::RrData, str.c_str(), str.size()));
+ re.addRr(makeBinaryBlock(ndns::tlv::RrData, str.c_str(), str.size()));
shared_ptr<Data> data = re.toData();
m_keyChain.sign(*data, dskCert->getName());