X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FIntervalTimer.test.cc;h=45f87f9ad8f3144a3947be7a2c5ea10257252d50;hb=c45c112ae88196ea8da9c5a9efb0e167196744d2;hp=9b49d27314f220f1707f0d5b6311bc70d28e4792;hpb=e84dd6c52a07fc9e283cbd72c7616f3523920387;p=senf.git diff --git a/PPI/IntervalTimer.test.cc b/PPI/IntervalTimer.test.cc index 9b49d27..45f87f9 100644 --- a/PPI/IntervalTimer.test.cc +++ b/PPI/IntervalTimer.test.cc @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Copyright (C) 2007 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -21,7 +21,7 @@ // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /** \file - \brief IntervalTimer.test unit tests */ + \brief IntervalTimer unit tests */ //#include "IntervalTimer.test.hh" //#include "IntervalTimer.test.ih" @@ -31,7 +31,7 @@ #include "Module.hh" #include "Setup.hh" -#include +#include "../Utils/auto_unit_test.hh" #include #define prefix_ @@ -41,7 +41,7 @@ namespace module = senf::ppi::module; namespace ppi = senf::ppi; namespace { - + class TimerTest : public module::Module { SENF_PPI_MODULE(TimerTest); @@ -56,16 +56,16 @@ namespace { unsigned n; public: - TimerTest(senf::ClockService::clock_type d_, unsigned n_) - : timer ( senf::ClockService::milliseconds(d_) ), - n ( n_ ) + TimerTest(senf::ClockService::int64_type d_, unsigned n_) + : timer ( senf::ClockService::milliseconds(d_) ), + n ( n_ ) { registerEvent( timer, &TimerTest::tick ); } }; - bool is_close_clock(senf::ClockService::clock_type a, senf::ClockService::clock_type b, - unsigned long delta = 50000000ul) + bool is_close_clock(senf::ClockService::clock_type a, senf::ClockService::clock_type b, + senf::ClockService::clock_type delta) { return (a