X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_filter_virt_db.cpp;h=3c9a3d6938874a6d3d3482408eff97c471e89d1d;hb=c859210e9c315c0f15c93fc6f65477a6c3e65d14;hp=4c14649737c1804a4566f22603675c6b78d2aea2;hpb=b3a5a3535ff97f71581c9b496f95e0820120f743;p=metaproxy-moved-to-github.git diff --git a/src/test_filter_virt_db.cpp b/src/test_filter_virt_db.cpp index 4c14649..3c9a3d6 100644 --- a/src/test_filter_virt_db.cpp +++ b/src/test_filter_virt_db.cpp @@ -1,4 +1,4 @@ -/* $Id: test_filter_virt_db.cpp,v 1.4 2005-10-25 21:32:01 adam Exp $ +/* $Id: test_filter_virt_db.cpp,v 1.6 2005-10-26 10:55:26 marc Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -13,7 +13,7 @@ #include "filter_backend_test.hpp" #include "filter_log.hpp" -#include "router.hpp" +#include "router_chain.hpp" #include "session.hpp" #include "package.hpp" @@ -45,7 +45,7 @@ BOOST_AUTO_TEST_CASE( test_filter_virt_db_2 ) yp2::filter::Virt_db vdb; - router.rule(vdb); + router.append(vdb); // Create package with Z39.50 init request in it // Since there is not vhost given, the virt will make its @@ -203,18 +203,18 @@ BOOST_AUTO_TEST_CASE( test_filter_virt_db_3 ) yp2::filter::Log filter_log1("FRONT"); #if 0 - router.rule(filter_log1); + router.append(filter_log1); #endif yp2::filter::Virt_db vdb; - router.rule(vdb); + router.append(vdb); vdb.add_map_db2vhost("Default", "localhost:210"); yp2::filter::Log filter_log2("BACK"); #if 0 - router.rule(filter_log2); + router.append(filter_log2); #endif yp2::filter::Backend_test btest; - router.rule(btest); + router.append(btest); yp2::Session session1; yp2::Origin origin1;