face: Implementing Face::getUri() method

Change-Id: I9a9f774b95784e5b7ec75472f1cc6cf64c4e5d7b
Refs: #1319
This commit is contained in:
Alexander Afanasyev committed 2014-03-06 09:25:06 +00:00
1 parent 61e3cc51ed
commit a39b90b2aa
18 files changed
+224 -39

No files matched your search

+5
View File
@@ -148,6 +148,11 @@ BOOST_FIXTURE_TEST_CASE(EndToEnd, EndToEndFixture)
BOOST_REQUIRE(static_cast<bool>(m_face1));
std::string face1uri = m_face1->getUri().toString();
BOOST_CHECK_EQUAL(face1uri.find("unix:///"), 0); // third '/' is the path separator
BOOST_CHECK_EQUAL(face1uri.rfind(CHANNEL_PATH1),
face1uri.size() - std::string(CHANNEL_PATH1).size());
m_face2 = make_shared<UnixStreamFace>(client);
m_face2->onReceiveInterest +=
bind(&EndToEndFixture::face2_onReceiveInterest, this, _1);