all: Update code to compile with latest time-related changes in ndn-cpp-dev library
Change-Id: I7e859989c833001f49b286d4a9917f4dc740b4a4
diff --git a/tests/table/cs.cpp b/tests/table/cs.cpp
index cf0929c..5bb6eb7 100644
--- a/tests/table/cs.cpp
+++ b/tests/table/cs.cpp
@@ -176,13 +176,13 @@
Name name2("/insert/fresh");
shared_ptr<Data> data2 = make_shared<Data>(name2);
- data2->setFreshnessPeriod(5000);
+ data2->setFreshnessPeriod(time::milliseconds(5000));
data2->setSignature(fakeSignature);
cs.insert(*data2);
Name name("/insert/expire");
shared_ptr<Data> data = make_shared<Data>(name);
- data->setFreshnessPeriod(500);
+ data->setFreshnessPeriod(time::milliseconds(500));
data->setSignature(fakeSignature);
cs.insert(*data);
@@ -508,7 +508,7 @@
Name name("/insert/nonfresh");
shared_ptr<Data> data = make_shared<Data>(name);
- data->setFreshnessPeriod(500);
+ data->setFreshnessPeriod(time::milliseconds(500));
data->setSignature(fakeSignature);
cs.insert(*data);
@@ -652,7 +652,7 @@
insert(uint32_t id, const Name& name)
{
shared_ptr<Data> data = make_shared<Data>(name);
- data->setFreshnessPeriod(99999);
+ data->setFreshnessPeriod(time::milliseconds(99999));
data->setContent(reinterpret_cast<const uint8_t*>(&id), sizeof(id));
ndn::SignatureSha256WithRsa fakeSignature;