blob: 3cb9993d4099af9e677cf524c442deba9094961e [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"
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -08008
Junxiao Shi0fcb41e2014-01-24 10:29:43 -07009#include <boost/test/unit_test.hpp>
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080010
Junxiao Shi0fcb41e2014-01-24 10:29:43 -070011namespace ndn {
12
13BOOST_AUTO_TEST_SUITE(TableCs)
14
15BOOST_AUTO_TEST_CASE(FakeInsertFind)
16{
17 Cs cs;
18
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080019 shared_ptr<Data> data = make_shared<Data>();
Junxiao Shi0fcb41e2014-01-24 10:29:43 -070020 BOOST_CHECK_EQUAL(cs.insert(data), false);
21
22 Interest interest;
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080023 BOOST_CHECK_EQUAL(static_cast<bool>(cs.find(interest)), false);
Junxiao Shi0fcb41e2014-01-24 10:29:43 -070024}
25
26BOOST_AUTO_TEST_SUITE_END()
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080027
28} // namespace ndn