75 os <<
"COROUTINE_TEST_EVENT[ type: " << (int) aObj.
m_type <<
", value: " << aObj.
m_value 106 for(
int i = 1; i <= n; i++ )
142 BOOST_AUTO_TEST_SUITE( Coroutine )
153 const std::vector<COROUTINE_TEST_EVENT> exp_events = {
163 std::vector<COROUTINE_TEST_EVENT> received_events;
166 received_events.push_back( aEvent );
173 BOOST_CHECK_EQUAL_COLLECTIONS(
174 received_events.begin(), received_events.end(), exp_events.begin(), exp_events.end() );
177 BOOST_AUTO_TEST_SUITE_END()
bool operator==(const COROUTINE_TEST_EVENT &aOther) const
An event in a simple coroutine harness.
std::function< void(const COROUTINE_TEST_EVENT &)> EVT_HANDLER
std::unique_ptr< TEST_COROUTINE > m_cofunc
bool operator!=(const COROUTINE_TEST_EVENT &aOther) const
BOOST_AUTO_TEST_CASE(Increment)
Declare the test suite.
std::ostream & operator<<(std::ostream &os, const COROUTINE_TEST_EVENT &aObj)
Define a stream function for logging this type.
Simple coroutine harness that runs a coroutine that increments a number up to a pre-set limit,...
COROUTINE_INCREMENTING_HARNESS(EVT_HANDLER aHandler, int aCount)