Searched refs:eventBaseMachine (Results 1 – 4 of 4) sorted by relevance
156 DeferralEventBaseTest eventBaseMachine; in test_main() local158 BOOST_REQUIRE_THROW( eventBaseMachine.state_cast< const X1 & >(), std::bad_cast ); in test_main()159 eventBaseMachine.initiate(); in test_main()160 BOOST_REQUIRE_NO_THROW( eventBaseMachine.state_cast< const X1 & >() ); in test_main()162 eventBaseMachine.process_event( EvToX3() ); in test_main()163 BOOST_REQUIRE_NO_THROW( eventBaseMachine.state_cast< const X1 & >() ); in test_main()164 eventBaseMachine.process_event( EvToX2() ); in test_main()165 BOOST_REQUIRE_NO_THROW( eventBaseMachine.state_cast< const X3 & >() ); in test_main()166 eventBaseMachine.initiate(); in test_main()167 BOOST_REQUIRE_NO_THROW( eventBaseMachine.state_cast< const X1 & >() ); in test_main()[all …]
272 TerminationEventBaseTest eventBaseMachine; in test_main() local273 eventBaseMachine.initiate(); in test_main()274 BOOST_REQUIRE( !eventBaseMachine.terminated() ); in test_main()275 eventBaseMachine.process_event( EvTerminateA() ); in test_main()276 BOOST_REQUIRE( eventBaseMachine.terminated() ); in test_main()277 eventBaseMachine.initiate(); in test_main()278 BOOST_REQUIRE( !eventBaseMachine.terminated() ); in test_main()279 eventBaseMachine.process_event( EvTerminateB() ); in test_main()280 BOOST_REQUIRE( eventBaseMachine.terminated() ); in test_main()
372 CustomReactionEventBaseTest eventBaseMachine; in test_main() local373 eventBaseMachine.initiate(); in test_main()374 BOOST_REQUIRE( eventBaseMachine.GetReactionCount() == 0 ); in test_main()375 eventBaseMachine.process_event( EvToC() ); in test_main()376 BOOST_REQUIRE( eventBaseMachine.GetReactionCount() == 1 ); in test_main()377 eventBaseMachine.process_event( EvToD() ); in test_main()378 BOOST_REQUIRE( eventBaseMachine.GetReactionCount() == 2 ); in test_main()
832 TransitionEventBaseTest eventBaseMachine; in test_main() local833 eventBaseMachine.initiate(); in test_main()834 BOOST_REQUIRE_NO_THROW( eventBaseMachine.state_cast< const X1 & >() ); in test_main()835 eventBaseMachine.process_event( A() ); in test_main()836 BOOST_REQUIRE_NO_THROW( eventBaseMachine.state_cast< const X2 & >() ); in test_main()837 BOOST_REQUIRE( eventBaseMachine.GetActionCallCounter() == 0 ); in test_main()838 eventBaseMachine.process_event( B() ); in test_main()839 BOOST_REQUIRE_NO_THROW( eventBaseMachine.state_cast< const X1 & >() ); in test_main()840 BOOST_REQUIRE( eventBaseMachine.GetActionCallCounter() == 1 ); in test_main()841 eventBaseMachine.process_event( C() ); in test_main()[all …]