blob: b453110e7ddc32ebc4d903d4be7ec1e9fd5bb30d [file] [log] [blame]
Junxiao Shi2c29f3a2014-01-24 19:59:00 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
7#include "face/face.hpp"
8
9#include <boost/test/unit_test.hpp>
10
11namespace ndn {
12
13BOOST_AUTO_TEST_SUITE(FaceFace)
14
Junxiao Shi32bfeb32014-01-25 18:22:02 -070015class FaceTestFace : public Face
16{
17public:
18 FaceTestFace()
19 : Face(1)
20 {
21 }
22
23 virtual void
24 sendInterest(const Interest &interest)
25 {
26 }
27
28 virtual void
29 sendData(const Data &data)
30 {
31 }
32};
33
34BOOST_AUTO_TEST_CASE(Description)
35{
36 FaceTestFace face;
37 face.setDescription("3pFsKrvWr");
38 BOOST_CHECK_EQUAL(face.getDescription(), "3pFsKrvWr");
39}
Junxiao Shi2c29f3a2014-01-24 19:59:00 -070040
41BOOST_AUTO_TEST_SUITE_END()
42
43} // namespace ndn