blob: 31a7ea2c360fedb92befa11a9cdadf04257a9070 [file] [log] [blame]
Junxiao Shi0fcb41e2014-01-24 10:29:43 -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#include "table/cs.hpp"
8#include <boost/make_shared.hpp>
9#include <boost/test/unit_test.hpp>
10namespace ndn {
11
12BOOST_AUTO_TEST_SUITE(TableCs)
13
14BOOST_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
25BOOST_AUTO_TEST_SUITE_END()
26};//namespace ndn