Junxiao Shi | 2c29f3a | 2014-01-24 19:59:00 -0700 | [diff] [blame] | 1 | /* -*- 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 | |
| 11 | namespace ndn { |
| 12 | |
| 13 | BOOST_AUTO_TEST_SUITE(FaceFace) |
| 14 | |
Junxiao Shi | 32bfeb3 | 2014-01-25 18:22:02 -0700 | [diff] [blame] | 15 | class FaceTestFace : public Face |
| 16 | { |
| 17 | public: |
| 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 | |
| 34 | BOOST_AUTO_TEST_CASE(Description) |
| 35 | { |
| 36 | FaceTestFace face; |
| 37 | face.setDescription("3pFsKrvWr"); |
| 38 | BOOST_CHECK_EQUAL(face.getDescription(), "3pFsKrvWr"); |
| 39 | } |
Junxiao Shi | 2c29f3a | 2014-01-24 19:59:00 -0700 | [diff] [blame] | 40 | |
| 41 | BOOST_AUTO_TEST_SUITE_END() |
| 42 | |
| 43 | } // namespace ndn |