X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FDebugModules.test.cc;h=4df0c2a4381b93f9876c445a827afd4d1a62f91c;hb=0327b3f303ea2a61d44a30bfaac022874dcf2a0d;hp=0fc70ccd8845b95b3132d12c08f46a90469c6e48;hpb=7465ea4f6d3d54622bd783106cf8b60d5f133343;p=senf.git diff --git a/PPI/DebugModules.test.cc b/PPI/DebugModules.test.cc index 0fc70cc..4df0c2a 100644 --- a/PPI/DebugModules.test.cc +++ b/PPI/DebugModules.test.cc @@ -38,16 +38,16 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// +namespace debug = senf::ppi::module::debug; +namespace ppi = senf::ppi; + BOOST_AUTO_UNIT_TEST(debugModules) { - namespace debug = senf::ppi::module::debug; - namespace ppi = senf::ppi; - { debug::ActivePacketSource source; debug::PassivePacketSink sink; - ppi::connect(source.output, sink.input); + ppi::connect(source, sink); ppi::init(); senf::PacketData::byte data[] = { 0x13u, 0x24u, 0x35u }; @@ -76,7 +76,7 @@ BOOST_AUTO_UNIT_TEST(debugModules) debug::PassivePacketSource source; debug::ActivePacketSink sink; - ppi::connect(source.output, sink.input); + ppi::connect(source, sink); ppi::init(); senf::PacketData::byte data[] = { 0x13u, 0x24u, 0x35u };