face: replace EventEmitter usage with Signal
refs #2300
Change-Id: I17d0d65d2c474b17dd9f23f271a6144b0b4fbc07
diff --git a/tests/daemon/face/dummy-face.hpp b/tests/daemon/face/dummy-face.hpp
index ec0adbf..dc9bcc6 100644
--- a/tests/daemon/face/dummy-face.hpp
+++ b/tests/daemon/face/dummy-face.hpp
@@ -52,7 +52,7 @@
virtual void
sendInterest(const Interest& interest)
{
- this->onSendInterest(interest);
+ this->emitSignal(onSendInterest, interest);
m_sentInterests.push_back(interest);
this->afterSend();
}
@@ -60,7 +60,7 @@
virtual void
sendData(const Data& data)
{
- this->onSendData(data);
+ this->emitSignal(onSendData, data);
m_sentDatas.push_back(data);
this->afterSend();
}
@@ -68,22 +68,22 @@
virtual void
close()
{
- this->onFail("close");
+ this->fail("close");
}
void
receiveInterest(const Interest& interest)
{
- this->onReceiveInterest(interest);
+ this->emitSignal(onReceiveInterest, interest);
}
void
receiveData(const Data& data)
{
- this->onReceiveData(data);
+ this->emitSignal(onReceiveData, data);
}
- EventEmitter<> afterSend;
+ signal::Signal<DummyFaceImpl<FaceBase>> afterSend;
public:
std::vector<Interest> m_sentInterests;