diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-08-04 21:57:18 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-08-04 21:57:18 (GMT) |
commit | db8418fb9f733ca0147cc225ce0988d7866f15cd (patch) | |
tree | d24805c2a17bc01a408d89f7675f66806879fb59 /test/src | |
parent | ad2653c30b78b2951eb79d303a9e3ab52f4a2def (diff) | |
download | uscxml-db8418fb9f733ca0147cc225ce0988d7866f15cd.zip uscxml-db8418fb9f733ca0147cc225ce0988d7866f15cd.tar.gz uscxml-db8418fb9f733ca0147cc225ce0988d7866f15cd.tar.bz2 |
Changed Monitor signature to take Interpreter facade
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/test-lifecycle.cpp | 36 | ||||
-rw-r--r-- | test/src/test-stress.cpp | 2 | ||||
-rw-r--r-- | test/src/test-validating.cpp | 2 |
3 files changed, 20 insertions, 20 deletions
diff --git a/test/src/test-lifecycle.cpp b/test/src/test-lifecycle.cpp index 81fc363..55a524e 100644 --- a/test/src/test-lifecycle.cpp +++ b/test/src/test-lifecycle.cpp @@ -48,67 +48,67 @@ std::list<CallbackType> callBackSeq; class SequenceCheckingMonitor : public InterpreterMonitor { - virtual void beforeProcessingEvent(InterpreterImpl* impl, const Event& event) { + virtual void beforeProcessingEvent(Interpreter& interpreter, const Event& event) { CHECK_CALLBACK_TYPE(USCXML_BEFOREPROCESSINGEVENT); } - virtual void beforeMicroStep(InterpreterImpl* impl) { + virtual void beforeMicroStep(Interpreter& interpreter) { CHECK_CALLBACK_TYPE(USCXML_BEFOREMICROSTEP); } - virtual void beforeExitingState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state) { + virtual void beforeExitingState(Interpreter& interpreter, const XERCESC_NS::DOMElement* state) { CHECK_CALLBACK_TYPE(USCXML_BEFOREEXITINGSTATE); } - virtual void afterExitingState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state) { + virtual void afterExitingState(Interpreter& interpreter, const XERCESC_NS::DOMElement* state) { CHECK_CALLBACK_TYPE(USCXML_AFTEREXITINGSTATE); } - virtual void beforeExecutingContent(InterpreterImpl* impl, const XERCESC_NS::DOMElement* element) { + virtual void beforeExecutingContent(Interpreter& interpreter, const XERCESC_NS::DOMElement* element) { CHECK_CALLBACK_TYPE(USCXML_BEFOREEXECUTINGCONTENT); } - virtual void afterExecutingContent(InterpreterImpl* impl, const XERCESC_NS::DOMElement* element) { + virtual void afterExecutingContent(Interpreter& interpreter, const XERCESC_NS::DOMElement* element) { CHECK_CALLBACK_TYPE(USCXML_AFTEREXECUTINGCONTENT); } - virtual void beforeUninvoking(InterpreterImpl* impl, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid) { + virtual void beforeUninvoking(Interpreter& interpreter, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid) { CHECK_CALLBACK_TYPE(USCXML_BEFOREUNINVOKING); } - virtual void afterUninvoking(InterpreterImpl* impl, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid) { + virtual void afterUninvoking(Interpreter& interpreter, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid) { CHECK_CALLBACK_TYPE(USCXML_AFTERUNINVOKING); } - virtual void beforeTakingTransition(InterpreterImpl* impl, const XERCESC_NS::DOMElement* transition) { + virtual void beforeTakingTransition(Interpreter& interpreter, const XERCESC_NS::DOMElement* transition) { CHECK_CALLBACK_TYPE(USCXML_BEFORETAKINGTRANSITION); } - virtual void afterTakingTransition(InterpreterImpl* impl, const XERCESC_NS::DOMElement* transition) { + virtual void afterTakingTransition(Interpreter& interpreter, const XERCESC_NS::DOMElement* transition) { CHECK_CALLBACK_TYPE(USCXML_AFTERTAKINGTRANSITION); } - virtual void beforeEnteringState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state) { + virtual void beforeEnteringState(Interpreter& interpreter, const XERCESC_NS::DOMElement* state) { CHECK_CALLBACK_TYPE(USCXML_BEFOREENTERINGSTATE); } - virtual void afterEnteringState(InterpreterImpl* impl, const XERCESC_NS::DOMElement* state) { + virtual void afterEnteringState(Interpreter& interpreter, const XERCESC_NS::DOMElement* state) { CHECK_CALLBACK_TYPE(USCXML_AFTERENTERINGSTATE); } - virtual void beforeInvoking(InterpreterImpl* impl, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid) { + virtual void beforeInvoking(Interpreter& interpreter, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid) { CHECK_CALLBACK_TYPE(USCXML_BEFOREINVOKING); } - virtual void afterInvoking(InterpreterImpl* impl, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid) { + virtual void afterInvoking(Interpreter& interpreter, const XERCESC_NS::DOMElement* invokeElem, const std::string& invokeid) { CHECK_CALLBACK_TYPE(USCXML_AFTERINVOKING); } - virtual void afterMicroStep(InterpreterImpl* impl) { + virtual void afterMicroStep(Interpreter& interpreter) { CHECK_CALLBACK_TYPE(USCXML_AFTERMICROSTEP); } - virtual void onStableConfiguration(InterpreterImpl* impl) { + virtual void onStableConfiguration(Interpreter& interpreter) { CHECK_CALLBACK_TYPE(USCXML_ONSTABLECONFIGURATION); } - virtual void beforeCompletion(InterpreterImpl* impl) { + virtual void beforeCompletion(Interpreter& interpreter) { CHECK_CALLBACK_TYPE(USCXML_BEFORECOMPLETION); } - virtual void afterCompletion(InterpreterImpl* impl) { + virtual void afterCompletion(Interpreter& interpreter) { CHECK_CALLBACK_TYPE(USCXML_AFTERCOMPLETION); } diff --git a/test/src/test-stress.cpp b/test/src/test-stress.cpp index 4091dea..87000c8 100644 --- a/test/src/test-stress.cpp +++ b/test/src/test-stress.cpp @@ -17,7 +17,7 @@ int startedAt; int lastTransitionAt; class StatusMonitor : public uscxml::InterpreterMonitor { - void beforeTakingTransition(uscxml::InterpreterImpl* impl, const XERCESC_NS::DOMElement* transition) { + void beforeTakingTransition(uscxml::Interpreter& interpreter, const XERCESC_NS::DOMElement* transition) { lastTransitionAt = time(NULL); } diff --git a/test/src/test-validating.cpp b/test/src/test-validating.cpp index c3bc693..609ac42 100644 --- a/test/src/test-validating.cpp +++ b/test/src/test-validating.cpp @@ -31,7 +31,7 @@ public: IssueMonitor() { runtimeIssues = 0; } - void reportIssue(InterpreterImpl* impl, const InterpreterIssue& issue) { + void reportIssue(Interpreter& intrpreter, const InterpreterIssue& issue) { runtimeIssues++; } }; |