X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FClockService.test.cc;h=182755b21fb85c4b81df91288233071825130f2d;hb=925317c7f45c32b01ab9292023db3f372b74bf0f;hp=29379dbd2da1a8de78ce0abcf7adf3256db6041c;hpb=51eecff12414ff9a0e99b398c1befb5aa438fd71;p=senf.git diff --git a/Scheduler/ClockService.test.cc b/Scheduler/ClockService.test.cc index 29379db..182755b 100644 --- a/Scheduler/ClockService.test.cc +++ b/Scheduler/ClockService.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 @@ -30,35 +30,22 @@ #include "ClockService.hh" #include -#include +#include "../Utils/auto_unit_test.hh" #include #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// -namespace senf { -namespace detail { - - struct ClockServiceTest - { - static boost::posix_time::ptime & base() - { return senf::ClockService::instance().base_; } - static boost::posix_time::ptime & heartbeat() - { return senf::ClockService::instance().heartbeat_; } - }; - -}} - namespace { bool is_close_clock(senf::ClockService::clock_type a, senf::ClockService::clock_type b, - unsigned long delta = 50000000ul) + unsigned long delta = senf::ClockService::milliseconds(100)) { return (a