X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FSocketSource.test.cc;h=c8947a1ecc5638048d796c0bcad56fd1a6ef7e71;hb=f2f5d59e83863f3b513950173baee1b6da2aee3c;hp=d1f6263212d5d8827cc4c6f5684604d1a7ea2bf4;hpb=a1a6c76a214ad1935032826713cabaf9ac57bf07;p=senf.git diff --git a/PPI/SocketSource.test.cc b/PPI/SocketSource.test.cc index d1f6263..c8947a1 100644 --- a/PPI/SocketSource.test.cc +++ b/PPI/SocketSource.test.cc @@ -21,7 +21,7 @@ // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /** \file - \brief SocketSource.test unit tests */ + \brief SocketSource unit tests */ //#include "SocketSource.test.hh" //#include "SocketSource.test.ih" @@ -39,15 +39,13 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// - namespace ppi = senf::ppi; -namespace connector = ppi::connector; namespace module = ppi::module; namespace debug = module::debug; namespace { void timeout() { - senf::Scheduler::instance().terminate(); + senf::scheduler::terminate(); } } @@ -64,8 +62,9 @@ BOOST_AUTO_UNIT_TEST(socketSource) senf::UDPv4ClientSocketHandle outputSocket; outputSocket.writeto(senf::INet4SocketAddress("localhost:44344"),data); - senf::Scheduler::instance().timeout( - senf::ClockService::now() + senf::ClockService::milliseconds(100), &timeout); + senf::scheduler::TimerEvent timer ( + "socketSource test timer", &timeout, + senf::ClockService::now() + senf::ClockService::milliseconds(100)); senf::ppi::run(); BOOST_REQUIRE( ! sink.empty() );