X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=include%2Fanna%2Ftesting%2FTestManager.hpp;h=979941ffb00e087404e6c3858b7fe16bb0ba2b80;hb=64d7c531cdf5f4bca4fa2d8c9736de98247dfe13;hp=a1cf8eddefd13c17f3006eab0c21b1d14881936d;hpb=d723d5bf571eb48c641b092058eaa38bb6c4fcc8;p=anna.git diff --git a/include/anna/testing/TestManager.hpp b/include/anna/testing/TestManager.hpp index a1cf8ed..979941f 100644 --- a/include/anna/testing/TestManager.hpp +++ b/include/anna/testing/TestManager.hpp @@ -84,6 +84,7 @@ class TestManager : public anna::timex::TimeEventObserver, public anna::Singleto int a_poolRepeats; // repeat pool N times int a_poolCycle; // current cycle, from 1 to N unsigned int a_inProgressLimit; // limit load to have this value + bool a_autoResetHard; // automatic reset on next cycle (soft by default, false) // Test clock int a_synchronousAmount; @@ -108,6 +109,7 @@ class TestManager : public anna::timex::TimeEventObserver, public anna::Singleto TestManager(); TestManager(const TestManager&); + virtual ~TestManager() {;} TestTimer* createTimer(TestCaseStep*, const anna::Millisecond &, const TestTimer::Type::_v type) throw(anna::RuntimeException); void cancelTimer(TestTimer*) throw(); @@ -155,6 +157,10 @@ class TestManager : public anna::timex::TimeEventObserver, public anna::Singleto int getPoolRepeats() const throw() { return a_poolRepeats; } int getPoolCycle() const throw() { return a_poolCycle; } + bool getAutoResetHard() const throw() { return a_autoResetHard; } + void setAutoResetHard(bool hard = true) throw() { a_autoResetHard = hard; } + + unsigned int getInProgressCount() const throw() { return a_statSummary.getInProgressCount(); } unsigned int getInProgressLimit() const throw() { return a_inProgressLimit; } void setInProgressLimit(unsigned int limit) throw() { a_inProgressLimit = limit; } // 0 = UINT_MAX (no limit)