X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Ftesting%2FTestTimer.hpp;fp=include%2Fanna%2Ftesting%2FTestTimer.hpp;h=a236f31366988680431d53dc086d828feb01ce37;hp=54ece7bad5f2d572f46f3d8a964183098b6cf026;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/testing/TestTimer.hpp b/include/anna/testing/TestTimer.hpp index 54ece7b..a236f31 100644 --- a/include/anna/testing/TestTimer.hpp +++ b/include/anna/testing/TestTimer.hpp @@ -27,23 +27,23 @@ class TestTimer : public anna::timex::Transaction { public: struct Type { enum _v { TimeLeft, Delay }; }; - static const char* asText(const Type::_v type) throw(); + static const char* asText(const Type::_v type) ; - TestStep* getTestCaseStep() throw() { return reinterpret_cast (getContext()); } - const TestStep* getTestCaseStep() const throw() { return reinterpret_cast (getContext()); } + TestStep* getTestCaseStep() { return reinterpret_cast (getContext()); } + const TestStep* getTestCaseStep() const { return reinterpret_cast (getContext()); } - void setType(const Type::_v type) throw() { a_type = type; } - const Type::_v &getType(const Type::_v type) const throw() { return a_type; } + void setType(const Type::_v type) { a_type = type; } + const Type::_v &getType(const Type::_v type) const { return a_type; } - std::string asString() const throw(); + std::string asString() const ; private: Type::_v a_type; TestTimer() {;} - void expire(anna::timex::Engine*) throw(anna::RuntimeException); + void expire(anna::timex::Engine*) noexcept(false); friend class anna::Allocator; };