X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FClockService.test.cc;h=a67761cc69419fd623c67cc8385dda81e596cd7c;hb=6745b9a3712f3221fe4b076ed7abb1ab92d6ac2b;hp=306122916537c0578a21f6c69dfb04b41ffeedee;hpb=3d16600678b948ff3bd0e4fd2a1a800fcc629a03;p=senf.git diff --git a/Scheduler/ClockService.test.cc b/Scheduler/ClockService.test.cc index 3061229..a67761c 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,16 @@ #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 = 10100000ul) - { - return (a