Use namespace yp2::filter for filters .. Rename filters from
[metaproxy-moved-to-github.git] / src / test_filter_frontend_net.cpp
index 1c9b8c2..9b74cd3 100644 (file)
@@ -14,7 +14,7 @@
 
 using namespace boost::unit_test;
 
-class FilterInit: public yp2::Filter {
+class FilterInit: public yp2::filter::Base {
 public:
     void process(yp2::Package & package) const {
 
@@ -45,7 +45,7 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_1 )
     try 
     {
         {
-            yp2::FilterFrontendNet nf;
+            yp2::filter::FrontendNet nf;
         }
     }
     catch ( ... ) {
@@ -101,8 +101,11 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_3 )
            yp2::RouterChain router;
 
             // put in frontend first
-            yp2::FilterFrontendNet filter_front;
-            filter_front.listen_address() = "unix:socket";
+            yp2::filter::FrontendNet filter_front;
+
+            std::vector <std::string> ports;
+            ports.insert(ports.begin(), "unix:socket");
+            filter_front.ports() = ports;
             filter_front.listen_duration() = 1;  // listen a short time only
            router.rule(filter_front);