X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FClockService.test.cc;h=21b9288f9e38825af5cad83a8bf16c6218e65af8;hb=f2f5d59e83863f3b513950173baee1b6da2aee3c;hp=306122916537c0578a21f6c69dfb04b41ffeedee;hpb=3d16600678b948ff3bd0e4fd2a1a800fcc629a03;p=senf.git diff --git a/Scheduler/ClockService.test.cc b/Scheduler/ClockService.test.cc index 3061229..21b9288 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 @@ -21,7 +21,7 @@ // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /** \file - \brief ClockService.test unit tests */ + \brief ClockService unit tests */ //#include "ClockService.test.hh" //#include "ClockService.test.ih" @@ -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