blob: eeca6b574e70da9403721025e2282fde77c3e8f9 [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 Shid9ee45c2014-02-27 15:38:11 -07009#include "tests/test-common.hpp"
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080010
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080011namespace nfd {
Junxiao Shid9ee45c2014-02-27 15:38:11 -070012namespace tests {
Junxiao Shi0fcb41e2014-01-24 10:29:43 -070013
Junxiao Shid9ee45c2014-02-27 15:38:11 -070014BOOST_FIXTURE_TEST_SUITE(TableCs, BaseFixture)
Junxiao Shi0fcb41e2014-01-24 10:29:43 -070015
16BOOST_AUTO_TEST_CASE(FakeInsertFind)
17{
18 Cs cs;
19
Alexander Afanasyevc9765df2014-01-25 19:24:27 -080020 Data data;
Junxiao Shi0fcb41e2014-01-24 10:29:43 -070021 BOOST_CHECK_EQUAL(cs.insert(data), false);
22
23 Interest interest;
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080024 BOOST_CHECK_EQUAL(static_cast<bool>(cs.find(interest)), false);
Junxiao Shi0fcb41e2014-01-24 10:29:43 -070025}
26
27BOOST_AUTO_TEST_SUITE_END()
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080028
Junxiao Shid9ee45c2014-02-27 15:38:11 -070029} // namespace tests
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080030} // namespace nfd