blob: e78f4ccad9e68e0c5a011b3fe461fd0e679d248a [file] [log] [blame]
Junxiao Shicbba04c2014-01-26 14:21:22 -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#ifndef NFD_TEST_FACE_DUMMY_FACE_HPP
8#define NFD_TEST_FACE_DUMMY_FACE_HPP
9
10#include "face/face.hpp"
11
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080012namespace nfd {
Junxiao Shicbba04c2014-01-26 14:21:22 -070013
14/** \class DummyFace
15 * \brief provides a Face that cannot communicate
16 * for unit testing only
17 */
18class DummyFace : public Face
19{
20public:
Junxiao Shi8c8d2182014-01-30 22:33:00 -070021 DummyFace()
Junxiao Shicbba04c2014-01-26 14:21:22 -070022 {
23 }
24
25 virtual void
Junxiao Shi8c8d2182014-01-30 22:33:00 -070026 sendInterest(const Interest& interest)
Junxiao Shicbba04c2014-01-26 14:21:22 -070027 {
28 }
29
30 virtual void
Junxiao Shi8c8d2182014-01-30 22:33:00 -070031 sendData(const Data& data)
Junxiao Shicbba04c2014-01-26 14:21:22 -070032 {
33 }
Alexander Afanasyeva0a10fb2014-02-13 19:56:15 -080034
35 virtual void
36 close()
37 {
38 }
Junxiao Shicbba04c2014-01-26 14:21:22 -070039};
40
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080041} // namespace nfd
Junxiao Shicbba04c2014-01-26 14:21:22 -070042
43#endif // TEST_FACE_DUMMY_FACE_HPP