X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_router_flexml.cpp;h=d9c254041e42dc1491bce01329fe0480e40a91c3;hb=abe840d8d4a289b0cf6221a3e1bc11e640e6c708;hp=c39f5db42f28c3628105953aab400cabdbe89983;hpb=b0c61b7f8b17d876c88347a96c246c47493140da;p=metaproxy-moved-to-github.git diff --git a/src/test_router_flexml.cpp b/src/test_router_flexml.cpp index c39f5db..d9c2540 100644 --- a/src/test_router_flexml.cpp +++ b/src/test_router_flexml.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2010 Index Data + Copyright (C) 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 @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include -#include "filter.hpp" +#include #include "router_flexml.hpp" #include "factory_static.hpp" @@ -38,6 +38,7 @@ public: void process(mp::Package & package) const {}; TFilter() { tfilter_ref++; }; ~TFilter() { tfilter_ref--; }; + void configure(const xmlNode* ptr, bool test_only, const char *path) {}; }; static mp::filter::Base* filter_creator() @@ -66,7 +67,7 @@ BOOST_AUTO_TEST_CASE( test_router_flexml_1 ) " other\n" " \n" " \n" - " \n" + " \n" " \n" " \n" " \n" @@ -105,7 +106,7 @@ BOOST_AUTO_TEST_CASE( test_router_flexml_2 ) " \n" " \n" " @:210\n"; - + mp::FactoryFilter factory; mp::RouterFleXML rflexml(xmlconf_invalid, factory, true); } @@ -139,14 +140,14 @@ BOOST_AUTO_TEST_CASE( test_router_flexml_3 ) " my msg\n" " \n" " \n" - " \n" + " \n" " \n" " \n" " \n" " \n" " \n" "\n"; - + mp::FactoryStatic factory; mp::RouterFleXML rflexml(xmlconf, factory, true); } @@ -168,13 +169,13 @@ BOOST_AUTO_TEST_CASE( test_router_flexml_4 ) std::string xmlconf = "\n" "\n" - " \n" + " \n" " \n" " \n" " @:210\n" " \n" " \n" - " \n" + " \n" " \n" " \n" " \n"