blob: b453110e7ddc32ebc4d903d4be7ec1e9fd5bb30d [file] [log] [blame]
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (C) 2014 Named Data Networking Project
* See COPYING for copyright and distribution information.
*/
#include "face/face.hpp"
#include <boost/test/unit_test.hpp>
namespace ndn {
BOOST_AUTO_TEST_SUITE(FaceFace)
class FaceTestFace : public Face
{
public:
FaceTestFace()
: Face(1)
{
}
virtual void
sendInterest(const Interest &interest)
{
}
virtual void
sendData(const Data &data)
{
}
};
BOOST_AUTO_TEST_CASE(Description)
{
FaceTestFace face;
face.setDescription("3pFsKrvWr");
BOOST_CHECK_EQUAL(face.getDescription(), "3pFsKrvWr");
}
BOOST_AUTO_TEST_SUITE_END()
} // namespace ndn