X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_filter_frontend_net.cpp;h=fa6c641cab941d931fd792db253e154c041e8bde;hb=b54482cdb759f092fcd07a9be4fdc8c28009b895;hp=7bdb01a53392c7c93430b924d8fd3604a8aca99e;hpb=f82b19f2b93707657fee804bd1242f2548d51ada;p=metaproxy-moved-to-github.git diff --git a/src/test_filter_frontend_net.cpp b/src/test_filter_frontend_net.cpp index 7bdb01a..fa6c641 100644 --- a/src/test_filter_frontend_net.cpp +++ b/src/test_filter_frontend_net.cpp @@ -1,4 +1,4 @@ -/* $Id: test_filter_frontend_net.cpp,v 1.7 2005-10-15 14:09:09 adam Exp $ +/* $Id: test_filter_frontend_net.cpp,v 1.10 2005-10-26 10:55:26 marc Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -10,7 +10,7 @@ #include "filter_frontend_net.hpp" -#include "router.hpp" +#include "router_chain.hpp" #include "session.hpp" #include "package.hpp" @@ -22,7 +22,7 @@ using namespace boost::unit_test; class FilterInit: public yp2::filter::Base { public: void process(yp2::Package & package) const { - + if (package.session().is_closed()) { // std::cout << "Got Close.\n"; @@ -67,7 +67,7 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_2 ) FilterInit tf; - router.rule(tf); + router.append(tf); // Create package with Z39.50 init request in it yp2::Package pack; @@ -112,11 +112,11 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_3 ) ports.insert(ports.begin(), "unix:socket"); filter_front.ports() = ports; filter_front.listen_duration() = 1; // listen a short time only - router.rule(filter_front); + router.append(filter_front); // put in a backend FilterInit filter_init; - router.rule(filter_init); + router.append(filter_init); yp2::Package pack;