Junxiao Shi | 0fcb41e | 2014-01-24 10:29:43 -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 "table/cs.hpp" |
| 8 | #include <boost/make_shared.hpp> |
| 9 | #include <boost/test/unit_test.hpp> |
| 10 | namespace ndn { |
| 11 | |
| 12 | BOOST_AUTO_TEST_SUITE(TableCs) |
| 13 | |
| 14 | BOOST_AUTO_TEST_CASE(FakeInsertFind) |
| 15 | { |
| 16 | Cs cs; |
| 17 | |
| 18 | boost::shared_ptr<Data> data = boost::make_shared<Data>(); |
| 19 | BOOST_CHECK_EQUAL(cs.insert(data), false); |
| 20 | |
| 21 | Interest interest; |
| 22 | BOOST_CHECK_EQUAL(cs.find(interest).get(), static_cast<cs::Entry*>(0)); |
| 23 | } |
| 24 | |
| 25 | BOOST_AUTO_TEST_SUITE_END() |
| 26 | };//namespace ndn |