src: Making use of DEPRECATED macro and updating library code not to use deprecated methods
Change-Id: Ibe17977e7fcbb759a26dbe1cfa3d472598e49bcc
diff --git a/tests-integrated/security/test-validator-config.cpp b/tests-integrated/security/test-validator-config.cpp
index def5ae3..df1dd77 100644
--- a/tests-integrated/security/test-validator-config.cpp
+++ b/tests-integrated/security/test-validator-config.cpp
@@ -542,7 +542,7 @@
void
terminate(shared_ptr<Face> face)
{
- face->ioService()->stop();
+ face->getIoService().stop();
}
const RegisteredPrefixId* regPrefixId;
@@ -584,18 +584,20 @@
keyChain.addCertificateAsIdentityDefault(*nldCert);
shared_ptr<Face> face = make_shared<Face>();
- Face face2(face->ioService());
- Scheduler scheduler(*face->ioService());
+ Face face2(face->getIoService());
+ Scheduler scheduler(face->getIoService());
scheduler.scheduleEvent(time::seconds(1),
bind(&FacesFixture::terminate, this, face));
regPrefixId = face->setInterestFilter(sldCert->getName().getPrefix(-1),
- bind(&FacesFixture::onInterest, this, face, sldCert),
- bind(&FacesFixture::onRegFailed, this));
+ bind(&FacesFixture::onInterest, this, face, sldCert),
+ RegisterPrefixSuccessCallback(),
+ bind(&FacesFixture::onRegFailed, this));
regPrefixId2 = face->setInterestFilter(nldCert->getName().getPrefix(-1),
bind(&FacesFixture::onInterest2, this, face, nldCert),
+ RegisterPrefixSuccessCallback(),
bind(&FacesFixture::onRegFailed, this));
Name dataName1 = nld;
@@ -789,18 +791,20 @@
keyChain.addCertificateAsIdentityDefault(*nldCert);
shared_ptr<Face> face = make_shared<Face>();
- Face face2(face->ioService());
- Scheduler scheduler(*face->ioService());
+ Face face2(face->getIoService());
+ Scheduler scheduler(face->getIoService());
scheduler.scheduleEvent(time::seconds(1),
bind(&FacesFixture::terminate, this, face));
regPrefixId = face->setInterestFilter(sldCert->getName().getPrefix(-1),
- bind(&FacesFixture::onInterest, this, face, sldCert),
- bind(&FacesFixture::onRegFailed, this));
+ bind(&FacesFixture::onInterest, this, face, sldCert),
+ RegisterPrefixSuccessCallback(),
+ bind(&FacesFixture::onRegFailed, this));
regPrefixId2 = face->setInterestFilter(nldCert->getName().getPrefix(-1),
bind(&FacesFixture::onInterest2, this, face, nldCert),
+ RegisterPrefixSuccessCallback(),
bind(&FacesFixture::onRegFailed, this));
Name interestName1("/localhost/nrd/register/option/timestamp/nonce");