| 425 | |
| 426 | template <typename State_> |
| 427 | void testParentService(const std::shared_ptr<State_>& state) { |
| 428 | std::shared_ptr<typename State_::Client> client = state->createClient(); |
| 429 | |
| 430 | int32_t gen = client->getGeneration(); |
| 431 | int32_t newGen = client->incrementGeneration(); |
| 432 | BOOST_CHECK_EQUAL(gen + 1, newGen); |
| 433 | newGen = client->getGeneration(); |
| 434 | BOOST_CHECK_EQUAL(gen + 1, newGen); |
| 435 | |
| 436 | client->addString("foo"); |
| 437 | client->addString("bar"); |
| 438 | client->addString("asdf"); |
| 439 | |
| 440 | vector<string> strings; |
| 441 | client->getStrings(strings); |
| 442 | BOOST_REQUIRE_EQUAL(3, strings.size()); |
| 443 | BOOST_REQUIRE_EQUAL("foo", strings[0]); |
| 444 | BOOST_REQUIRE_EQUAL("bar", strings[1]); |
| 445 | BOOST_REQUIRE_EQUAL("asdf", strings[2]); |
| 446 | } |
| 447 | |
| 448 | template <typename State_> |
| 449 | void testChildService(const std::shared_ptr<State_>& state) { |
no test coverage detected