// $Id$
//
-// Copyright (C) 2008
+// Copyright (C) 2008
// Fraunhofer Institute for Open Communication Systems (FOKUS)
// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
// Custom includes
#include "RateAnalyzer.hh"
-#include "PPI.hh"
+#include "CloneSource.hh"
+#include "RateFilter.hh"
+#include "Setup.hh"
#include <senf/Utils/auto_unit_test.hh>
#include <boost/test/test_tools.hpp>
///////////////////////////////cc.p////////////////////////////////////////
namespace {
-
+
unsigned calls (0u);
float ppss[] = { 13.333333f, 20.f, 13.333333f, 20.f, 13.333333f, 20.f };
if (calls >= sizeof(ppss) / sizeof(ppss[0]))
senf::scheduler::terminate();
}
-
+
void collectBPS(float bytesPerSecond)
{
bps += bytesPerSecond;
}
}
-BOOST_AUTO_UNIT_TEST(rateAnalyzer)
+SENF_AUTO_UNIT_TEST(rateAnalyzer)
{
char const * enabled (getenv("SENF_TIMING_CRITICAL_TESTS"));
if (! enabled) {
senf::ppi::connect(filter, analyzer);
senf::ppi::run();
-
+
BOOST_CHECK_EQUAL( calls, 6u );
pps /= calls;