| 30 | }; |
| 31 | |
| 32 | class MarkingAroundStepHook : public AroundStepHook { |
| 33 | public: |
| 34 | MarkingAroundStepHook(std::string id, std::stringstream* markersPtr) : |
| 35 | id(id), |
| 36 | markersPtr(markersPtr){}; |
| 37 | |
| 38 | MarkingAroundStepHook() : |
| 39 | id(""), |
| 40 | markersPtr(0){}; |
| 41 | |
| 42 | void body() override { |
| 43 | if (markersPtr) { |
| 44 | (*markersPtr) << "B" << id; |
| 45 | } |
| 46 | doCall(); |
| 47 | if (markersPtr) { |
| 48 | (*markersPtr) << "A" << id; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | protected: |
| 53 | virtual void doCall() { |
| 54 | step->call(); |
| 55 | } |
| 56 | |
| 57 | private: |
| 58 | std::string id; |
| 59 | std::stringstream* markersPtr; |
| 60 | }; |
| 61 | |
| 62 | class BlockingAroundStepHook : public MarkingAroundStepHook { |
| 63 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected