ANNA Suite  2020b
Multipurpose development suite for Telco applications
TestClock.hpp
Go to the documentation of this file.
1 // ANNA - Anna is Not Nothingness Anymore //
2 // //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
4 // //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7 
8 
9 #ifndef anna_testing_TestClock_hpp
10 #define anna_testing_TestClock_hpp
11 
12 // Project
13 #include <anna/core/core.hpp>
14 #include <anna/timex/Clock.hpp>
15 
16 namespace anna {
17 
18 namespace testing {
19 
20 class TestManager;
21 
22 class TestClock : public anna::timex::Clock {
23  TestManager *a_manager;
24 
25 public:
26  TestClock(const char *clockName, const anna::Millisecond & timeout, TestManager *manager)
27  : a_manager(manager), anna::timex::Clock(clockName, timeout) {;}
28 
29  virtual bool tick() noexcept(false);
30 };
31 
32 }
33 }
34 
35 #endif
36 
Definition: Millisecond.hpp:24
Definition: Clock.hpp:23
Definition: TestManager.hpp:52
Definition: TestClock.hpp:22
Clock(const char *name, const Millisecond &timeout)
TestClock(const char *clockName, const anna::Millisecond &timeout, TestManager *manager)
Definition: TestClock.hpp:26
virtual bool tick() noexcept(false)
Definition: app.hpp:12