blob: 2bcf138a3d05e562b5f9a4a3341571b1b9f42f94 [file] [log] [blame]
/**
* Copyright (C) 2014 Regents of the University of Memphis.
* See COPYING for copyright and distribution information.
*/
#include <ndn-cxx/util/time.hpp>
#include "route/fib-entry.hpp"
#include "route/nexthop-list.hpp"
#include <boost/test/unit_test.hpp>
namespace nlsr {
namespace test {
BOOST_AUTO_TEST_SUITE(TestFibEntry)
BOOST_AUTO_TEST_CASE(FibEntryConstructorAndGetters)
{
ndn::time::system_clock::TimePoint testTimePoint = ndn::time::system_clock::now();
FibEntry fe1("next1");
fe1.setExpirationTimePoint(testTimePoint);
BOOST_CHECK_EQUAL(fe1.getName(), "next1");
BOOST_CHECK_EQUAL(fe1.getExpirationTimePoint(), testTimePoint);
BOOST_CHECK_EQUAL(fe1.getSeqNo(), 0); //Default Seq No.
}
BOOST_AUTO_TEST_SUITE_END()
} //namespace test
} //namespace nlsr