X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ftest_filter2.cpp;h=14aa299afdebe787b5e074373a355eb247acfa80;hb=93d4dd6d4f9698c7aaa74cadb343a2da8ef8ff5a;hp=b92d043d51f06ef1786c516485abaa2d56d5d3e2;hpb=d7b1186d1f020678b617e2368415485bffef93f9;p=metaproxy-moved-to-github.git diff --git a/src/test_filter2.cpp b/src/test_filter2.cpp index b92d043..14aa299 100644 --- a/src/test_filter2.cpp +++ b/src/test_filter2.cpp @@ -1,4 +1,4 @@ -/* $Id: test_filter2.cpp,v 1.12 2005-10-26 10:21:03 marc Exp $ +/* $Id: test_filter2.cpp,v 1.14 2005-10-29 22:23:36 marc Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -27,6 +27,9 @@ public: package.data() = m_constant; package.move(); }; + const std::string type() const { + return "FilterConstant"; + }; void configure(const xmlNode* ptr = 0); int get_constant() const { return m_constant; }; private: @@ -115,6 +118,9 @@ public: package.data() = package.data() * 2; package.move(); }; + const std::string type() const { + return "FilterConstant"; + }; }; @@ -122,17 +128,15 @@ BOOST_AUTO_TEST_CASE( testfilter2_1 ) { try { FilterConstant fc; - fc.name() = "FilterConstant"; FilterDouble fd; - fd.name() = "FilterDouble"; { yp2::RouterChain router1; // test filter set/get/exception - router1.rule(fc); + router1.append(fc); - router1.rule(fd); + router1.append(fd); yp2::Session session; yp2::Origin origin; @@ -147,8 +151,8 @@ BOOST_AUTO_TEST_CASE( testfilter2_1 ) { yp2::RouterChain router2; - router2.rule(fd); - router2.rule(fc); + router2.append(fd); + router2.append(fc); yp2::Session session; yp2::Origin origin;