fw: per upstream retx exponential suppression for multicast strategy

refs: #4066

Change-Id: Ic1047b871dc9dc040e95ac5edceaae9994cd2849
This commit is contained in:
Ashlesh Gawande committed 2017-07-31 12:06:56 -05:00
1 parent bb6146ef74
commit 90015991bc
14 files changed
+224 -165

No files matched your search

+22 -2
View File
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2014-2016, Regents of the University of California,
/*
* Copyright (c) 2014-2017, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -204,6 +204,26 @@ BOOST_FIXTURE_TEST_CASE(HasPendingOutRecords, UnitTestTimeFixture)
BOOST_CHECK_EQUAL(hasPendingOutRecords(entry), false);
}
BOOST_FIXTURE_TEST_CASE(GetLastOutgoing, UnitTestTimeFixture)
{
auto face1 = make_shared<DummyFace>();
auto face2 = make_shared<DummyFace>();
shared_ptr<Interest> interest = makeInterest("ndn:/c1I7QCtc");
pit::Entry entry(*interest);
time::steady_clock::TimePoint before = time::steady_clock::now();
entry.insertOrUpdateOutRecord(*face1, *interest);
this->advanceClocks(time::milliseconds(1000));
BOOST_CHECK_EQUAL(getLastOutgoing(entry), before);
entry.insertOrUpdateOutRecord(*face2, *interest);
BOOST_CHECK_EQUAL(getLastOutgoing(entry), time::steady_clock::now());
}
BOOST_AUTO_TEST_SUITE_END() // TestPitAlgorithm
BOOST_AUTO_TEST_SUITE_END() // Fw