Files
NFD/tests/table/cs.cpp
T
Junxiao Shi 0fcb41e6de cs: Implementing fake CS
refs #1129

Change-Id: I1aa2e9dcea5a8f298b254f13ad651ced22118471
2014-01-24 10:19:51 -08:00

27 lines
632 B
C++

/* -*- 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 "table/cs.hpp"
#include <boost/make_shared.hpp>
#include <boost/test/unit_test.hpp>
namespace ndn {
BOOST_AUTO_TEST_SUITE(TableCs)
BOOST_AUTO_TEST_CASE(FakeInsertFind)
{
Cs cs;
boost::shared_ptr<Data> data = boost::make_shared<Data>();
BOOST_CHECK_EQUAL(cs.insert(data), false);
Interest interest;
BOOST_CHECK_EQUAL(cs.find(interest).get(), static_cast<cs::Entry*>(0));
}
BOOST_AUTO_TEST_SUITE_END()
};//namespace ndn