X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_filter_frontend_net.cpp;h=9b36c66716394d952fb62500c1f41fd823251bc9;hb=d7b1186d1f020678b617e2368415485bffef93f9;hp=f6b9c5d6208c4ea3d53c2bd2871a521476c21659;hpb=941d13b6a4dc2c2dd0e4bda89d380bfd8991b03b;p=metaproxy-moved-to-github.git diff --git a/src/test_filter_frontend_net.cpp b/src/test_filter_frontend_net.cpp index f6b9c5d..9b36c66 100644 --- a/src/test_filter_frontend_net.cpp +++ b/src/test_filter_frontend_net.cpp @@ -1,3 +1,8 @@ +/* $Id: test_filter_frontend_net.cpp,v 1.9 2005-10-26 10:21:03 marc Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #include "config.hpp" #include @@ -5,7 +10,7 @@ #include "filter_frontend_net.hpp" -#include "router.hpp" +#include "router_chain.hpp" #include "session.hpp" #include "package.hpp" @@ -14,10 +19,10 @@ using namespace boost::unit_test; -class FilterInit: public yp2::Filter { +class FilterInit: public yp2::filter::Base { public: void process(yp2::Package & package) const { - + if (package.session().is_closed()) { // std::cout << "Got Close.\n"; @@ -45,7 +50,7 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_1 ) try { { - yp2::FilterFrontendNet nf; + yp2::filter::FrontendNet nf; } } catch ( ... ) { @@ -101,7 +106,7 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_3 ) yp2::RouterChain router; // put in frontend first - yp2::FilterFrontendNet filter_front; + yp2::filter::FrontendNet filter_front; std::vector ports; ports.insert(ports.begin(), "unix:socket"); @@ -128,6 +133,7 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_3 ) * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */