X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_filter2.cpp;h=600004db4c7c158fd4d69d4e43e8b917f9d9ba0d;hb=056d8d0c4ee4b9e383463ecdde7aa84901909aa4;hp=d3d4500cab50b06d3b47669d1910c8da9cf34b71;hpb=665559cbc22546e8df69be33a7d492294cab9fb1;p=metaproxy-moved-to-github.git diff --git a/src/test_filter2.cpp b/src/test_filter2.cpp index d3d4500..600004d 100644 --- a/src/test_filter2.cpp +++ b/src/test_filter2.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2008 Index Data + Copyright (C) 2005-2012 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -16,13 +16,14 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.hpp" + #include #include -#include "config.hpp" -#include "filter.hpp" +#include #include "router_chain.hpp" -#include "package.hpp" +#include #include @@ -40,7 +41,7 @@ public: void process(mp::Package & package) const { package.move(); }; - void configure(const xmlNode* ptr, bool test_only); + void configure(const xmlNode* ptr, bool test_only, const char *path); int get_constant() const { return m_constant; }; private: const xmlNode *m_ptr; @@ -48,7 +49,8 @@ private: }; -void FilterConstant::configure(const xmlNode* ptr, bool test_only) +void FilterConstant::configure(const xmlNode* ptr, bool test_only, + const char *path) { m_ptr = ptr; @@ -92,6 +94,8 @@ public: void process(mp::Package & package) const { package.move(); }; + void configure(const xmlNode * ptr, bool test_only, + const char *path) { }; }; @@ -169,7 +173,7 @@ BOOST_AUTO_TEST_CASE( testfilter2_2 ) { xmlNodePtr root_element = xmlDocGetRootElement(doc); - base->configure(root_element, true); + base->configure(root_element, true, 0); xmlFreeDoc(doc); }