face: face refactoring completion
* delete old Face
* rename LpFace as Face
* eliminate LpFaceWrapper and use new Face
refs #3172
Change-Id: I08c3a5dfb4cc1b9834b30cccd9ab634535d0608c
diff --git a/tests/daemon/face/internal-face.t.cpp b/tests/daemon/face/internal-face.t.cpp
index cca385e..4371317 100644
--- a/tests/daemon/face/internal-face.t.cpp
+++ b/tests/daemon/face/internal-face.t.cpp
@@ -24,9 +24,8 @@
*/
#include "face/internal-face.hpp"
-#include "face/lp-face-wrapper.hpp"
-#include "transport-test-common.hpp"
+#include "transport-test-common.hpp"
#include "tests/identity-management-fixture.hpp"
namespace nfd {
@@ -43,9 +42,7 @@
public:
InternalFaceFixture()
{
- std::tie(forwarderFaceW, clientFace) = makeInternalFace(m_keyChain);;
- forwarderFace = static_pointer_cast<LpFaceWrapper>(forwarderFaceW)->getLpFace();
- // TODO#3172 eliminate wrapper
+ std::tie(forwarderFace, clientFace) = makeInternalFace(m_keyChain);;
forwarderFace->afterReceiveInterest.connect(
[this] (const Interest& interest) { receivedInterests.push_back(interest); } );
@@ -56,8 +53,7 @@
}
protected:
- shared_ptr<nfd::Face> forwarderFaceW;
- LpFace* forwarderFace;
+ shared_ptr<nfd::Face> forwarderFace;
shared_ptr<ndn::Face> clientFace;
std::vector<Interest> receivedInterests;
@@ -199,7 +195,7 @@
forwarderFace->close();
this->advanceClocks(time::milliseconds(1), 10);
BOOST_CHECK_EQUAL(forwarderFace->getState(), FaceState::CLOSED);
- forwarderFaceW.reset();
+ forwarderFace.reset();
shared_ptr<Interest> interest = makeInterest("/zpHsVesu0B");
interest->setInterestLifetime(time::milliseconds(100));