Convert to span and avoid deprecated ndn-cxx functions
Change-Id: I45c50527fe53498b53a3d951458bdff8e7d7778c
diff --git a/tests/tools/mock-nfd-mgmt-fixture.hpp b/tests/tools/mock-nfd-mgmt-fixture.hpp
index 6798dd8..82ab19a 100644
--- a/tests/tools/mock-nfd-mgmt-fixture.hpp
+++ b/tests/tools/mock-nfd-mgmt-fixture.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2021, Regents of the University of California,
+ * Copyright (c) 2014-2022, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -105,7 +105,7 @@
void
sendEmptyDataset(const Name& prefix)
{
- this->sendDatasetReply(prefix, nullptr, 0);
+ this->sendDatasetReply(prefix, span<uint8_t>{});
}
/** \brief send one WireEncodable in reply to StatusDataset request
@@ -141,7 +141,7 @@
payload2.wireEncode(buffer);
payload1.wireEncode(buffer);
- this->sendDatasetReply(prefix, buffer.buf(), buffer.size());
+ this->sendDatasetReply(prefix, buffer);
}
private: