Junxiao Shi | cbba04c | 2014-01-26 14:21:22 -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 | #ifndef NFD_TEST_FACE_DUMMY_FACE_HPP |
| 8 | #define NFD_TEST_FACE_DUMMY_FACE_HPP |
| 9 | |
| 10 | #include "face/face.hpp" |
| 11 | |
| 12 | namespace ndn { |
| 13 | |
| 14 | /** \class DummyFace |
| 15 | * \brief provides a Face that cannot communicate |
| 16 | * for unit testing only |
| 17 | */ |
| 18 | class DummyFace : public Face |
| 19 | { |
| 20 | public: |
| 21 | DummyFace(FaceId id) |
| 22 | : Face(id) |
| 23 | { |
| 24 | } |
| 25 | |
| 26 | virtual void |
| 27 | sendInterest(const Interest &interest) |
| 28 | { |
| 29 | } |
| 30 | |
| 31 | virtual void |
| 32 | sendData(const Data &data) |
| 33 | { |
| 34 | } |
| 35 | }; |
| 36 | |
| 37 | } // namespace ndn |
| 38 | |
| 39 | #endif // TEST_FACE_DUMMY_FACE_HPP |