Testing library separation: now not in launcher but isolated
[anna.git] / include / anna / testing / TestClock.hpp
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() throw(anna::RuntimeException);
30 };
31
32 }
33 }
34
35 #endif
36