X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FModule.test.cc;h=47795da47aca1889750aaa482128e41dad84a88c;hb=ae06fe86f16fdabb7ffb219d255444d2eb4f4f79;hp=7c2513481bf240b3d674cd46b858f3231d9aadb2;hpb=b8a3977542aaf217ac472e5266abd0fcffb4f95f;p=senf.git diff --git a/PPI/Module.test.cc b/PPI/Module.test.cc index 7c25134..47795da 100644 --- a/PPI/Module.test.cc +++ b/PPI/Module.test.cc @@ -53,14 +53,14 @@ namespace { TestModule() { noroute(output); - registerEvent(&TestModule::onEvent, event); + registerEvent(event, &TestModule::onEvent); } void onEvent() { output(senf::DataPacket::create()); } - using ppi::module::Module::eventTime; + using ppi::module::Module::time; }; } @@ -69,13 +69,13 @@ BOOST_AUTO_UNIT_TEST(module) // route and registerEvent are tested in Route.test.cc TestModule tester; - debug::PassivePacketSink sink; + debug::PassiveSink sink; ppi::connect(tester, sink); ppi::init(); tester.event.trigger(); BOOST_CHECK_EQUAL( sink.size(), 1u ); - BOOST_CHECK( senf::ClockService::now() - tester.eventTime() < 1000000000L ); + BOOST_CHECK( senf::ClockService::now() - tester.time() < senf::ClockService::seconds(1) ); } ///////////////////////////////cc.e////////////////////////////////////////